Skip to content

Commit a013d98

Browse files
committed
Stabilize NumPy 2.x compatibility with safe dependency ranges
Update dependency constraints to support NumPy 2.0/2.1 while maintaining backward compatibility with NumPy 1.26.x: - numpy: >=1.26,<2.2 (avoid experimental 2.2+) - numcodecs: >=0.16,<0.17 (NumPy 2.x compatible version) - zarr: >=2.18.3,<3.0.0 (unchanged, NumPy 2.x compatible) - statsmodels: >=0.14.2 (unchanged, NumPy 2.x compatible) Removed outdated comment about zarr/numcodecs 0.16.0 incompatibility as numcodecs 0.16.x is now required for reliable NumPy 2.x support. This enables testing against NumPy 2.0 and 2.1 in CI while excluding bleeding-edge 2.2+ versions that may introduce breaking changes.
1 parent 75aa6fa commit a013d98

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@ license = "MIT"
2121

2222
[tool.poetry.dependencies]
2323
python = ">=3.10,<3.13"
24-
numpy = "<2.1"
24+
numpy = ">=1.26,<2.2"
2525
numba = ">=0.60.0"
2626
llvmlite = "*"
2727
scipy = "*"
2828
pandas = "*"
2929
zarr = ">=2.18.3, <3.0.0"
30-
# zarr<3.0.0 is not compatible with numcodecs 0.16.0
31-
# https://github.com/zarr-developers/zarr-python/issues/2963
32-
numcodecs = ">=0.13.0, <0.16"
30+
numcodecs = ">=0.16, <0.17"
3331
dask = {version="*", extras=["array"]}
3432
distributed = "*"
3533
fsspec = "*"

0 commit comments

Comments
 (0)