Skip to content

Commit fe920ea

Browse files
authored
V2 core features (#22)
* v2.Array create, arrayMetadata and codecPipeline * v2 and v3 Array implements Array Interface * documentation for Array methods and improve parameter descriptions * adopt allocateFillValueChunk() and chunkKeyEncoding() * zarrita tests with uv * fix ci * add zlib * fix testoutput paths * split v2 and v3 codecs to fix serialization * zarr-python tests for v2, v3 * isolate v2 and v3 with common core * isolate v2 and v3 with common core.chunkkeyencoding * add zarrita to ci while not removed from tests * fix zarr-python tests on Windows? * debug windows CI * uv add "zarr>=3.1.2" * use python 3.11 * remove debug changes * remove v3 code in v2 * change multi-inheritance: - codecs in core are abstrac classes - parent codec per v2/v3 (used for serialization) is interface * refactor code duplication * update ci actions versions * allow fillValue null * add ci python-version: '3.11' label * update deploy.yml * adopt feedback * move BytesBytesCodec.copy to Utils.copyStream
1 parent e758d54 commit fe920ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2187
-1007
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
shell: bash
2020

2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323

2424
- name: Set up JDK
2525
uses: actions/setup-java@v4
@@ -29,14 +29,18 @@ jobs:
2929
cache: maven
3030

3131
- name: Set up Python
32-
uses: actions/setup-python@v5
32+
uses: actions/setup-python@v6
3333
with:
3434
python-version: '3.11'
3535

36-
- name: Install zarrita
36+
- name: Install uv
37+
uses: astral-sh/setup-uv@v6
38+
39+
- name: Set up zarr-python
3740
run: |
38-
python -m venv venv_zarrita
39-
if [ "${{ runner.os }}" = "Windows" ]; then venv_zarrita/Scripts/pip install zarrita; else venv_zarrita/bin/pip install zarrita; fi
41+
uv venv && uv init
42+
uv add zarr
43+
uv add zarrita
4044
4145
- name: Download testdata
4246
run: |

.github/workflows/deploy.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,18 @@ jobs:
3232
# Begin copy from ci.yml. Refactor?
3333

3434
- name: Set up Python
35-
uses: actions/setup-python@v5
35+
uses: actions/setup-python@v6
3636
with:
3737
python-version: '3.11'
3838

39-
- name: Install zarrita
39+
- name: Install uv
40+
uses: astral-sh/setup-uv@v6
41+
42+
- name: Set up zarr-python
4043
run: |
41-
python -m venv venv_zarrita
42-
if [ "${{ runner.os }}" = "Windows" ]; then venv_zarrita/Scripts/pip install zarrita; else venv_zarrita/bin/pip install zarrita; fi
44+
uv venv && uv init
45+
uv add zarr
46+
uv add zarrita
4347
4448
- name: Download testdata
4549
run: |

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,7 @@ build/
3838
### Custom ###
3939
/testdata/l4_sample
4040
/testoutput
41-
/venv_zarrita
41+
/.python-version
42+
/main.py
43+
/pyproject.toml
44+
/uv.lock

0 commit comments

Comments
 (0)