Skip to content

Commit 7154f98

Browse files
dstansbyd-v-bdcherian
authored
Bump min numpy version (#3226)
* Bump min numpy version * Update src/zarr/testing/strategies.py Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com> --------- Co-authored-by: Davis Bennett <davis.v.bennett@gmail.com> Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
1 parent c0e39af commit 7154f98

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ jobs:
2121
strategy:
2222
matrix:
2323
python-version: ['3.11', '3.12', '3.13']
24-
numpy-version: ['1.25', '2.2']
24+
numpy-version: ['1.26', '2.2']
2525
dependency-set: ["minimal", "optional"]
2626
os: ["ubuntu-latest"]
2727
include:
2828
- python-version: '3.11'
29-
numpy-version: '1.25'
29+
numpy-version: '1.26'
3030
dependency-set: 'optional'
3131
os: 'macos-latest'
3232
- python-version: '3.13'
3333
numpy-version: '2.2'
3434
dependency-set: 'optional'
3535
os: 'macos-latest'
3636
- python-version: '3.11'
37-
numpy-version: '1.25'
37+
numpy-version: '1.26'
3838
dependency-set: 'optional'
3939
os: 'windows-latest'
4040
- python-version: '3.13'

changes/xxxx.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The minimum version of NumPy has increased to 1.26.

docs/user-guide/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Required dependencies include:
88

99
- `Python <https://docs.python.org/3/>`_ (3.11 or later)
1010
- `packaging <https://packaging.pypa.io>`_ (22.0 or later)
11-
- `numpy <https://numpy.org>`_ (1.25 or later)
11+
- `numpy <https://numpy.org>`_ (1.26 or later)
1212
- `numcodecs[crc32c] <https://numcodecs.readthedocs.io>`_ (0.14 or later)
1313
- `typing_extensions <https://typing-extensions.readthedocs.io>`_ (4.9 or later)
1414
- `donfig <https://donfig.readthedocs.io>`_ (0.8 or later)

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ requires-python = ">=3.11"
3333
# If you add a new dependency here, please also add it to .pre-commit-config.yml
3434
dependencies = [
3535
'packaging>=22.0',
36-
'numpy>=1.25',
36+
'numpy>=1.26',
3737
'numcodecs[crc32c]>=0.14',
3838
'typing_extensions>=4.9',
3939
'donfig>=0.8',
@@ -154,7 +154,7 @@ features = ["test"]
154154

155155
[[tool.hatch.envs.test.matrix]]
156156
python = ["3.11", "3.12", "3.13"]
157-
numpy = ["1.25", "2.2"]
157+
numpy = ["1.26", "2.2"]
158158
deps = ["minimal", "optional"]
159159

160160
[tool.hatch.envs.test.overrides]
@@ -190,7 +190,7 @@ features = ["test", "gpu"]
190190

191191
[[tool.hatch.envs.gputest.matrix]]
192192
python = ["3.11", "3.12", "3.13"]
193-
numpy = ["1.25", "2.2"]
193+
numpy = ["1.26", "2.2"]
194194
version = ["minimal"]
195195

196196
[tool.hatch.envs.gputest.scripts]
@@ -246,7 +246,7 @@ python = "3.11"
246246
dependencies = [
247247
'zarr[remote]',
248248
'packaging==22.*',
249-
'numpy==1.25.*',
249+
'numpy==1.26.*',
250250
'numcodecs==0.14.*', # 0.14 needed for zarr3 codecs
251251
'fsspec==2023.10.0',
252252
's3fs==2023.10.0',

src/zarr/testing/strategies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def orthogonal_indices(
405405
newshape[axis] = idxr.size
406406
npindexer.append(idxr.reshape(newshape))
407407

408-
# casting the output of broadcast_arrays is needed for numpy 1.25
408+
# casting the output of broadcast_arrays is needed for numpy < 2
409409
return tuple(zindexer), tuple(np.broadcast_arrays(*npindexer))
410410

411411

0 commit comments

Comments
 (0)