forked from zarr-developers/zarr-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/zarr-developers/zarr-python …
…into feature/group-setitem
- Loading branch information
Showing
67 changed files
with
993 additions
and
396 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,19 +18,23 @@ maintainers = [ | |
{ name = "Juan Nunez-Iglesias", email = "[email protected]" }, | ||
{ name = "Martin Durant", email = "[email protected]" }, | ||
{ name = "Norman Rzepka" }, | ||
{ name = "Ryan Abernathey" } | ||
{ name = "Ryan Abernathey" }, | ||
{ name = "David Stansby" }, | ||
{ name = "Tom Augspurger", email = "[email protected]" }, | ||
{ name = "Deepak Cherian" } | ||
] | ||
requires-python = ">=3.11" | ||
# If you add a new dependency here, please also add it to .pre-commit-config.yml | ||
dependencies = [ | ||
'asciitree', | ||
'numpy>=1.25', | ||
'numcodecs>=0.10.2', | ||
'fsspec>2024', | ||
'crc32c', | ||
'typing_extensions', | ||
'donfig', | ||
'numcodecs>=0.13', | ||
'fsspec>=2022.10.0', | ||
'crc32c>=2.3', | ||
'typing_extensions>=4.6', | ||
'donfig>=0.8', | ||
] | ||
|
||
dynamic = [ | ||
"version", | ||
] | ||
|
@@ -46,6 +50,7 @@ classifiers = [ | |
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Programming Language :: Python :: 3.13', | ||
] | ||
license = {text = "MIT License"} | ||
keywords = ["Python", "compressed", "ndimensional-arrays", "zarr"] | ||
|
@@ -94,7 +99,7 @@ extra = [ | |
] | ||
optional = [ | ||
'lmdb', | ||
'universal-pathlib', | ||
'universal-pathlib>=0.0.22', | ||
] | ||
|
||
[project.urls] | ||
|
@@ -129,17 +134,17 @@ dependencies = [ | |
features = ["test", "extra"] | ||
|
||
[[tool.hatch.envs.test.matrix]] | ||
python = ["3.11", "3.12"] | ||
python = ["3.11", "3.12", "3.13"] | ||
numpy = ["1.25", "1.26", "2.0"] | ||
version = ["minimal"] | ||
|
||
[[tool.hatch.envs.test.matrix]] | ||
python = ["3.11", "3.12"] | ||
python = ["3.11", "3.12", "3.13"] | ||
numpy = ["1.25", "1.26", "2.0"] | ||
features = ["optional"] | ||
|
||
[[tool.hatch.envs.test.matrix]] | ||
python = ["3.11", "3.12"] | ||
python = ["3.11", "3.12", "3.13"] | ||
numpy = ["1.25", "1.26", "2.0"] | ||
features = ["gpu"] | ||
|
||
|
@@ -149,7 +154,7 @@ run-coverage-gpu = "pip install cupy-cuda12x && pytest -m gpu --cov-config=pypro | |
run = "run-coverage --no-cov" | ||
run-verbose = "run-coverage --verbose" | ||
run-mypy = "mypy src" | ||
run-hypothesis = "pytest --hypothesis-profile ci tests/v3/test_properties.py tests/v3/test_store/test_stateful*" | ||
run-hypothesis = "pytest --hypothesis-profile ci tests/test_properties.py tests/test_store/test_stateful*" | ||
list-env = "pip list" | ||
|
||
[tool.hatch.envs.gputest] | ||
|
@@ -160,7 +165,7 @@ dependencies = [ | |
features = ["test", "extra", "gpu"] | ||
|
||
[[tool.hatch.envs.gputest.matrix]] | ||
python = ["3.11", "3.12"] | ||
python = ["3.11", "3.12", "3.13"] | ||
numpy = ["1.25", "1.26", "2.0"] | ||
version = ["minimal"] | ||
|
||
|
@@ -169,7 +174,7 @@ run-coverage = "pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov=tests" | |
run = "run-coverage --no-cov" | ||
run-verbose = "run-coverage --verbose" | ||
run-mypy = "mypy src" | ||
run-hypothesis = "pytest --hypothesis-profile ci tests/v3/test_properties.py tests/v3/test_store/test_stateful*" | ||
run-hypothesis = "pytest --hypothesis-profile ci tests/test_properties.py tests/test_store/test_stateful*" | ||
list-env = "pip list" | ||
|
||
[tool.hatch.envs.docs] | ||
|
@@ -179,6 +184,65 @@ features = ['docs'] | |
build = "cd docs && make html" | ||
serve = "sphinx-autobuild docs docs/_build --host 0.0.0.0" | ||
|
||
[tool.hatch.envs.upstream] | ||
python = "3.13" | ||
dependencies = [ | ||
'numpy', # from scientific-python-nightly-wheels | ||
'numcodecs @ git+https://github.com/zarr-developers/numcodecs', | ||
'fsspec @ git+https://github.com/fsspec/filesystem_spec', | ||
's3fs @ git+https://github.com/fsspec/s3fs', | ||
'universal_pathlib @ git+https://github.com/fsspec/universal_pathlib', | ||
'crc32c @ git+https://github.com/ICRAR/crc32c', | ||
'typing_extensions @ git+https://github.com/python/typing_extensions', | ||
'donfig @ git+https://github.com/pytroll/donfig', | ||
# test deps | ||
'hypothesis', | ||
'pytest', | ||
'pytest-cov', | ||
'pytest-asyncio', | ||
'moto[s3]', | ||
] | ||
|
||
[tool.hatch.envs.upstream.env-vars] | ||
PIP_INDEX_URL = "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/" | ||
PIP_EXTRA_INDEX_URL = "https://pypi.org/simple/" | ||
PIP_PRE = "1" | ||
|
||
[tool.hatch.envs.upstream.scripts] | ||
run = "pytest --verbose" | ||
run-mypy = "mypy src" | ||
run-hypothesis = "pytest --hypothesis-profile ci tests/test_properties.py tests/test_store/test_stateful*" | ||
list-env = "pip list" | ||
|
||
[tool.hatch.envs.min_deps] | ||
description = """Test environment for minimum supported dependencies | ||
See Spec 0000 for details and drop schedule: https://scientific-python.org/specs/spec-0000/ | ||
""" | ||
python = "3.11" | ||
dependencies = [ | ||
'numpy==1.25.*', | ||
'numcodecs==0.13.*', # 0.13 needed for? (should be 0.11) | ||
'fsspec==2022.10.0', | ||
's3fs==2022.10.0', | ||
'universal_pathlib==0.0.22', | ||
'crc32c==2.3.*', | ||
'typing_extensions==4.6.*', # 4.5 needed for @deprecated, 4.6 for Buffer | ||
'donfig==0.8.*', | ||
# test deps | ||
'hypothesis', | ||
'pytest', | ||
'pytest-cov', | ||
'pytest-asyncio', | ||
'moto[s3]', | ||
] | ||
|
||
[tool.hatch.envs.min_deps.scripts] | ||
run = "pytest --verbose" | ||
run-hypothesis = "pytest --hypothesis-profile ci tests/test_properties.py tests/test_store/test_stateful*" | ||
list-env = "pip list" | ||
|
||
|
||
[tool.ruff] | ||
line-length = 100 | ||
force-exclude = true | ||
|
@@ -210,6 +274,7 @@ extend-select = [ | |
"B", # flake8-bugbear | ||
"C4", # flake8-comprehensions | ||
"FLY", # flynt | ||
"FURB", # refurb | ||
"G", # flake8-logging-format | ||
"I", # isort | ||
"ISC", # flake8-implicit-str-concat | ||
|
@@ -278,18 +343,17 @@ ignore_errors = true | |
|
||
[[tool.mypy.overrides]] | ||
module = [ | ||
"tests.v2.*", | ||
"tests.v3.package_with_entrypoint.*", | ||
"tests.v3.test_codecs.test_codecs", | ||
"tests.v3.test_codecs.test_transpose", | ||
"tests.v3.test_metadata.*", | ||
"tests.v3.test_store.*", | ||
"tests.v3.test_config", | ||
"tests.v3.test_group", | ||
"tests.v3.test_indexing", | ||
"tests.v3.test_properties", | ||
"tests.v3.test_sync", | ||
"tests.v3.test_v2", | ||
"tests.package_with_entrypoint.*", | ||
"tests.test_codecs.test_codecs", | ||
"tests.test_codecs.test_transpose", | ||
"tests.test_metadata.*", | ||
"tests.test_store.*", | ||
"tests.test_config", | ||
"tests.test_group", | ||
"tests.test_indexing", | ||
"tests.test_properties", | ||
"tests.test_sync", | ||
"tests.test_v2", | ||
] | ||
ignore_errors = true | ||
|
||
|
@@ -326,4 +390,15 @@ ignore = [ | |
|
||
[tool.numpydoc_validation] | ||
# See https://numpydoc.readthedocs.io/en/latest/validation.html#built-in-validation-checks for list of checks | ||
checks = ["GL06", "GL07", "GL10", "PR03", "PR05", "PR06"] | ||
checks = [ | ||
"GL06", | ||
"GL07", | ||
"GL09", | ||
"GL10", | ||
"SS02", | ||
"SS04", | ||
"PR02", | ||
"PR03", | ||
"PR05", | ||
"PR06", | ||
] |
Oops, something went wrong.