infra: more skip if pull request libs (#26578)

This commit is contained in:
Erick Friis 2024-09-17 09:48:02 -07:00 committed by GitHub
parent 0a177ec2cc
commit 3e51fdc840
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,14 @@ MIN_VERSION_LIBS = [
"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:
@ -70,7 +77,7 @@ def get_min_version_from_toml(
for lib in set(MIN_VERSION_LIBS + (include or [])):
if versions_for == "pull_request" and lib in SKIP_IF_PULL_REQUEST:
# some libs only get checked on release because of simultaneous
# changes
# changes in multiple libs
continue
# Check if the lib is present in the dependencies
if lib in dependencies:
@ -88,7 +95,6 @@ def get_min_version_from_toml(
if check_python_version(python_version, vs["python"])
][0]["version"]
# Use parse_version to get the minimum supported version from version_string
min_version = get_min_version(version_string)