Skip to content

Commit 6e9fad9

Browse files
committed
BLD: Build against numpy>=1.25 for all versions > 3.8
1 parent 3c201ba commit 6e9fad9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ requires = [
33
"setuptools",
44
"setuptools_scm[toml]>=6.2",
55
"cython",
6-
# Newer than NEP29-minimum: compile against oldest numpy available
7-
"numpy==1.26b1; python_version >= '3.12rc1'",
8-
"numpy==1.24; python_version >= '3.11' and python_version < '3.12.dev0'",
9-
# NEP29-minimum as of Aug 17, 2023
10-
"numpy==1.22; python_version >= '3.8' and python_version < '3.11'",
6+
"numpy==1.26b1; python_version >= '3.12rc1'", # Until 3.12 and 1.26 are released
7+
# As of numpy 1.25, you can now build against older APIs.
8+
# https://numpy.org/doc/stable/release/1.25.0-notes.html
9+
"numpy>=1.25; python_version > '3.8'",
10+
# NEP29-minimum as of Aug 17, 2023 (1.25 doesn't support 3.8)
11+
"numpy==1.22; python_version == '3.8'",
1112
]
1213
build-backend = "setuptools.build_meta"
1314

0 commit comments

Comments
 (0)