Skip to content

Commit d78cadd

Browse files
authored
Fix store creation with latest zarr-python v3 (#644)
* Pin most recent beta release of zarr python * Fix store creation
1 parent 5b8c09c commit d78cadd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
run: |
7979
conda activate env
8080
# TODO: remove --pre option when zarr v3 is out
81-
python -m pip install --pre zarr
81+
python -m pip install --pre zarr>=3.0.0b2
8282
8383
# This is used to test with zfpy, which does not yet support numpy 2.0
8484
- name: Install older numpy and zfpy

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ repos:
3131
hooks:
3232
- id: mypy
3333
args: [--config-file, pyproject.toml]
34-
additional_dependencies: [numpy, pytest, zfpy, 'zarr==3.0.0b1']
34+
additional_dependencies: [numpy, pytest, zfpy, 'zarr>=3.0.0b2']

.readthedocs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build:
99
python: "3.12"
1010
jobs:
1111
post_install:
12-
- python -m pip install --pre 'zarr'
12+
- python -m pip install --pre 'zarr>=3.0.0b2'
1313

1414
sphinx:
1515
configuration: docs/conf.py

numcodecs/tests/test_zarr3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
@pytest.fixture
3838
def store() -> StorePath:
39-
return StorePath(MemoryStore(mode="w"))
39+
return StorePath(MemoryStore(read_only=False))
4040

4141

4242
ALL_CODECS = [getattr(numcodecs.zarr3, cls_name) for cls_name in numcodecs.zarr3.__all__]

0 commit comments

Comments
 (0)