Skip to content

Commit

Permalink
Clean up optional dependency groups (#2541)
Browse files Browse the repository at this point in the history
* Clean up optional dependency groups

* Fix hatch envs

* Remove jupyter extra

* Drop upath and tree dependency groups

* Change fsspec group to remote group

* Add a v3 what's new

* Fix optional group

* Fix spelling

---------

Co-authored-by: Joe Hamman <[email protected]>
  • Loading branch information
dstansby and jhamman authored Dec 16, 2024
1 parent 9972066 commit 77d0b11
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
1 change: 1 addition & 0 deletions docs/guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ Guide
.. toctree::
:maxdepth: 1

whatsnew_v3
storage
consolidated_metadata
14 changes: 14 additions & 0 deletions docs/guide/whatsnew_v3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
What's new in v3
================

This page gives an overview of major changes and additions in version 3.


Dependencies
------------
- The new ``remote`` dependency group can be used to install a supported version of
``fsspec``, required for remote data access.
- The new ``gpu`` dependency group can be used to install a supported version of
``cuda``, required for GPU functionality.
- The ``jupyter`` optional dependency group has been removed, since v3 contains no
jupyter specific functionality.
33 changes: 10 additions & 23 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,14 @@ license = {text = "MIT License"}
keywords = ["Python", "compressed", "ndimensional-arrays", "zarr"]

[project.optional-dependencies]
fsspec = [
# User extras
remote = [
"fsspec>=2023.10.0",
]
gpu = [
"cupy-cuda12x",
]
# Development extras
test = [
"coverage",
"pytest",
Expand All @@ -68,15 +73,7 @@ test = [
"hypothesis",
"universal-pathlib",
]

jupyter = [
'notebook',
'ipytree>=0.2.2',
'ipywidgets>=8.0.0',
]
gpu = [
"cupy-cuda12x",
]
optional = ["rich", "universal-pathlib"]
docs = [
'sphinx==8.1.3',
'sphinx-autobuild>=2021.3.14',
Expand All @@ -87,19 +84,9 @@ docs = [
'pydata-sphinx-theme',
'numpydoc',
'numcodecs[msgpack]',
'msgpack',
]
extra = [
'msgpack',
]
optional = [
'universal-pathlib>=0.0.22',
'rich'
]
tree = [
'rich',
]


[project.urls]
"Bug Tracker" = "https://github.com/zarr-developers/zarr-python/issues"
Changelog = "https://zarr.readthedocs.io/en/stable/release.html"
Expand Down Expand Up @@ -129,7 +116,7 @@ dependencies = [
"numpy~={matrix:numpy}",
"universal_pathlib",
]
features = ["test", "extra"]
features = ["test"]

[[tool.hatch.envs.test.matrix]]
python = ["3.11", "3.12", "3.13"]
Expand Down Expand Up @@ -160,7 +147,7 @@ dependencies = [
"numpy~={matrix:numpy}",
"universal_pathlib",
]
features = ["test", "extra", "gpu"]
features = ["test", "gpu"]

[[tool.hatch.envs.gputest.matrix]]
python = ["3.11", "3.12", "3.13"]
Expand Down

0 comments on commit 77d0b11

Please sign in to comment.