From 25fc3d82799e76976e611a68c84b77ac02f5105b Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 8 Apr 2025 16:12:16 +0100 Subject: [PATCH 1/5] Test with latest dependencies --- .github/workflows/latest-deps.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/latest-deps.yml diff --git a/.github/workflows/latest-deps.yml b/.github/workflows/latest-deps.yml new file mode 100644 index 0000000000..654d4d40cf --- /dev/null +++ b/.github/workflows/latest-deps.yml @@ -0,0 +1,31 @@ +# This workflow simulates a fresh environment where the only install +# command is a user pip installing zarr +name: Latest dependencies + +on: + push: + branches: [ support/v2 ] + pull_request: + branches: [ support/v2 ] + +jobs: + minimum_build: + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Miniconda + uses: conda-incubator/setup-miniconda@v3.1.1 + with: + auto-update-conda: true + python-version: "3.12" + - name: Tests + shell: bash -el {0} + env: + ZARR_V3_EXPERIMENTAL_API: 1 + ZARR_V3_SHARDING: 1 + run: | + python -m pip install pytest pytest-cov + python -m pip install . + + pytest -svx --timeout=300 From cfd738daf1f71de5e191838466b25da472b38793 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 8 Apr 2025 16:17:01 +0100 Subject: [PATCH 2/5] Update job name --- .github/workflows/latest-deps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/latest-deps.yml b/.github/workflows/latest-deps.yml index 654d4d40cf..3d0eaf4a2f 100644 --- a/.github/workflows/latest-deps.yml +++ b/.github/workflows/latest-deps.yml @@ -9,7 +9,7 @@ on: branches: [ support/v2 ] jobs: - minimum_build: + latest-deps: runs-on: ubuntu-latest steps: From fa6e175ddeebae849bbbefa5ea16c6a7e65a4ea8 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 8 Apr 2025 16:17:36 +0100 Subject: [PATCH 3/5] Add pytest-timeout --- .github/workflows/latest-deps.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/latest-deps.yml b/.github/workflows/latest-deps.yml index 3d0eaf4a2f..dbdae4bd00 100644 --- a/.github/workflows/latest-deps.yml +++ b/.github/workflows/latest-deps.yml @@ -25,7 +25,6 @@ jobs: ZARR_V3_EXPERIMENTAL_API: 1 ZARR_V3_SHARDING: 1 run: | - python -m pip install pytest pytest-cov + python -m pip install pytest pytest-cov pytest-timeout python -m pip install . - pytest -svx --timeout=300 From 44a10e5e1e4281b5a727e00daceef2e559d17a0d Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 8 Apr 2025 16:23:07 +0100 Subject: [PATCH 4/5] Add numcodecs pin --- docs/release.rst | 16 ++++++++++++---- pyproject.toml | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/docs/release.rst b/docs/release.rst index f31bd5ccc2..56bbd0d2f1 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -16,16 +16,24 @@ Release notes .. note:: Zarr-Python 2 is in support mode now, and no new features will be added. -.. _release_2.18.6: +.. _release_2.18.7: -2.18.6 +2.18.7 ------ Fixes ~~~~~ * Pinned ``numcodecs`` to ``<0.16``. In ``numcodecs`` 0.16 deprecated code was removed - that makes it incompatible with zarr-python 2.18. - By :user:`David Stansby ` (:issue:`2965`) + that makes it incompatible with older versions of zarr-python 2.18. + By :user:`David Stansby ` (:issue:`2973`) + +.. _release_2.18.6: + +2.18.6 +------ +Note: the numcodecs dependency pin was incorrectly applied in this release, meaning it maintains +the same issue with numcodecs compatibility as previous releases. Please upgrade +to 2.18.7 to fix this. .. _release_2.18.5: diff --git a/pyproject.toml b/pyproject.toml index 97d7a39aef..02789ba0b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ dependencies = [ 'asciitree', 'numpy>=1.24', 'fasteners; sys_platform != "emscripten"', - 'numcodecs>=0.10.0,!=0.14.0,!=0.14.1', + 'numcodecs>=0.10.0,!=0.14.0,!=0.14.1,<0.16', ] dynamic = ["version"] classifiers = [ From d2552c72e5f779553bb04979364de3fca4046fe9 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 8 Apr 2025 16:26:05 +0100 Subject: [PATCH 5/5] Install msgpack python --- .github/workflows/latest-deps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/latest-deps.yml b/.github/workflows/latest-deps.yml index dbdae4bd00..9c0729b00a 100644 --- a/.github/workflows/latest-deps.yml +++ b/.github/workflows/latest-deps.yml @@ -25,6 +25,6 @@ jobs: ZARR_V3_EXPERIMENTAL_API: 1 ZARR_V3_SHARDING: 1 run: | - python -m pip install pytest pytest-cov pytest-timeout + python -m pip install pytest pytest-cov pytest-timeout msgpack-python python -m pip install . pytest -svx --timeout=300