Skip to content

Commit 37cd9e7

Browse files
FBumannclaude
andcommitted
build: move optional-dependencies to dependency-groups
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6b38ea5 commit 37cd9e7

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ build:
1515
create_environment:
1616
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
1717
install:
18-
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --extra docs
18+
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --group docs

pyproject.toml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,7 @@ Homepage = "https://github.com/FBumann/xarray_plotly"
3030
Documentation = "https://fbumann.github.io/xarray_plotly"
3131
Repository = "https://github.com/FBumann/xarray_plotly"
3232

33-
[project.optional-dependencies]
34-
dev = [
35-
"pytest==9.0.2",
36-
"pytest-cov==7.0.0",
37-
"mypy==1.19.1",
38-
"ruff==0.15.7",
39-
"pre-commit==4.5.1",
40-
"nbstripout==0.9.1",
41-
]
33+
[dependency-groups]
4234
docs = [
4335
"mkdocs==1.6.1",
4436
"mkdocs-material==9.7.6",
@@ -47,6 +39,15 @@ docs = [
4739
"mkdocs-plotly-plugin==0.1.3",
4840
"jupyter==1.1.1",
4941
]
42+
dev = [
43+
{include-group = "docs"},
44+
"pytest==9.0.2",
45+
"pytest-cov==7.0.0",
46+
"mypy==1.19.1",
47+
"ruff==0.15.7",
48+
"pre-commit==4.5.1",
49+
"nbstripout==0.9.1",
50+
]
5051

5152
[project.entry-points."xarray.backends"]
5253
# Entry point for xarray to auto-register the accessor (xarray >= 2024.01)

0 commit comments

Comments
 (0)