Skip to content

Commit 59da12b

Browse files
committed
🔧 Switch to dependency groups
* Update readthedocs config * Update GitHub workflow
1 parent 2f4c805 commit 59da12b

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: |
2424
uv venv
2525
echo "$PWD/.venv/bin" >> $GITHUB_PATH
26-
uv pip install -e ".[docs]"
26+
uv pip install --group=docs
2727
- name: Build HTML and check links
2828
run: |
2929
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-
"jupyter-tutorial[docs]",
34+
{ include-group = "docs" },
3535
"pre-commit",
3636
"codespell",
3737
"vale",

0 commit comments

Comments
 (0)