Skip to content

Commit 0a506d9

Browse files
committed
Handle doc dependencies via pyproject.toml
1 parent 5e297a6 commit 0a506d9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
- uses: actions/setup-python@v3
1111
- name: Install dependencies
1212
run: |
13-
pip install sphinx sphinx_rtd_theme
13+
python -m pip install --upgrade pip
14+
pip install '.[doc]'
1415
- name: Sphinx build
1516
run: |
1617
sphinx-build -b html docs/source docs/build/html

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ authors = [
1717
]
1818
description = "Bot de telegram para organizar pycamp"
1919
readme = "README.md"
20+
21+
[project.optional-dependencies]
22+
doc = [
23+
"sphinx==7.3.7",
24+
"sphinx_rtd_theme==2.0.0",
25+
]

0 commit comments

Comments
 (0)