mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 04:07:54 +00:00
core[patch], infra: release 0.1.36, run partner CI on core PRs (#19688)
This commit is contained in:
parent
5327bc9ec4
commit
8c2ed85a45
25
.github/scripts/check_diff.py
vendored
25
.github/scripts/check_diff.py
vendored
@ -11,6 +11,20 @@ LANGCHAIN_DIRS = [
|
||||
"libs/experimental",
|
||||
]
|
||||
|
||||
|
||||
def _is_not_partner_tombstone(dir_):
|
||||
return os.path.isdir(dir_) and [
|
||||
filename for filename in os.listdir(dir_) if not filename.startswith(".")
|
||||
] != ["README.md"]
|
||||
|
||||
|
||||
PARTNER_DIRS = [
|
||||
f"libs/partners/{d}"
|
||||
for d in os.listdir("libs/partners")
|
||||
if _is_not_partner_tombstone(f"libs/partners/{d}")
|
||||
]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
files = sys.argv[1:]
|
||||
|
||||
@ -47,17 +61,16 @@ if __name__ == "__main__":
|
||||
found = True
|
||||
if found:
|
||||
dirs_to_run["extended-test"].add(dir_)
|
||||
if file.startswith("libs/core"):
|
||||
dirs_to_run["test"].update(PARTNER_DIRS)
|
||||
elif file.startswith("libs/cli"):
|
||||
# todo: add cli makefile
|
||||
pass
|
||||
elif file.startswith("libs/partners"):
|
||||
partner_dir = file.split("/")[2]
|
||||
if os.path.isdir(f"libs/partners/{partner_dir}") and [
|
||||
filename
|
||||
for filename in os.listdir(f"libs/partners/{partner_dir}")
|
||||
if not filename.startswith(".")
|
||||
] != ["README.md"]:
|
||||
dirs_to_run["test"].add(f"libs/partners/{partner_dir}")
|
||||
partner_path = f"libs/partners/{partner_dir}"
|
||||
if _is_not_partner_tombstone(partner_path):
|
||||
dirs_to_run["test"].add(partner_path)
|
||||
# Skip if the directory was deleted or is just a tombstone readme
|
||||
elif file.startswith("libs/"):
|
||||
raise ValueError(
|
||||
|
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "langchain-core"
|
||||
version = "0.1.35"
|
||||
version = "0.1.36"
|
||||
description = "Building applications with LLMs through composability"
|
||||
authors = []
|
||||
license = "MIT"
|
||||
|
Loading…
Reference in New Issue
Block a user