From a0110796ac246d2996e9e8bffcbf5a436b0d9bf6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 21:47:16 -0600 Subject: [PATCH 01/11] Bump pypa/gh-action-pypi-publish in the actions group (#2220) Bumps the actions group with 1 update: [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish). Updates `pypa/gh-action-pypi-publish` from 1.10.1 to 1.10.2 - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.10.1...v1.10.2) --- updated-dependencies: - dependency-name: pypa/gh-action-pypi-publish dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/releases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 2d7cbd49b6..dccfbc208f 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -64,7 +64,7 @@ jobs: with: name: releases path: dist - - uses: pypa/gh-action-pypi-publish@v1.10.1 + - uses: pypa/gh-action-pypi-publish@v1.10.2 with: user: __token__ password: ${{ secrets.pypi_password }} From 53f600b2e8fed934202f60d3ed4f1a23395ea248 Mon Sep 17 00:00:00 2001 From: Joe Hamman Date: Tue, 24 Sep 2024 10:34:33 -0700 Subject: [PATCH 02/11] Update TEAM.md (#2227) --- TEAM.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TEAM.md b/TEAM.md index 824e57fa7f..e6975d7c04 100644 --- a/TEAM.md +++ b/TEAM.md @@ -8,6 +8,8 @@ - @martindurant (Martin Durant) - @normanrz (Norman Rzepka) - @dstansby (David Stansby) +- @dcherian (Deepak Cherian) +- @TomAugspurger (Tom Augspurger) ## Emeritus core-developers - @alimanfoo (Alistair Miles) From a9abbe7b3e6dcd6540a89a18dec1ed67a273fac6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 18:28:21 +0200 Subject: [PATCH 03/11] Bump the requirements group across 1 directory with 3 updates (#2284) Bumps the requirements group with 3 updates in the / directory: [redis](https://github.com/redis/redis-py), [pymongo](https://github.com/mongodb/mongo-python-driver) and [h5py](https://github.com/h5py/h5py). Updates `redis` from 5.0.8 to 5.1.0 - [Release notes](https://github.com/redis/redis-py/releases) - [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES) - [Commits](https://github.com/redis/redis-py/compare/v5.0.8...v5.1.0) Updates `pymongo` from 4.8.0 to 4.10.0 - [Release notes](https://github.com/mongodb/mongo-python-driver/releases) - [Changelog](https://github.com/mongodb/mongo-python-driver/blob/master/doc/changelog.rst) - [Commits](https://github.com/mongodb/mongo-python-driver/compare/4.8.0...4.10.0) Updates `h5py` from 3.11.0 to 3.12.1 - [Release notes](https://github.com/h5py/h5py/releases) - [Changelog](https://github.com/h5py/h5py/blob/master/docs/release_guide.rst) - [Commits](https://github.com/h5py/h5py/compare/3.11.0...3.12.1) --- updated-dependencies: - dependency-name: redis dependency-type: direct:development update-type: version-update:semver-minor dependency-group: requirements - dependency-name: pymongo dependency-type: direct:development update-type: version-update:semver-minor dependency-group: requirements - dependency-name: h5py dependency-type: direct:development update-type: version-update:semver-minor dependency-group: requirements ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements_dev_optional.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements_dev_optional.txt b/requirements_dev_optional.txt index 9d75d78e44..16a4bd868b 100644 --- a/requirements_dev_optional.txt +++ b/requirements_dev_optional.txt @@ -8,16 +8,16 @@ ipywidgets==8.1.5 # don't let pyup change pinning for azure-storage-blob, need to pin to older # version to get compatibility with azure storage emulator on appveyor (FIXME) azure-storage-blob==12.21.0 # pyup: ignore -redis==5.0.8 +redis==5.1.0 types-redis types-setuptools -pymongo==4.8.0 +pymongo==4.10.0 # optional test requirements coverage pytest-cov==5.0.0 pytest-doctestplus==1.2.1 pytest-timeout==2.3.1 -h5py==3.11.0 +h5py==3.12.1 fsspec==2023.12.2 s3fs==2023.12.2 moto[server]>=5.0.1 From 559c2e3e34b0e5f3d408083045baf3e9f7cc0cd7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 2 Oct 2024 08:39:24 +0200 Subject: [PATCH 04/11] Bump pymongo from 4.10.0 to 4.10.1 in the requirements group (#2288) Bumps the requirements group with 1 update: [pymongo](https://github.com/mongodb/mongo-python-driver). Updates `pymongo` from 4.10.0 to 4.10.1 - [Release notes](https://github.com/mongodb/mongo-python-driver/releases) - [Changelog](https://github.com/mongodb/mongo-python-driver/blob/master/doc/changelog.rst) - [Commits](https://github.com/mongodb/mongo-python-driver/compare/4.10.0...4.10.1) --- updated-dependencies: - dependency-name: pymongo dependency-type: direct:development update-type: version-update:semver-patch dependency-group: requirements ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements_dev_optional.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_dev_optional.txt b/requirements_dev_optional.txt index 16a4bd868b..52c4a737a1 100644 --- a/requirements_dev_optional.txt +++ b/requirements_dev_optional.txt @@ -11,7 +11,7 @@ azure-storage-blob==12.21.0 # pyup: ignore redis==5.1.0 types-redis types-setuptools -pymongo==4.10.0 +pymongo==4.10.1 # optional test requirements coverage pytest-cov==5.0.0 From 6b9ab9e29f526986c5c7519dd4063546d5a81d14 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 2 Oct 2024 16:30:35 +0200 Subject: [PATCH 05/11] Fix low contrast box titles (#2287) (#2292) --- docs/_static/custom.css | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/_static/custom.css b/docs/_static/custom.css index 87dd70e347..4e664a596b 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -74,7 +74,6 @@ Nat Methods 8, 441 (2011). https://doi.org/10.1038/nmeth.1618 .sd-card .sd-card-header { border: none; background-color: white; - color: #150458 !important; font-size: var(--pst-font-size-h5); font-weight: bold; padding: 2.5rem 0rem 0.5rem 0rem; @@ -107,7 +106,6 @@ html[data-theme=dark] .sd-shadow-sm { html[data-theme=dark] .sd-card .sd-card-header { background-color:var(--pst-color-background); - color: #150458 !important; } html[data-theme=dark] .sd-card .sd-card-footer { From f175de475fd2d45e9df90ad313e0e57eb7ef7fa2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 10:35:58 -0700 Subject: [PATCH 06/11] Bump pypa/gh-action-pypi-publish in the actions group (#2304) Bumps the actions group with 1 update: [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish). Updates `pypa/gh-action-pypi-publish` from 1.10.2 to 1.10.3 - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.10.2...v1.10.3) --- updated-dependencies: - dependency-name: pypa/gh-action-pypi-publish dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/releases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index dccfbc208f..26b669abea 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -64,7 +64,7 @@ jobs: with: name: releases path: dist - - uses: pypa/gh-action-pypi-publish@v1.10.2 + - uses: pypa/gh-action-pypi-publish@v1.10.3 with: user: __token__ password: ${{ secrets.pypi_password }} From a1dfd016983733277ed9a925aaef6fb2a08938e5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 15:21:28 -0700 Subject: [PATCH 07/11] Bump the requirements group with 2 updates (#2303) Bumps the requirements group with 2 updates: [numpy](https://github.com/numpy/numpy) and [redis](https://github.com/redis/redis-py). Updates `numpy` from 2.1.1 to 2.1.2 - [Release notes](https://github.com/numpy/numpy/releases) - [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst) - [Commits](https://github.com/numpy/numpy/compare/v2.1.1...v2.1.2) Updates `redis` from 5.1.0 to 5.1.1 - [Release notes](https://github.com/redis/redis-py/releases) - [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES) - [Commits](https://github.com/redis/redis-py/compare/v5.1.0...v5.1.1) --- updated-dependencies: - dependency-name: numpy dependency-type: direct:development update-type: version-update:semver-patch dependency-group: requirements - dependency-name: redis dependency-type: direct:development update-type: version-update:semver-patch dependency-group: requirements ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements_dev_numpy.txt | 2 +- requirements_dev_optional.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements_dev_numpy.txt b/requirements_dev_numpy.txt index 190610d3d3..4a619aa3ef 100644 --- a/requirements_dev_numpy.txt +++ b/requirements_dev_numpy.txt @@ -1,4 +1,4 @@ # Break this out into a separate file to allow testing against # different versions of numpy. This file should pin to the latest # numpy version. -numpy==2.1.1 +numpy==2.1.2 diff --git a/requirements_dev_optional.txt b/requirements_dev_optional.txt index 52c4a737a1..df1d4fd793 100644 --- a/requirements_dev_optional.txt +++ b/requirements_dev_optional.txt @@ -8,7 +8,7 @@ ipywidgets==8.1.5 # don't let pyup change pinning for azure-storage-blob, need to pin to older # version to get compatibility with azure storage emulator on appveyor (FIXME) azure-storage-blob==12.21.0 # pyup: ignore -redis==5.1.0 +redis==5.1.1 types-redis types-setuptools pymongo==4.10.1 From eaf5d7ab4c5a791ce112e0ced45bca2288eb9d69 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 10 Oct 2024 08:30:48 +0100 Subject: [PATCH 08/11] Bump numcodecs from 0.13.0 to 0.13.1 in the requirements group (#2326) Bumps the requirements group with 1 update: [numcodecs](https://github.com/zarr-developers/numcodecs). Updates `numcodecs` from 0.13.0 to 0.13.1 - [Release notes](https://github.com/zarr-developers/numcodecs/releases) - [Changelog](https://github.com/zarr-developers/numcodecs/blob/main/docs/release.rst) - [Commits](https://github.com/zarr-developers/numcodecs/compare/v0.13.0...v0.13.1) --- updated-dependencies: - dependency-name: numcodecs dependency-type: direct:development update-type: version-update:semver-patch dependency-group: requirements ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements_dev_minimal.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_dev_minimal.txt b/requirements_dev_minimal.txt index 1d29404d6c..caa078cc82 100644 --- a/requirements_dev_minimal.txt +++ b/requirements_dev_minimal.txt @@ -1,7 +1,7 @@ # library requirements asciitree==0.3.3 fasteners==0.19 -numcodecs==0.13.0 +numcodecs==0.13.1 msgpack-python==0.5.6 setuptools-scm==8.1.0 # test requirements From 287dbd9db267fa826d2398e6339f2eda214fb4cf Mon Sep 17 00:00:00 2001 From: Joseph Hamman Date: Sat, 12 Oct 2024 21:42:14 -0700 Subject: [PATCH 09/11] ci: run test actions on support branch --- .github/workflows/minimal.yml | 4 ++-- .github/workflows/python-package.yml | 4 ++-- .github/workflows/windows-testing.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/minimal.yml b/.github/workflows/minimal.yml index b5b2f48d62..d166cd33df 100644 --- a/.github/workflows/minimal.yml +++ b/.github/workflows/minimal.yml @@ -4,9 +4,9 @@ name: Minimal installation on: push: - branches: [ main ] + branches: [ main, support/2.x ] pull_request: - branches: [ main ] + branches: [ main, support/2.x ] jobs: minimum_build: diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index b1be7e425d..2257ba8d5b 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -5,9 +5,9 @@ name: Linux Testing on: push: - branches: [ main ] + branches: [ main, support/2.x ] pull_request: - branches: [ main ] + branches: [ main, support/2.x ] jobs: build: diff --git a/.github/workflows/windows-testing.yml b/.github/workflows/windows-testing.yml index 1e22fec6d1..626f8cd4f3 100644 --- a/.github/workflows/windows-testing.yml +++ b/.github/workflows/windows-testing.yml @@ -5,9 +5,9 @@ name: Python package on: push: - branches: [ main ] + branches: [ main, support/2.x ] pull_request: - branches: [ main ] + branches: [ main, support/2.x ] jobs: windows: From fb3c24d42532be9af63d5c1297afc64346345fae Mon Sep 17 00:00:00 2001 From: Joseph Hamman Date: Sun, 13 Oct 2024 06:17:46 -0700 Subject: [PATCH 10/11] remove main, change branch name --- .github/workflows/minimal.yml | 4 ++-- .github/workflows/python-package.yml | 4 ++-- .github/workflows/windows-testing.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/minimal.yml b/.github/workflows/minimal.yml index d166cd33df..76e7951954 100644 --- a/.github/workflows/minimal.yml +++ b/.github/workflows/minimal.yml @@ -4,9 +4,9 @@ name: Minimal installation on: push: - branches: [ main, support/2.x ] + branches: [ support/v2 ] pull_request: - branches: [ main, support/2.x ] + branches: [ support/v2 ] jobs: minimum_build: diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 2257ba8d5b..5d62185764 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -5,9 +5,9 @@ name: Linux Testing on: push: - branches: [ main, support/2.x ] + branches: [ support/v2] pull_request: - branches: [ main, support/2.x ] + branches: [ support/v2] jobs: build: diff --git a/.github/workflows/windows-testing.yml b/.github/workflows/windows-testing.yml index 626f8cd4f3..5a6f45fdda 100644 --- a/.github/workflows/windows-testing.yml +++ b/.github/workflows/windows-testing.yml @@ -5,9 +5,9 @@ name: Python package on: push: - branches: [ main, support/2.x ] + branches: [ support/v2 ] pull_request: - branches: [ main, support/2.x ] + branches: [ support/v2 ] jobs: windows: From ed94877ff69d859f2e9d412e775e2887bc6c71bf Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 15 Oct 2024 18:22:31 +0100 Subject: [PATCH 11/11] Add Python 3.13, drop Python 3.10 (#2344) * Add Python 3.13, drop Python 3.10 * Add some doctest skips * Clarify release note --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/workflows/python-package.yml | 6 ++-- .github/workflows/windows-testing.yml | 2 +- docs/release.rst | 10 ++++++- docs/tutorial.rst | 6 ++-- pyproject.toml | 41 +++++++++------------------ zarr/storage.py | 3 +- 7 files changed, 34 insertions(+), 36 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 7b0c4dcfc4..a806c74ad9 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -27,7 +27,7 @@ body: attributes: label: Python Version description: Version of Python interpreter - placeholder: 3.10, 3.11, 3.12 etc. + placeholder: 3.11, 3.12, 3.13 etc. validations: required: true - type: input diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 5d62185764..811ecad2d6 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -15,11 +15,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.10', '3.11', '3.12'] + python-version: ['3.11', '3.12', '3.13'] numpy_version: ['>=2.1', '==1.24.*'] exclude: - python-version: '3.12' numpy_version: '==1.24.*' + - python-version: '3.13' + numpy_version: '==1.24.*' services: redis: image: redis @@ -50,7 +52,7 @@ jobs: - name: Create Conda environment with the rights deps shell: "bash -l {0}" run: | - conda create -n zarr-env python==${{matrix.python-version}} bsddb3 pip nodejs + conda create -n zarr-env python==${{matrix.python-version}} pip nodejs conda activate zarr-env npm install -g azurite - name: Install dependencies diff --git a/.github/workflows/windows-testing.yml b/.github/workflows/windows-testing.yml index 5a6f45fdda..8bd560fb2f 100644 --- a/.github/workflows/windows-testing.yml +++ b/.github/workflows/windows-testing.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: True matrix: - python-version: ['3.10', '3.11'] + python-version: ['3.11', '3.12'] steps: - uses: actions/checkout@v4 with: diff --git a/docs/release.rst b/docs/release.rst index a62d6a653c..74207d92d1 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -25,9 +25,17 @@ Release notes Enhancements ~~~~~~~~~~~~ +* Added testing on Python 3.13. Maintenance ~~~~~~~~~~~ +* Dropped support for Python 3.10. + By :user:`David Stansby ` (:issue:`2344`). +* Removed testing for compatibility with the ``bsddb3`` package. + ``bsddb3`` was last released four years ago, and should still work with + ``zarr-python`` if you can install it, but to reduce our maintenance + burden we will no longer run our compatibility tests for it. + By :user:`David Stansby ` (:issue:`2344`). Deprecations ~~~~~~~~~~~~ @@ -41,7 +49,7 @@ Enhancements ~~~~~~~~~~~~ * Added support for creating a copy of data when converting a `zarr.Array` to a numpy array. - By :user:`David Stansby ` (:issue:`2106`) and + By :user:`David Stansby ` (:issue:`2106`) and :user:`Joe Hamman ` (:issue:`2123`). Maintenance diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 214dd4f63f..87c4a20103 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -811,6 +811,8 @@ storing an array or group. Here is an example using a Berkeley DB B-tree database for storage (requires `bsddb3 `_ to be installed):: +.. doctest-requires:: bsddb3 + >>> import bsddb3 >>> store = zarr.DBMStore('data/example.bdb', open=bsddb3.btopen) >>> root = zarr.group(store=store, overwrite=True) @@ -1009,12 +1011,12 @@ class from ``fsspec``. The following example demonstrates how to access a ZIP-archived Zarr group on s3 using `s3fs `_ and ``ZipFileSystem``: >>> s3_path = "s3://path/to/my.zarr.zip" - >>> + >>> >>> s3 = s3fs.S3FileSystem() >>> f = s3.open(s3_path) >>> fs = ZipFileSystem(f, mode="r") >>> store = FSMap("", fs, check=False) - >>> + >>> >>> # caching may improve performance when repeatedly reading the same data >>> cache = zarr.storage.LRUStoreCache(store, max_size=2**28) >>> z = zarr.group(store=cache) diff --git a/pyproject.toml b/pyproject.toml index ec06b63a96..c5ff73a102 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,19 +7,15 @@ build-backend = "setuptools.build_meta" name = "zarr" description = "An implementation of chunked, compressed, N-dimensional arrays for Python" readme = { file = "README.md", content-type = "text/markdown" } -maintainers = [ - { name = "Alistair Miles", email = "alimanfoo@googlemail.com" } -] -requires-python = ">=3.10" +maintainers = [{ name = "Alistair Miles", email = "alimanfoo@googlemail.com" }] +requires-python = ">=3.11" dependencies = [ 'asciitree', 'numpy>=1.24', 'fasteners; sys_platform != "emscripten"', 'numcodecs>=0.10.0', ] -dynamic = [ - "version", -] +dynamic = ["version"] classifiers = [ 'Development Status :: 6 - Mature', 'Intended Audience :: Developers', @@ -30,18 +26,14 @@ classifiers = [ 'Topic :: Software Development :: Libraries :: Python Modules', 'Operating System :: Unix', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', ] license = { text = "MIT" } [project.optional-dependencies] -jupyter = [ - 'notebook', - 'ipytree>=0.2.2', - 'ipywidgets>=8.0.0', -] +jupyter = ['notebook', 'ipytree>=0.2.2', 'ipywidgets>=8.0.0'] docs = [ 'sphinx', 'sphinx-automodapi', @@ -64,14 +56,11 @@ Homepage = "https://github.com/zarr-developers/zarr-python" exclude_lines = [ "pragma: no cover", "pragma: ${PY_MAJOR_VERSION} no cover", - '.*\.\.\.' # Ignore "..." lines + '.*\.\.\.', # Ignore "..." lines ] [tool.coverage.run] -omit = [ - "zarr/meta_v1.py", - "bench/compress_normal.py", -] +omit = ["zarr/meta_v1.py", "bench/compress_normal.py"] [tool.setuptools] packages = ["zarr", "zarr._storage", "zarr.tests"] @@ -100,14 +89,12 @@ exclude = [ "build", "dist", "venv", - "docs" + "docs", ] [tool.ruff.lint] -extend-select = [ - "B" -] -ignore = ["B905"] # zip-without-explicit-strict +extend-select = ["B"] +ignore = ["B905"] # zip-without-explicit-strict [tool.black] line-length = 100 @@ -136,9 +123,7 @@ doctest_optionflags = [ "ELLIPSIS", "IGNORE_EXCEPTION_DETAIL", ] -addopts = [ - "--durations=10", -] +addopts = ["--durations=10"] filterwarnings = [ "error:::zarr.*", "ignore:PY_SSIZE_T_CLEAN will be required.*:DeprecationWarning", @@ -146,9 +131,9 @@ filterwarnings = [ "ignore:The .* is deprecated and will be removed in a Zarr-Python version 3*:FutureWarning", "ignore:The experimental Zarr V3 implementation in this version .*:FutureWarning", ] -doctest_subpackage_requires =[ +doctest_subpackage_requires = [ "zarr/core.py = numpy>=2", - "zarr/creation.py = numpy>=2" + "zarr/creation.py = numpy>=2", ] diff --git a/zarr/storage.py b/zarr/storage.py index f412870f75..7e5e966bc1 100644 --- a/zarr/storage.py +++ b/zarr/storage.py @@ -1686,7 +1686,6 @@ class NestedDirectoryStore(DirectoryStore): def __init__( self, path, normalize_keys=False, dimension_separator: Optional[DIMENSION_SEPARATOR] = "/" ): - warnings.warn( V3_DEPRECATION_MESSAGE.format(store=self.__class__.__name__), FutureWarning, @@ -2070,6 +2069,8 @@ class DBMStore(Store): `_ package is installed, a Berkeley DB database can be used:: + .. doctest-requires:: bsddb3 + >>> import bsddb3 >>> store = zarr.DBMStore('data/array.bdb', open=bsddb3.btopen) >>> z = zarr.zeros((10, 10), chunks=(5, 5), store=store, overwrite=True)