Skip to content

Commit 29b4acc

Browse files
jhammanjoshmooresanketverma1704
authored
dep(docs): deprecate experimental v3 support in docs (#1807)
* dep(docs): deprecate experimental v3 support in docs * Apply suggestions from code review Co-authored-by: Josh Moore <[email protected]> Co-authored-by: Sanket Verma <[email protected]> --------- Co-authored-by: Josh Moore <[email protected]> Co-authored-by: Sanket Verma <[email protected]>
1 parent f4f6e86 commit 29b4acc

File tree

3 files changed

+35
-5
lines changed

3 files changed

+35
-5
lines changed

docs/api/v3.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
V3 Specification Implementation(``zarr._storage.v3``)
22
=====================================================
33

4-
This module contains the implementation of the `Zarr V3 Specification <https://zarr-specs.readthedocs.io/en/latest/v3/core/v3.0.html>`_.
4+
This module contains an experimental implementation of the `Zarr V3 Specification <https://zarr-specs.readthedocs.io/en/latest/v3/core/v3.0.html>`_.
55

66
.. warning::
7-
Since Zarr Python 2.12 release, this module provides experimental infrastructure for reading and
8-
writing the upcoming V3 spec of the Zarr format. Users wishing to prepare for the migration can set
9-
the environment variable ``ZARR_V3_EXPERIMENTAL_API=1`` to begin experimenting, however data
10-
written with this API should be expected to become stale, as the implementation will still change.
7+
The experimental v3 implementation included in Zarr Python >2.12,<3 is not aligned with the final
8+
V3 specification. This version is deprecated and will be removed in Zarr Python 3.0 in favor of a
9+
spec compliant version.
1110

1211
The new ``zarr._store.v3`` package has the necessary classes and functions for evaluating Zarr V3.
1312
Since the design is not finalised, the classes and functions are not automatically imported into

docs/release.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ Docs
3636
Maintenance
3737
~~~~~~~~~~~
3838

39+
Deprecations
40+
~~~~~~~~~~~~
41+
42+
* Deprecate experimental v3 support by issuing a `FutureWarning`.
43+
Also updated docs to warn about using the experimental v3 version.
44+
By :user:`Joe Hamman <jhamman>` :issue:`1802` and :issue: `1807`.
3945

4046
.. _release_2.17.2:
4147

zarr/convenience.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ def open(store: StoreLike = None, mode: str = "a", *, zarr_version=None, path=No
5555
The zarr protocol version to use. The default value of None will attempt
5656
to infer the version from `store` if possible, otherwise it will fall
5757
back to 2.
58+
59+
.. warning:: `zarr_version=3` is currently using the experimental Zarr V3
60+
implementation. This implementation is not in sync with the final specification
61+
and will be replaced with a spec compliant version in the version 3.0.
62+
5863
path : str or None, optional
5964
The path within the store to open.
6065
**kwargs
@@ -150,6 +155,11 @@ def save_array(store: StoreLike, arr, *, zarr_version=None, path=None, **kwargs)
150155
The zarr protocol version to use when saving. The default value of None
151156
will attempt to infer the version from `store` if possible, otherwise
152157
it will fall back to 2.
158+
159+
.. warning:: `zarr_version=3` is currently using the experimental Zarr V3
160+
implementation. This implementation is not in sync with the final specification
161+
and will be replaced with a spec compliant version in the version 3.0.
162+
153163
path : str or None, optional
154164
The path within the store where the array will be saved.
155165
kwargs
@@ -200,6 +210,11 @@ def save_group(store: StoreLike, *args, zarr_version=None, path=None, **kwargs):
200210
The zarr protocol version to use when saving. The default value of None
201211
will attempt to infer the version from `store` if possible, otherwise
202212
it will fall back to 2.
213+
214+
.. warning:: `zarr_version=3` is currently using the experimental Zarr V3
215+
implementation. This implementation is not in sync with the final specification
216+
and will be replaced with a spec compliant version in the version 3.0.
217+
203218
path : str or None, optional
204219
Path within the store where the group will be saved.
205220
kwargs
@@ -282,6 +297,11 @@ def save(store: StoreLike, *args, zarr_version=None, path=None, **kwargs):
282297
The zarr protocol version to use when saving. The default value of None
283298
will attempt to infer the version from `store` if possible, otherwise
284299
it will fall back to 2.
300+
301+
.. warning:: `zarr_version=3` is currently using the experimental Zarr V3
302+
implementation. This implementation is not in sync with the final specification
303+
and will be replaced with a spec compliant version in the version 3.0.
304+
285305
path : str or None, optional
286306
The path within the group where the arrays will be saved.
287307
kwargs
@@ -395,6 +415,11 @@ def load(store: StoreLike, zarr_version=None, path=None):
395415
The zarr protocol version to use when loading. The default value of
396416
None will attempt to infer the version from `store` if possible,
397417
otherwise it will fall back to 2.
418+
419+
.. warning:: `zarr_version=3` is currently using the experimental Zarr V3
420+
implementation. This implementation is not in sync with the final specification
421+
and will be replaced with a spec compliant version in the version 3.0.
422+
398423
path : str or None, optional
399424
The path within the store from which to load.
400425

0 commit comments

Comments
 (0)