Skip to content

Commit a0bce62

Browse files
committed
Move test requirements to dependency-groups
Xref https://peps.python.org/pep-0735 and https://packaging.python.org/en/latest/specifications/dependency-groups/#dependency-groups. Added missing netcdf4 and pooch dependencies, and updated contributing guide's testing section.
1 parent bc4df72 commit a0bce62

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

docs/source/contributing.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,10 @@ Running the test suite
130130
----------------------
131131

132132
*cupy-xarray* uses the `pytest <https://docs.pytest.org/en/latest/contents.html>`_
133-
framework for testing. You can run the test suite using::
133+
framework for testing. You'll need to install some dependencies and then run the test
134+
suite like so::
134135

136+
pip install --group test
135137
pytest --doctest-modules cupy_xarray
136138

137139
Contributing documentation

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ dependencies = [
2020
]
2121

2222
[project.optional-dependencies]
23+
24+
[dependency-groups]
2325
test = [
2426
"dask",
27+
"netcdf4",
28+
"pooch",
2529
"pytest",
2630
]
2731

0 commit comments

Comments
 (0)