Skip to content

Commit

Permalink
Add numpy 2.0 compatibility (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby authored Jun 20, 2024
1 parent 5f13152 commit 485224f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Install clang
shell: "bash -l {0}"
if: ${{ matrix.platform }} == 'macos-12'
if: matrix.platform == 'macos-12'
run: |
conda activate env
conda install -y 'clang>=12.0.1,<17'
Expand All @@ -60,7 +60,16 @@ jobs:
run: |
conda activate env
export DISABLE_NUMCODECS_AVX2=""
python -m pip install -v -e .[test,test_extras,msgpack,zfpy,pcodec]
# TODO: put back zfpy import when it supports numpy 2.0
python -m pip install -v -e .[test,test_extras,msgpack,pcodec]
# This is used to test with zfpy, which does not yet support numpy 2.0
- name: Install older numpy and zfpy
if: matrix.python-version == '3.10'
shell: "bash -l {0}"
run: |
conda activate env
python -m pip install "zfpy>=1" "numpy<2"
- name: List installed packages
shell: "bash -l {0}"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ A Python package providing buffer compression and transformation codecs \
for use in data storage and communication applications."""
readme = "README.rst"
dependencies = [
"numpy>=1.7,<2",
"numpy>=1.7",
]
requires-python = ">=3.10"
dynamic = [
Expand Down

0 comments on commit 485224f

Please sign in to comment.