From 5bf7bcfcfe6426bea37df5d0691211f6a71daa39 Mon Sep 17 00:00:00 2001 From: Joe Hamman Date: Thu, 19 Dec 2024 01:23:27 -0800 Subject: [PATCH] deps: add packaging to required deps (#2573) * deps: add packaging to required deps * temporarily pin numpy version for mypy --- .pre-commit-config.yaml | 3 ++- pyproject.toml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4a93e9ce8..ea1cd4dba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,9 +28,10 @@ repos: files: src|tests additional_dependencies: # Package dependencies + - packaging - donfig - numcodecs[crc32c] - - numpy + - numpy==2.1 # until https://github.com/numpy/numpy/issues/28034 is resolved - typing_extensions - universal-pathlib # Tests diff --git a/pyproject.toml b/pyproject.toml index 6c8110cbf..75bbbf15d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,7 @@ maintainers = [ requires-python = ">=3.11" # If you add a new dependency here, please also add it to .pre-commit-config.yml dependencies = [ + 'packaging>=22.0', 'numpy>=1.25', 'numcodecs[crc32c]>=0.14', 'typing_extensions>=4.9', @@ -173,6 +174,7 @@ serve = "sphinx-autobuild docs docs/_build --host 0.0.0.0" [tool.hatch.envs.upstream] python = "3.13" dependencies = [ + 'packaging @ git+https://github.com/pypa/packaging', 'numpy', # from scientific-python-nightly-wheels 'numcodecs @ git+https://github.com/zarr-developers/numcodecs', 'fsspec @ git+https://github.com/fsspec/filesystem_spec', @@ -206,6 +208,7 @@ See Spec 0000 for details and drop schedule: https://scientific-python.org/specs """ python = "3.11" dependencies = [ + 'packaging==22.*', 'numpy==1.25.*', 'numcodecs==0.14.*', # 0.14 needed for zarr3 codecs 'fsspec==2022.10.0',