langchain[patch]: support numpy 2 (#28183)

Follows on from #27991, updates the langchain package to support numpy 2
versions

---------

Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
Greg Hinch 2024-11-26 16:20:02 +00:00 committed by GitHub
parent 7b9a0d9ed8
commit 869c8f5879
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 933 additions and 853 deletions

View File

@ -134,7 +134,10 @@ def _get_configs_for_single_dir(job: str, dir_: str) -> List[Dict[str, str]]:
elif dir_ in PY_312_MAX_PACKAGES:
py_versions = ["3.9", "3.12"]
elif dir_ in ["libs/community", "libs/langchain"] and job == "extended-tests":
elif dir_ == "libs/langchain" and job == "extended-tests":
py_versions = ["3.9", "3.13"]
elif dir_ == "libs/community" and job == "extended-tests":
# community extended test resolution in 3.12 is slow
# even in uv
py_versions = ["3.9", "3.11"]

View File

@ -7,3 +7,4 @@ jsonschema>=4.22.0,<5
numexpr>=2.8.6,<3
rapidfuzz>=3.1.1,<4
aiosqlite>=0.19.0,<0.20
greenlet>=3.1.0

File diff suppressed because it is too large Load Diff

View File

@ -47,7 +47,7 @@ version = ">=1.22.4,<2"
python = "<3.12"
[[tool.poetry.dependencies.numpy]]
version = ">=1.26.2,<2"
version = ">=1.26.2,<3"
python = ">=3.12"
[tool.ruff.lint]