Skip to content

Commit c422518

Browse files
fix numpy python3.9 issue (stanfordnlp#8021)
1 parent 595e322 commit c422518

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

poetry.lock

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ dependencies = [
4545
"cachetools>=5.5.0",
4646
"cloudpickle>=3.0.0",
4747
"rich>=13.7.1",
48-
"numpy>=1.26.0",
48+
"numpy>=1.26.0,<2.2; python_version == '3.9'",
49+
"numpy>=1.26.0; python_version >= '3.10'",
4950
]
5051

5152
[tool.setuptools.packages.find]
@@ -122,7 +123,10 @@ asyncer = "0.0.8"
122123
cachetools = "^5.5.0"
123124
cloudpickle = "^3.0.0"
124125
rich = "^13.7.1"
125-
numpy = ">=1.26.0"
126+
numpy = [
127+
{ version = ">=1.26.0,<2.2", markers = "python_version == '3.9'" },
128+
{ version = ">=1.26.0", markers = "python_version >= '3.10'" }
129+
]
126130

127131
# Optional dependencies (now declared inline)
128132
anthropic = { version = ">=0.18.0,<1.0.0", optional = true }

0 commit comments

Comments
 (0)