Skip to content

Commit 3ad97b9

Browse files
authored
Add a test with up to date dependencies & fix zarr-python v2 (#2973)
* Test with latest dependencies * Update job name * Add pytest-timeout * Add numcodecs pin * Install msgpack python
1 parent b5154fb commit 3ad97b9

File tree

3 files changed

+43
-5
lines changed

3 files changed

+43
-5
lines changed

Diff for: .github/workflows/latest-deps.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow simulates a fresh environment where the only install
2+
# command is a user pip installing zarr
3+
name: Latest dependencies
4+
5+
on:
6+
push:
7+
branches: [ support/v2 ]
8+
pull_request:
9+
branches: [ support/v2 ]
10+
11+
jobs:
12+
latest-deps:
13+
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup Miniconda
18+
uses: conda-incubator/[email protected]
19+
with:
20+
auto-update-conda: true
21+
python-version: "3.12"
22+
- name: Tests
23+
shell: bash -el {0}
24+
env:
25+
ZARR_V3_EXPERIMENTAL_API: 1
26+
ZARR_V3_SHARDING: 1
27+
run: |
28+
python -m pip install pytest pytest-cov pytest-timeout msgpack-python
29+
python -m pip install .
30+
pytest -svx --timeout=300

Diff for: docs/release.rst

+12-4
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,24 @@ Release notes
1616
.. note::
1717
Zarr-Python 2 is in support mode now, and no new features will be added.
1818

19-
.. _release_2.18.6:
19+
.. _release_2.18.7:
2020

21-
2.18.6
21+
2.18.7
2222
------
2323

2424
Fixes
2525
~~~~~
2626
* Pinned ``numcodecs`` to ``<0.16``. In ``numcodecs`` 0.16 deprecated code was removed
27-
that makes it incompatible with zarr-python 2.18.
28-
By :user:`David Stansby <dstansby>` (:issue:`2965`)
27+
that makes it incompatible with older versions of zarr-python 2.18.
28+
By :user:`David Stansby <dstansby>` (:issue:`2973`)
29+
30+
.. _release_2.18.6:
31+
32+
2.18.6
33+
------
34+
Note: the numcodecs dependency pin was incorrectly applied in this release, meaning it maintains
35+
the same issue with numcodecs compatibility as previous releases. Please upgrade
36+
to 2.18.7 to fix this.
2937

3038
.. _release_2.18.5:
3139

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies = [
1313
'asciitree',
1414
'numpy>=1.24',
1515
'fasteners; sys_platform != "emscripten"',
16-
'numcodecs>=0.10.0,!=0.14.0,!=0.14.1',
16+
'numcodecs>=0.10.0,!=0.14.0,!=0.14.1,<0.16',
1717
]
1818
dynamic = ["version"]
1919
classifiers = [

0 commit comments

Comments
 (0)