Skip to content

Commit 5bf7bcf

Browse files
authored
deps: add packaging to required deps (#2573)
* deps: add packaging to required deps * temporarily pin numpy version for mypy
1 parent f035d45 commit 5bf7bcf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ repos:
2828
files: src|tests
2929
additional_dependencies:
3030
# Package dependencies
31+
- packaging
3132
- donfig
3233
- numcodecs[crc32c]
33-
- numpy
34+
- numpy==2.1 # until https://github.com/numpy/numpy/issues/28034 is resolved
3435
- typing_extensions
3536
- universal-pathlib
3637
# Tests

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ maintainers = [
2626
requires-python = ">=3.11"
2727
# If you add a new dependency here, please also add it to .pre-commit-config.yml
2828
dependencies = [
29+
'packaging>=22.0',
2930
'numpy>=1.25',
3031
'numcodecs[crc32c]>=0.14',
3132
'typing_extensions>=4.9',
@@ -173,6 +174,7 @@ serve = "sphinx-autobuild docs docs/_build --host 0.0.0.0"
173174
[tool.hatch.envs.upstream]
174175
python = "3.13"
175176
dependencies = [
177+
'packaging @ git+https://github.com/pypa/packaging',
176178
'numpy', # from scientific-python-nightly-wheels
177179
'numcodecs @ git+https://github.com/zarr-developers/numcodecs',
178180
'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
206208
"""
207209
python = "3.11"
208210
dependencies = [
211+
'packaging==22.*',
209212
'numpy==1.25.*',
210213
'numcodecs==0.14.*', # 0.14 needed for zarr3 codecs
211214
'fsspec==2022.10.0',

0 commit comments

Comments
 (0)