Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up optional dependency groups #2541

Merged
merged 10 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading