Skip to content

Commit a271e58

Browse files
committed
ENH: NumPy 2.0, too [build wheels]
1 parent dc6a6e7 commit a271e58

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/wheels.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ jobs:
6363
- [macos-13, macosx_x86_64] # native Intel hardware
6464
- [windows-latest, win_amd64]
6565
python: ["cp38", "cp39", "cp310", "cp311", "cp312"]
66-
# No NumPy wheels on 3.8 aarch64
66+
# No NumPy wheels on 3.8 aarch64 or musl
6767
exclude:
6868
- python: "cp38"
6969
buildplat: [ubuntu-latest, manylinux_aarch64]
70+
- python: "cp38"
71+
buildplat: [ubuntu-latest, cp38-musllinux_x86_64]
7072
include:
7173
# Manylinux and arm64 builds (on native hardware) are cheap, do all in one
7274
- { buildplat: ["ubuntu-latest", "manylinux_x86_64"], python: "*" }

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ requires = [
33
"setuptools",
44
"setuptools_scm[toml]>=6.2",
55
"cython",
6-
# As of numpy 1.25, you can now build against older APIs.
7-
# https://numpy.org/doc/stable/release/1.25.0-notes.html
8-
"numpy>=1.25; python_version > '3.8'",
6+
# Wheels need to be built with NumPy 2.0 to be compatible with 2.0 and 1.x
7+
"numpy>=2.0.0rc1,<3; python_version > '3.8'",
98
# NEP29-minimum as of Aug 17, 2023 (1.25 doesn't support 3.8)
109
"numpy==1.22; python_version == '3.8'",
1110
]
@@ -56,8 +55,8 @@ include = ["nitime*"]
5655
write_to = "nitime/_version.py"
5756

5857
[tool.cibuildwheel]
59-
# Disable PyPy, and no NumPy wheels for 3.8 Linux aarch64
60-
skip = "pp* cp38-*_aarch64"
58+
# Disable PyPy, and no NumPy wheels for 3.8 Linux aarch64 or musl
59+
skip = "pp* cp38-*_aarch64 cp38-musllinux_*"
6160

6261
# 64-bit builds only; 32-bit builds seem pretty niche these days, so
6362
# don't bother unless someone asks

0 commit comments

Comments
 (0)