Skip to content

Commit 3239dc7

Browse files
dstansbyDimitriPapadopoulos
authored andcommitted
Add numpy 2.0 compatibility (zarr-developers#535)
1 parent eaba018 commit 3239dc7

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
4646
- name: Install clang
4747
shell: "bash -l {0}"
48-
if: ${{ matrix.platform }} == 'macos-12'
48+
if: matrix.platform == 'macos-12'
4949
run: |
5050
conda activate env
5151
conda install -y 'clang>=12.0.1,<17'
@@ -60,7 +60,16 @@ jobs:
6060
run: |
6161
conda activate env
6262
export DISABLE_NUMCODECS_AVX2=""
63-
python -m pip install -v -e .[test,test_extras,msgpack,zfpy,pcodec]
63+
# TODO: put back zfpy import when it supports numpy 2.0
64+
python -m pip install -v -e .[test,test_extras,msgpack,pcodec]
65+
66+
# This is used to test with zfpy, which does not yet support numpy 2.0
67+
- name: Install older numpy and zfpy
68+
if: matrix.python-version == '3.10'
69+
shell: "bash -l {0}"
70+
run: |
71+
conda activate env
72+
python -m pip install "zfpy>=1" "numpy<2"
6473
6574
- name: List installed packages
6675
shell: "bash -l {0}"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ A Python package providing buffer compression and transformation codecs \
1414
for use in data storage and communication applications."""
1515
readme = "README.rst"
1616
dependencies = [
17-
"numpy>=1.7,<2",
17+
"numpy>=1.7",
1818
]
1919
requires-python = ">=3.10"
2020
dynamic = [

0 commit comments

Comments
 (0)