From 79f61274e34d231cde32cc9c427048ab6f198746 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Sat, 16 Nov 2024 09:27:49 +0000 Subject: [PATCH 1/2] Pin most recent beta release of zarr python --- .github/workflows/ci.yaml | 2 +- .pre-commit-config.yaml | 2 +- .readthedocs.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6ec79e50..cc8180c4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -78,7 +78,7 @@ jobs: run: | conda activate env # TODO: remove --pre option when zarr v3 is out - python -m pip install --pre zarr + python -m pip install --pre zarr>=3.0.0b2 # This is used to test with zfpy, which does not yet support numpy 2.0 - name: Install older numpy and zfpy diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bf6a751b..1a471f2e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,4 +31,4 @@ repos: hooks: - id: mypy args: [--config-file, pyproject.toml] - additional_dependencies: [numpy, pytest, zfpy, 'zarr==3.0.0b1'] + additional_dependencies: [numpy, pytest, zfpy, 'zarr>=3.0.0b2'] diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 3189c9f5..fa14bf34 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -9,7 +9,7 @@ build: python: "3.12" jobs: post_install: - - python -m pip install --pre 'zarr' + - python -m pip install --pre 'zarr>=3.0.0b2' sphinx: configuration: docs/conf.py From ae991246db13398c5dc2667b644961dbb0b6204f Mon Sep 17 00:00:00 2001 From: David Stansby Date: Sat, 16 Nov 2024 09:29:34 +0000 Subject: [PATCH 2/2] Fix store creation --- numcodecs/tests/test_zarr3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numcodecs/tests/test_zarr3.py b/numcodecs/tests/test_zarr3.py index afb77136..cdc9b206 100644 --- a/numcodecs/tests/test_zarr3.py +++ b/numcodecs/tests/test_zarr3.py @@ -36,7 +36,7 @@ @pytest.fixture def store() -> StorePath: - return StorePath(MemoryStore(mode="w")) + return StorePath(MemoryStore(read_only=False)) ALL_CODECS = [getattr(numcodecs.zarr3, cls_name) for cls_name in numcodecs.zarr3.__all__]