Skip to content

Commit 0ca6d53

Browse files
authored
Merge branch 'main' into unsigned-buffer
2 parents c21ba64 + 018f61d commit 0ca6d53

Some content is hidden

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

85 files changed

+5897
-1021
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ contact_links:
55
about: A new major feature should be discussed in the Zarr specifications repository.
66
- name: Discuss something on ZulipChat
77
url: https://ossci.zulipchat.com/
8-
about: For questions like "How do I do X with Zarr?", you can move to our ZulipChat.
8+
about: For questions like "How do I do X with Zarr?", consider posting your question to our developer chat.
99
- name: Discuss something on GitHub Discussions
1010
url: https://github.com/zarr-developers/zarr-python/discussions
1111
about: For questions like "How do I do X with Zarr?", you can move to GitHub Discussions.

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
needs release notes:
22
- all:
33
- changed-files:
4-
- any-glob-to-any-file: '!changes/*.rst'
4+
- all-globs-to-all-files: '!changes/*.rst'

.github/workflows/hypothesis.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ jobs:
6969
path: .hypothesis/
7070
key: cache-hypothesis-${{ runner.os }}-${{ github.run_id }}
7171

72+
- name: Upload coverage
73+
uses: codecov/codecov-action@v5
74+
with:
75+
token: ${{ secrets.CODECOV_TOKEN }}
76+
verbose: true # optional (default = false)
77+
7278
- name: Generate and publish the report
7379
if: |
7480
failure()

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545

4646
steps:
4747
- uses: actions/checkout@v4
48+
with:
49+
fetch-depth: 0 # grab all branches and tags
4850
- name: Set up Python
4951
uses: actions/setup-python@v5
5052
with:
@@ -82,6 +84,8 @@ jobs:
8284
dependency-set: upstream
8385
steps:
8486
- uses: actions/checkout@v4
87+
with:
88+
fetch-depth: 0
8589
- name: Set up Python
8690
uses: actions/setup-python@v5
8791
with:
@@ -98,6 +102,11 @@ jobs:
98102
- name: Run Tests
99103
run: |
100104
hatch env run --env ${{ matrix.dependency-set }} run
105+
- name: Upload coverage
106+
uses: codecov/codecov-action@v5
107+
with:
108+
token: ${{ secrets.CODECOV_TOKEN }}
109+
verbose: true # optional (default = false)
101110

102111
doctests:
103112
name: doctests

.pre-commit-config.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ ci:
66
default_stages: [pre-commit, pre-push]
77
repos:
88
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.9.1
9+
rev: v0.9.9
1010
hooks:
11-
- id: ruff
12-
args: ["--fix", "--show-fixes"]
13-
- id: ruff-format
11+
- id: ruff
12+
args: ["--fix", "--show-fixes"]
13+
- id: ruff-format
1414
- repo: https://github.com/codespell-project/codespell
15-
rev: v2.3.0
15+
rev: v2.4.1
1616
hooks:
1717
- id: codespell
1818
args: ["-L", "fo,ihs,kake,te", "-S", "fixture"]
1919
- repo: https://github.com/pre-commit/pre-commit-hooks
2020
rev: v5.0.0
2121
hooks:
22-
- id: check-yaml
23-
- id: trailing-whitespace
22+
- id: check-yaml
23+
- id: trailing-whitespace
2424
- repo: https://github.com/pre-commit/mirrors-mypy
25-
rev: v1.14.1
25+
rev: v1.15.0
2626
hooks:
2727
- id: mypy
2828
files: src|tests
@@ -31,13 +31,14 @@ repos:
3131
- packaging
3232
- donfig
3333
- numcodecs[crc32c]
34-
- numpy==2.1 # until https://github.com/numpy/numpy/issues/28034 is resolved
34+
- numpy==2.1 # until https://github.com/numpy/numpy/issues/28034 is resolved
3535
- typing_extensions
3636
- universal-pathlib
37+
- obstore>=0.5.1
3738
# Tests
3839
- pytest
3940
- repo: https://github.com/scientific-python/cookie
40-
rev: 2024.08.19
41+
rev: 2025.01.22
4142
hooks:
4243
- id: sp-repo-review
4344
- repo: https://github.com/pre-commit/pygrep-hooks
@@ -50,6 +51,6 @@ repos:
5051
hooks:
5152
- id: numpydoc-validation
5253
- repo: https://github.com/twisted/towncrier
53-
rev: 23.11.0
54+
rev: 24.8.0
5455
hooks:
5556
- id: towncrier-check

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</td>
7171
</tr>
7272
<tr>
73-
<td>Zulip</td>
73+
<td>Developer Chat</td>
7474
<td>
7575
<a href="https://ossci.zulipchat.com/">
7676
<img src="https://img.shields.io/badge/zulip-join_chat-brightgreen.svg" />
@@ -101,13 +101,13 @@ Zarr is a Python package providing an implementation of compressed, chunked, N-d
101101

102102
## Main Features
103103

104-
- [**Create**](https://zarr.readthedocs.io/en/stable/tutorial.html#creating-an-array) N-dimensional arrays with any NumPy `dtype`.
105-
- [**Chunk arrays**](https://zarr.readthedocs.io/en/stable/tutorial.html#chunk-optimizations) along any dimension.
106-
- [**Compress**](https://zarr.readthedocs.io/en/stable/tutorial.html#compressors) and/or filter chunks using any NumCodecs codec.
107-
- [**Store arrays**](https://zarr.readthedocs.io/en/stable/tutorial.html#tutorial-storage) in memory, on disk, inside a zip file, on S3, etc...
108-
- [**Read**](https://zarr.readthedocs.io/en/stable/tutorial.html#reading-and-writing-data) an array [**concurrently**](https://zarr.readthedocs.io/en/stable/tutorial.html#parallel-computing-and-synchronization) from multiple threads or processes.
109-
- Write to an array concurrently from multiple threads or processes.
110-
- Organize arrays into hierarchies via [**groups**](https://zarr.readthedocs.io/en/stable/tutorial.html#groups).
104+
- [**Create**](https://zarr.readthedocs.io/en/stable/user-guide/arrays.html#creating-an-array) N-dimensional arrays with any NumPy `dtype`.
105+
- [**Chunk arrays**](https://zarr.readthedocs.io/en/stable/user-guide/performance.html#chunk-optimizations) along any dimension.
106+
- [**Compress**](https://zarr.readthedocs.io/en/stable/user-guide/arrays.html#compressors) and/or filter chunks using any NumCodecs codec.
107+
- [**Store arrays**](https://zarr.readthedocs.io/en/stable/user-guide/storage.html) in memory, on disk, inside a zip file, on S3, etc...
108+
- [**Read**](https://zarr.readthedocs.io/en/stable/user-guide/arrays.html#reading-and-writing-data) an array [**concurrently**](https://zarr.readthedocs.io/en/stable/user-guide/performance.html#parallel-computing-and-synchronization) from multiple threads or processes.
109+
- [**Write**](https://zarr.readthedocs.io/en/stable/user-guide/arrays.html#reading-and-writing-data) to an array concurrently from multiple threads or processes.
110+
- Organize arrays into hierarchies via [**groups**](https://zarr.readthedocs.io/en/stable/quickstart.html#hierarchical-groups).
111111

112112
## Where to get it
113113

changes/1661.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add experimental ObjectStore storage class based on obstore.

changes/2533.bigfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changes/2622.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add ``zarr.from_array`` using concurrent streaming of source data

changes/2681.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)