Skip to content

Commit

Permalink
Pin numpy <2.0.0 on v8.2.x branch (#941)
Browse files Browse the repository at this point in the history
* Upper pin numpy in requirements.txt

* Pin numpy in pyprpoject

* Pin numpy in build-constraints.txt

* Pin numpy in setup.cfg
  • Loading branch information
honnibal committed Jun 19, 2024
1 parent be0562d commit 3964a43
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build-constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ numpy==1.15.0; python_version<='3.7' and platform_machine!='aarch64'
numpy==1.19.2; python_version<='3.7' and platform_machine=='aarch64'
numpy==1.17.3; python_version=='3.8' and platform_machine!='aarch64'
numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'
numpy>=1.25.0; python_version>='3.9'
numpy>=1.25.0,<2.0.0; python_version>='3.9'
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ requires = [
"cymem>=2.0.2,<2.1.0",
"preshed>=3.0.2,<3.1.0",
"blis>=0.7.8,<0.8.0",
"numpy>=1.15.0; python_version < '3.9'",
"numpy>=1.25.0; python_version >= '3.9'",
"numpy>=1.15.0,<2.0.0; python_version < '3.9'",
"numpy>=1.25.0,<2.0.0; python_version >= '3.9'",
]
build-backend = "setuptools.build_meta"

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ confection>=0.0.1,<1.0.0
ml_datasets>=0.2.0,<0.3.0; python_version < "3.11"
# Third-party dependencies
pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0
numpy>=1.15.0; python_version < "3.9"
numpy>=1.19.0; python_version >= "3.9"
numpy>=1.15.0,<2.0.0; python_version < "3.9"
numpy>=1.19.0,<2.0.0; python_version >= "3.9"
packaging>=20.0
# Backports of modern Python features
dataclasses>=0.6,<1.0; python_version < "3.7"
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ install_requires =
confection>=0.0.1,<1.0.0
# Third-party dependencies
setuptools
numpy>=1.15.0; python_version < "3.9"
numpy>=1.19.0; python_version >= "3.9"
numpy>=1.15.0,<2.0.0; python_version < "3.9"
numpy>=1.19.0,<2.0.0; python_version >= "3.9"
pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0
packaging>=20.0
# Backports of modern Python features
Expand Down

0 comments on commit 3964a43

Please sign in to comment.