Skip to content

Commit

Permalink
deps: add packaging to required deps (#2573)
Browse files Browse the repository at this point in the history
* deps: add packaging to required deps

* temporarily pin numpy version for mypy
  • Loading branch information
jhamman authored Dec 19, 2024
1 parent f035d45 commit 5bf7bcf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 5bf7bcf

Please sign in to comment.