Skip to content

Commit 82efa37

Browse files
committed
🔧 Switch to dependency groups
* Update readthedocs config * Update GitHub workflow
1 parent e649b5d commit 82efa37

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
uv venv
2626
echo "$PWD/.venv/bin" >> $GITHUB_PATH
27-
uv pip install -e ".[docs]"
27+
uv pip install --group=docs
2828
- name: Build HTML and check links
2929
run: |
3030
uv run make html

.readthedocs.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ build:
1313
- graphviz
1414
tools:
1515
python: "3.12"
16+
jobs:
17+
install:
18+
- python -m pip install --upgrade pip
19+
- python -m pip install --group=docs
1620

1721
# Build documentation in the docs/ directory with Sphinx
1822
sphinx:
@@ -22,11 +26,3 @@ sphinx:
2226
formats:
2327
- epub
2428
- pdf
25-
26-
# Optionally declare the Python requirements required to build your docs
27-
python:
28-
install:
29-
- method: pip
30-
path: .
31-
extra_requirements:
32-
- docs

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classifiers = [
1414
]
1515
dependencies = []
1616

17-
[project.optional-dependencies]
17+
[dependency-groups]
1818
docs = [
1919
"furo",
2020
"ipython",
@@ -31,7 +31,7 @@ docs = [
3131
]
3232

3333
dev = [
34-
"pyviz-tutorial[docs]",
34+
{ include-group = "docs" },
3535
"pre-commit",
3636
"codespell",
3737
"vale",

0 commit comments

Comments
 (0)