diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 909196c8c0..4dbe115525 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,12 +21,12 @@ jobs: strategy: matrix: python-version: ['3.11', '3.12', '3.13'] - numpy-version: ['1.25', '2.2'] + numpy-version: ['1.26', '2.2'] dependency-set: ["minimal", "optional"] os: ["ubuntu-latest"] include: - python-version: '3.11' - numpy-version: '1.25' + numpy-version: '1.26' dependency-set: 'optional' os: 'macos-latest' - python-version: '3.13' @@ -34,7 +34,7 @@ jobs: dependency-set: 'optional' os: 'macos-latest' - python-version: '3.11' - numpy-version: '1.25' + numpy-version: '1.26' dependency-set: 'optional' os: 'windows-latest' - python-version: '3.13' diff --git a/changes/xxxx.feature.rst b/changes/xxxx.feature.rst new file mode 100644 index 0000000000..1219900cb7 --- /dev/null +++ b/changes/xxxx.feature.rst @@ -0,0 +1 @@ +The minimum version of NumPy has increased to 1.26. diff --git a/docs/user-guide/installation.rst b/docs/user-guide/installation.rst index a79f0763cb..fbd30dedea 100644 --- a/docs/user-guide/installation.rst +++ b/docs/user-guide/installation.rst @@ -8,7 +8,7 @@ Required dependencies include: - `Python `_ (3.11 or later) - `packaging `_ (22.0 or later) -- `numpy `_ (1.25 or later) +- `numpy `_ (1.26 or later) - `numcodecs[crc32c] `_ (0.14 or later) - `typing_extensions `_ (4.9 or later) - `donfig `_ (0.8 or later) diff --git a/pyproject.toml b/pyproject.toml index a48a5eea25..85517d8d0a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ requires-python = ">=3.11" # If you add a new dependency here, please also add it to .pre-commit-config.yml dependencies = [ 'packaging>=22.0', - 'numpy>=1.25', + 'numpy>=1.26', 'numcodecs[crc32c]>=0.14', 'typing_extensions>=4.9', 'donfig>=0.8', @@ -154,7 +154,7 @@ features = ["test"] [[tool.hatch.envs.test.matrix]] python = ["3.11", "3.12", "3.13"] -numpy = ["1.25", "2.2"] +numpy = ["1.26", "2.2"] deps = ["minimal", "optional"] [tool.hatch.envs.test.overrides] @@ -190,7 +190,7 @@ features = ["test", "gpu"] [[tool.hatch.envs.gputest.matrix]] python = ["3.11", "3.12", "3.13"] -numpy = ["1.25", "2.2"] +numpy = ["1.26", "2.2"] version = ["minimal"] [tool.hatch.envs.gputest.scripts] @@ -246,7 +246,7 @@ python = "3.11" dependencies = [ 'zarr[remote]', 'packaging==22.*', - 'numpy==1.25.*', + 'numpy==1.26.*', 'numcodecs==0.14.*', # 0.14 needed for zarr3 codecs 'fsspec==2023.10.0', 's3fs==2023.10.0', diff --git a/src/zarr/testing/strategies.py b/src/zarr/testing/strategies.py index 5e070b5387..2acf7b944c 100644 --- a/src/zarr/testing/strategies.py +++ b/src/zarr/testing/strategies.py @@ -405,7 +405,7 @@ def orthogonal_indices( newshape[axis] = idxr.size npindexer.append(idxr.reshape(newshape)) - # casting the output of broadcast_arrays is needed for numpy 1.25 + # casting the output of broadcast_arrays is needed for numpy < 2 return tuple(zindexer), tuple(np.broadcast_arrays(*npindexer))