Skip to content

Commit cccfa4f

Browse files
committed
MAINT: update maximum numpy version to build against
The rule is <N+3, and numpy 2.2.x is out, so the bound should be <2.5. Also add a `pytest.ini` file that will turn deprecation warnings in the test suite into errors. This will catch any deprecations from `numpy` or `python`, so that they can be fixed in time. Having the test suite run deprecation-warning-free is the guarantee that the <N+3 upper bound will work.
1 parent 034871d commit cccfa4f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pyproject.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ requires = [
1111
# 2. Note that building against numpy 1.x works fine too - users and
1212
# redistributors can do this by installing the numpy version they like
1313
# and disabling build isolation.
14-
# 3. The <2.3 upper bound is for matching the numpy deprecation policy,
15-
# it should not be loosened
16-
"numpy>=2,<2.3"
14+
# 3. The <2.(N+3) upper bound is for matching the numpy deprecation policy,
15+
# it should not be loosened more than that.
16+
"numpy>=2,<2.5"
1717
]
18+
19+
20+
[tool.pytest.ini_options]
21+
addopts = "-l"
22+
filterwarnings = ["error"]

0 commit comments

Comments
 (0)