Skip to content

Commit 13b4738

Browse files
authored
Merge branch 'main' into minor-contrib-improvement
2 parents 5b6079c + 31d377b commit 13b4738

File tree

14 files changed

+65
-50
lines changed

14 files changed

+65
-50
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
---
22
version: 2
33
updates:
4-
# Updates for v3 branch (the default branch)
5-
- package-ecosystem: "pip"
6-
directory: "/"
7-
schedule:
8-
interval: "daily"
9-
groups:
10-
actions:
11-
patterns:
12-
- "*"
4+
# Updates for main
135
- package-ecosystem: "github-actions"
146
directory: "/"
157
schedule:
@@ -19,19 +11,19 @@ updates:
1911
patterns:
2012
- "*"
2113

22-
# Same updates, but for main branch
14+
# Updates for support/v2 branch
2315
- package-ecosystem: "pip"
2416
directory: "/"
25-
target-branch: "main"
17+
target-branch: "support/v2"
2618
schedule:
27-
interval: "daily"
19+
interval: "weekly"
2820
groups:
2921
requirements:
3022
patterns:
3123
- "*"
3224
- package-ecosystem: "github-actions"
3325
directory: "/"
34-
target-branch: "main"
26+
target-branch: "support/v2"
3527
schedule:
3628
interval: "weekly"
3729
groups:

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
needs release notes:
2-
- all: ['!docs/release.rst']
2+
- all: ['!docs/release-notes.rst']

.github/workflows/needs_release_notes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }} && ${{ github.event.pull_request.user.login != 'pre-commit-ci[bot]' }}
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/labeler@main
11+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
1212
with:
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}
1414
sync-labels: true

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ci:
66
default_stages: [pre-commit, pre-push]
77
repos:
88
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.8.6
9+
rev: v0.9.1
1010
hooks:
1111
- id: ruff
1212
args: ["--fix", "--show-fixes"]

docs/conf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@
1515

1616
import os
1717
import sys
18+
from importlib.metadata import version as get_version
1819
from typing import Any
1920

2021
import sphinx
2122
import sphinx.application
2223

23-
from importlib.metadata import version as get_version
24-
25-
import sphinx
26-
2724
# If extensions (or modules to document with autodoc) are in another directory,
2825
# add these directories to sys.path here. If the directory is relative to the
2926
# documentation root, use os.path.abspath to make it absolute, like shown here.

docs/release-notes.rst

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,58 @@ Release notes
44
Unreleased
55
----------
66

7-
New features
8-
~~~~~~~~~~~~
7+
Bug fixes
8+
~~~~~~~~~
9+
10+
Features
11+
~~~~~~~~
12+
13+
Documentation
14+
~~~~~~~~~~~~~
15+
16+
Other
17+
~~~~~
18+
19+
3.0.1 (Jan. 17, 2025)
20+
---------------------
921

1022
Bug fixes
1123
~~~~~~~~~
1224
* Fixes ``order`` argument for Zarr format 2 arrays (:issue:`2679`).
1325

14-
* Fixes a bug that prevented reading Zarr format 2 data with consolidated metadata written using ``zarr-python`` version 2 (:issue:`2694`).
26+
* Fixes a bug that prevented reading Zarr format 2 data with consolidated
27+
metadata written using ``zarr-python`` version 2 (:issue:`2694`).
28+
29+
* Ensure that compressor=None results in no compression when writing Zarr
30+
format 2 data (:issue:`2708`).
31+
32+
* Fix for empty consolidated metadata dataset: backwards compatibility with
33+
Zarr-Python 2 (:issue:`2695`).
34+
35+
Documentation
36+
~~~~~~~~~~~~~
37+
* Add v3.0.0 release announcement banner (:issue:`2677`).
1538

16-
* Ensure that compressor=None results in no compression when writing Zarr format 2 data (:issue:`2708`)
39+
* Quickstart guide alignment with V3 API (:issue:`2697`).
1740

18-
Behaviour changes
19-
~~~~~~~~~~~~~~~~~
41+
* Fix doctest failures related to numcodecs 0.15 (:issue:`2727`).
2042

2143
Other
2244
~~~~~
2345
* Removed some unnecessary files from the source distribution
24-
to reduce its size. (:issue:`2686`)
46+
to reduce its size. (:issue:`2686`).
47+
48+
* Enable codecov in GitHub actions (:issue:`2682`).
49+
50+
* Speed up hypothesis tests (:issue:`2650`).
51+
52+
* Remove multiple imports for an import name (:issue:`2723`).
2553

2654

2755
.. _release_3.0.0:
2856

29-
3.0.0
30-
-----
57+
3.0.0 (Jan. 9, 2025)
58+
--------------------
3159

3260
3.0.0 is a new major release of Zarr-Python, with many breaking changes.
3361
See the :ref:`v3 migration guide` for a listing of what's changed.

docs/user-guide/arrays.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ built-in delta filter::
241241
>>> data = np.arange(100000000, dtype='int32').reshape(10000, 10000)
242242
>>> z = zarr.create_array(store='data/example-7.zarr', shape=data.shape, dtype=data.dtype, chunks=(1000, 1000), compressors=compressors)
243243
>>> z.compressors
244-
(_make_bytes_bytes_codec.<locals>._Codec(codec_name='numcodecs.lzma', codec_config={'id': 'lzma', 'filters': [{'id': 3, 'dist': 4}, {'id': 33, 'preset': 1}]}),)
244+
(LZMA(codec_name='numcodecs.lzma', codec_config={'filters': [{'id': 3, 'dist': 4}, {'id': 33, 'preset': 1}]}),)
245245

246246
The default compressor can be changed by setting the value of the using Zarr's
247247
:ref:`user-guide-config`, e.g.::
@@ -292,7 +292,7 @@ Here is an example using a delta filter with the Blosc compressor::
292292
Order : C
293293
Read-only : False
294294
Store type : LocalStore
295-
Filters : (_make_array_array_codec.<locals>._Codec(codec_name='numcodecs.delta', codec_config={'id': 'delta', 'dtype': 'int32'}),)
295+
Filters : (Delta(codec_name='numcodecs.delta', codec_config={'dtype': 'int32'}),)
296296
Serializer : BytesCodec(endian=<Endian.little: 'little'>)
297297
Compressors : (BloscCodec(typesize=4, cname=<BloscCname.zstd: 'zstd'>, clevel=1, shuffle=<BloscShuffle.shuffle: 'shuffle'>, blocksize=0),)
298298
No. bytes : 400000000 (381.5M)

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,12 @@ See Spec 0000 for details and drop schedule: https://scientific-python.org/specs
230230
"""
231231
python = "3.11"
232232
dependencies = [
233+
'zarr[remote]',
233234
'packaging==22.*',
234235
'numpy==1.25.*',
235236
'numcodecs==0.14.*', # 0.14 needed for zarr3 codecs
236-
'fsspec==2022.10.0',
237-
's3fs==2022.10.0',
237+
'fsspec==2023.10.0',
238+
's3fs==2023.10.0',
238239
'universal_pathlib==0.0.22',
239240
'typing_extensions==4.9.*',
240241
'donfig==0.8.*',
@@ -328,8 +329,6 @@ ignore = [
328329
"Q003",
329330
"COM812",
330331
"COM819",
331-
"ISC001",
332-
"ISC002",
333332
]
334333

335334
[tool.ruff.lint.extend-per-file-ignores]

src/zarr/codecs/sharding.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ async def get(
8686
self, prototype: BufferPrototype, byte_range: ByteRequest | None = None
8787
) -> Buffer | None:
8888
assert byte_range is None, "byte_range is not supported within shards"
89-
assert (
90-
prototype == default_buffer_prototype()
91-
), f"prototype is not supported within shards currently. diff: {prototype} != {default_buffer_prototype()}"
89+
assert prototype == default_buffer_prototype(), (
90+
f"prototype is not supported within shards currently. diff: {prototype} != {default_buffer_prototype()}"
91+
)
9292
return self.shard_dict.get(self.chunk_coords)
9393

9494

src/zarr/core/array.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@
112112
_parse_bytes_bytes_codec,
113113
get_pipeline_class,
114114
)
115-
from zarr.storage import StoreLike
116115
from zarr.storage._common import StorePath, ensure_no_existing_node, make_store_path
117116

118117
if TYPE_CHECKING:

0 commit comments

Comments
 (0)