Skip to content

Commit c595e44

Browse files
committed
Add warning to __init__.py
1 parent 7450ad0 commit c595e44

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

zarr/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# flake8: noqa
2+
import warnings
23
from zarr.codecs import *
34
from zarr.convenience import (
45
consolidate_metadata,
@@ -55,6 +56,12 @@
5556
assert not __version__.startswith("0.0.0")
5657

5758
if v3_api_available:
59+
warnings.warn(
60+
"The zarr v3 API in zarr-python v2 is deprecated, and will be removed in zarr-python 2.19.0. "
61+
"Use zarr-python 3 instead for Zarr format 3 support.",
62+
DeprecationWarning,
63+
stacklevel=2,
64+
)
5865
from zarr._storage.v3 import (
5966
ABSStoreV3,
6067
DBMStoreV3,

0 commit comments

Comments
 (0)