Skip to content

Commit 77d0b11

Browse files
dstansbyjhamman
andauthored
Clean up optional dependency groups (#2541)
* 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]>
1 parent 9972066 commit 77d0b11

File tree

3 files changed

+25
-23
lines changed

3 files changed

+25
-23
lines changed

docs/guide/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ Guide
44
.. toctree::
55
:maxdepth: 1
66

7+
whatsnew_v3
78
storage
89
consolidated_metadata

docs/guide/whatsnew_v3.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
What's new in v3
2+
================
3+
4+
This page gives an overview of major changes and additions in version 3.
5+
6+
7+
Dependencies
8+
------------
9+
- The new ``remote`` dependency group can be used to install a supported version of
10+
``fsspec``, required for remote data access.
11+
- The new ``gpu`` dependency group can be used to install a supported version of
12+
``cuda``, required for GPU functionality.
13+
- The ``jupyter`` optional dependency group has been removed, since v3 contains no
14+
jupyter specific functionality.

pyproject.toml

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,14 @@ license = {text = "MIT License"}
5353
keywords = ["Python", "compressed", "ndimensional-arrays", "zarr"]
5454

5555
[project.optional-dependencies]
56-
fsspec = [
56+
# User extras
57+
remote = [
5758
"fsspec>=2023.10.0",
5859
]
60+
gpu = [
61+
"cupy-cuda12x",
62+
]
63+
# Development extras
5964
test = [
6065
"coverage",
6166
"pytest",
@@ -68,15 +73,7 @@ test = [
6873
"hypothesis",
6974
"universal-pathlib",
7075
]
71-
72-
jupyter = [
73-
'notebook',
74-
'ipytree>=0.2.2',
75-
'ipywidgets>=8.0.0',
76-
]
77-
gpu = [
78-
"cupy-cuda12x",
79-
]
76+
optional = ["rich", "universal-pathlib"]
8077
docs = [
8178
'sphinx==8.1.3',
8279
'sphinx-autobuild>=2021.3.14',
@@ -87,19 +84,9 @@ docs = [
8784
'pydata-sphinx-theme',
8885
'numpydoc',
8986
'numcodecs[msgpack]',
90-
'msgpack',
91-
]
92-
extra = [
93-
'msgpack',
94-
]
95-
optional = [
96-
'universal-pathlib>=0.0.22',
97-
'rich'
98-
]
99-
tree = [
100-
'rich',
10187
]
10288

89+
10390
[project.urls]
10491
"Bug Tracker" = "https://github.com/zarr-developers/zarr-python/issues"
10592
Changelog = "https://zarr.readthedocs.io/en/stable/release.html"
@@ -129,7 +116,7 @@ dependencies = [
129116
"numpy~={matrix:numpy}",
130117
"universal_pathlib",
131118
]
132-
features = ["test", "extra"]
119+
features = ["test"]
133120

134121
[[tool.hatch.envs.test.matrix]]
135122
python = ["3.11", "3.12", "3.13"]
@@ -160,7 +147,7 @@ dependencies = [
160147
"numpy~={matrix:numpy}",
161148
"universal_pathlib",
162149
]
163-
features = ["test", "extra", "gpu"]
150+
features = ["test", "gpu"]
164151

165152
[[tool.hatch.envs.gputest.matrix]]
166153
python = ["3.11", "3.12", "3.13"]

0 commit comments

Comments
 (0)