Skip to content

Commit

Permalink
Fix minimum numpy pin (#628)
Browse files Browse the repository at this point in the history
* Fix minimum numpy pin

* Make sure we test minimum version of numpy

* swap import order

---------

Co-authored-by: Norman Rzepka <[email protected]>
  • Loading branch information
dstansby and normanrz authored Nov 9, 2024
1 parent 35bd9e3 commit a7a698d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ jobs:
- name: Install zarr-python
shell: "bash -l {0}"
# Since zarr v3 requires numpy >= 1.25, on Python 3.11 leave it out
# so we can have some tests of our minimum version of numpy (1.24)
if: matrix.python-version != '3.11'
run: |
conda activate env
# TODO: remove --pre option when zarr v3 is out
Expand Down
4 changes: 2 additions & 2 deletions numcodecs/tests/test_zarr3.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import numpy as np
import pytest

import numcodecs.zarr3

zarr = pytest.importorskip("zarr")

import numcodecs.zarr3 # noqa: E402

pytestmark = [
pytest.mark.skipif(zarr.__version__ < "3.0.0", reason="zarr 3.0.0 or later is required"),
pytest.mark.filterwarnings("ignore:Codec 'numcodecs.*' not configured in config.*:UserWarning"),
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A Python package providing buffer compression and transformation codecs \
for use in data storage and communication applications."""
readme = "README.rst"
dependencies = [
"numpy>=1.23",
"numpy>=1.24",
]
requires-python = ">=3.11"
dynamic = [
Expand Down

0 comments on commit a7a698d

Please sign in to comment.