Skip to content

Commit d4d989e

Browse files
lithomas1pmhatre1
authored andcommitted
BLD: Build wheels with numpy 2.0rc1 (pandas-dev#58126)
* BLD: Build wheels with numpy 2.0rc1 * Update pyproject.toml
1 parent 2138911 commit d4d989e

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

pyproject.toml

+4-12
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ requires = [
66
"meson==1.2.1",
77
"wheel",
88
"Cython~=3.0.5", # Note: sync with setup.py, environment.yml and asv.conf.json
9-
# Any NumPy version should be fine for compiling. Users are unlikely
10-
# to get a NumPy<1.25 so the result will be compatible with all relevant
11-
# NumPy versions (if not it is presumably compatible with their version).
12-
# Pin <2.0 for releases until tested against an RC. But explicitly allow
13-
# testing the `.dev0` nightlies (which require the extra index).
14-
"numpy>1.22.4,<=2.0.0.dev0",
9+
# Force numpy higher than 2.0rc1, so that built wheels are compatible
10+
# with both numpy 1 and 2
11+
"numpy>=2.0.0rc1",
1512
"versioneer[toml]"
1613
]
1714

@@ -152,9 +149,6 @@ setup = ['--vsenv'] # For Windows
152149
skip = "cp36-* cp37-* cp38-* pp* *_i686 *_ppc64le *_s390x"
153150
build-verbosity = "3"
154151
environment = {LDFLAGS="-Wl,--strip-all"}
155-
# TODO: remove this once numpy 2.0 proper releases
156-
# and specify numpy 2.0 as a dependency in [build-system] requires in pyproject.toml
157-
before-build = "pip install numpy==2.0.0rc1"
158152
test-requires = "hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0"
159153
test-command = """
160154
PANDAS_CI='1' python -c 'import pandas as pd; \
@@ -163,9 +157,7 @@ test-command = """
163157
"""
164158

165159
[tool.cibuildwheel.windows]
166-
# TODO: remove this once numpy 2.0 proper releases
167-
# and specify numpy 2.0 as a dependency in [build-system] requires in pyproject.toml
168-
before-build = "pip install delvewheel numpy==2.0.0rc1"
160+
before-build = "pip install delvewheel"
169161
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"
170162

171163
[[tool.cibuildwheel.overrides]]

0 commit comments

Comments
 (0)