Skip to content

Commit 3f4a3a9

Browse files
committed
🔧 Switch to dependency groups
* Update readthedocs config * Update GitHub workflow
1 parent 1446f1b commit 3f4a3a9

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
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
uv venv
2929
echo "$PWD/.venv/bin" >> $GITHUB_PATH
30-
uv pip install -e ".[docs]"
30+
uv pip install --group=docs
3131
- name: Build HTML and check links
3232
run: |
3333
uv run make html

.readthedocs.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ build:
1717
- graphviz
1818
tools:
1919
python: "3.12"
20+
jobs:
21+
install:
22+
- python -m pip install --upgrade pip
23+
- python -m pip install --group=docs
2024

2125
# Build documentation in the docs/ directory with Sphinx
2226
sphinx:
@@ -26,11 +30,3 @@ sphinx:
2630
formats:
2731
- epub
2832
- pdf
29-
30-
# Optionally declare the Python requirements required to build your docs
31-
python:
32-
install:
33-
- method: pip
34-
path: .
35-
extra_requirements:
36-
- docs

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ classifiers = [
1818
]
1919
dependencies = []
2020

21-
[project.optional-dependencies]
21+
[dependency-groups]
2222
docs = [
2323
"furo",
2424
"ipython",
@@ -36,7 +36,7 @@ docs = [
3636
]
3737

3838
dev = [
39-
"Python4DataScience[docs]",
39+
{ include-group = "docs" },
4040
"pre-commit",
4141
"codespell",
4242
"vale",

0 commit comments

Comments
 (0)