mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-10 21:35:08 +00:00
infra: more skip if pull request libs (#26578)
This commit is contained in:
parent
0a177ec2cc
commit
3e51fdc840
12
.github/scripts/get_min_versions.py
vendored
12
.github/scripts/get_min_versions.py
vendored
@ -21,7 +21,14 @@ MIN_VERSION_LIBS = [
|
|||||||
"SQLAlchemy",
|
"SQLAlchemy",
|
||||||
]
|
]
|
||||||
|
|
||||||
SKIP_IF_PULL_REQUEST = ["langchain-core"]
|
# some libs only get checked on release because of simultaneous changes in
|
||||||
|
# multiple libs
|
||||||
|
SKIP_IF_PULL_REQUEST = [
|
||||||
|
"langchain-core",
|
||||||
|
"langchain-text-splitters",
|
||||||
|
"langchain",
|
||||||
|
"langchain-community",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def get_min_version(version: str) -> str:
|
def get_min_version(version: str) -> str:
|
||||||
@ -70,7 +77,7 @@ def get_min_version_from_toml(
|
|||||||
for lib in set(MIN_VERSION_LIBS + (include or [])):
|
for lib in set(MIN_VERSION_LIBS + (include or [])):
|
||||||
if versions_for == "pull_request" and lib in SKIP_IF_PULL_REQUEST:
|
if versions_for == "pull_request" and lib in SKIP_IF_PULL_REQUEST:
|
||||||
# some libs only get checked on release because of simultaneous
|
# some libs only get checked on release because of simultaneous
|
||||||
# changes
|
# changes in multiple libs
|
||||||
continue
|
continue
|
||||||
# Check if the lib is present in the dependencies
|
# Check if the lib is present in the dependencies
|
||||||
if lib in dependencies:
|
if lib in dependencies:
|
||||||
@ -88,7 +95,6 @@ def get_min_version_from_toml(
|
|||||||
if check_python_version(python_version, vs["python"])
|
if check_python_version(python_version, vs["python"])
|
||||||
][0]["version"]
|
][0]["version"]
|
||||||
|
|
||||||
|
|
||||||
# Use parse_version to get the minimum supported version from version_string
|
# Use parse_version to get the minimum supported version from version_string
|
||||||
min_version = get_min_version(version_string)
|
min_version = get_min_version(version_string)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user