Skip to content

Commit 3964a43

Browse files
authored
Pin numpy <2.0.0 on v8.2.x branch (#941)
* Upper pin numpy in requirements.txt * Pin numpy in pyprpoject * Pin numpy in build-constraints.txt * Pin numpy in setup.cfg
1 parent be0562d commit 3964a43

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

build-constraints.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ numpy==1.15.0; python_version<='3.7' and platform_machine!='aarch64'
33
numpy==1.19.2; python_version<='3.7' and platform_machine=='aarch64'
44
numpy==1.17.3; python_version=='3.8' and platform_machine!='aarch64'
55
numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'
6-
numpy>=1.25.0; python_version>='3.9'
6+
numpy>=1.25.0,<2.0.0; python_version>='3.9'

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ requires = [
66
"cymem>=2.0.2,<2.1.0",
77
"preshed>=3.0.2,<3.1.0",
88
"blis>=0.7.8,<0.8.0",
9-
"numpy>=1.15.0; python_version < '3.9'",
10-
"numpy>=1.25.0; python_version >= '3.9'",
9+
"numpy>=1.15.0,<2.0.0; python_version < '3.9'",
10+
"numpy>=1.25.0,<2.0.0; python_version >= '3.9'",
1111
]
1212
build-backend = "setuptools.build_meta"
1313

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ confection>=0.0.1,<1.0.0
1010
ml_datasets>=0.2.0,<0.3.0; python_version < "3.11"
1111
# Third-party dependencies
1212
pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0
13-
numpy>=1.15.0; python_version < "3.9"
14-
numpy>=1.19.0; python_version >= "3.9"
13+
numpy>=1.15.0,<2.0.0; python_version < "3.9"
14+
numpy>=1.19.0,<2.0.0; python_version >= "3.9"
1515
packaging>=20.0
1616
# Backports of modern Python features
1717
dataclasses>=0.6,<1.0; python_version < "3.7"

setup.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ install_requires =
5050
confection>=0.0.1,<1.0.0
5151
# Third-party dependencies
5252
setuptools
53-
numpy>=1.15.0; python_version < "3.9"
54-
numpy>=1.19.0; python_version >= "3.9"
53+
numpy>=1.15.0,<2.0.0; python_version < "3.9"
54+
numpy>=1.19.0,<2.0.0; python_version >= "3.9"
5555
pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0
5656
packaging>=20.0
5757
# Backports of modern Python features

0 commit comments

Comments
 (0)