Skip to content

Commit 39c575e

Browse files
authored
Move documentation deps to pyproject.toml (#2714)
1 parent 95e6b89 commit 39c575e

6 files changed

Lines changed: 590 additions & 71 deletions

File tree

.github/workflows/docs.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,25 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v6
10+
- name: Set up Python
11+
uses: astral-sh/setup-uv@v7
12+
with:
13+
python-version: "3.12"
14+
cache-python: true
15+
activate-environment: true
16+
enable-cache: true
17+
1018
- name: Doxygen Action
1119
uses: mattnotmitt/doxygen-action@1.12.0
1220
with:
1321
working-directory: "doc/"
1422

23+
- name: Synchronize the virtual environment
24+
run: uv sync --managed-python --no-dev --group doc
25+
1526
- name: Build Sphinx documentation
1627
run: |
17-
pip install -r doc/requirements.txt
18-
sphinx-build doc/source/ ./doc/build/html/
28+
uv run sphinx-build doc/source/ ./doc/build/html/
1929
2030
- name: Upload artifact
2131
# Automatically uploads an artifact from the './_site' directory by default

doc/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

doc/make.bat

Lines changed: 0 additions & 35 deletions
This file was deleted.

doc/requirements.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ dev = [
3939
"numpy >=2 ; python_version >= '3.10'",
4040
"numpy <2 ; python_version < '3.10'",
4141
]
42+
doc = [
43+
"sphinx",
44+
"furo>=2025.12.19",
45+
"pygments>=2.20",
46+
"breathe",
47+
"sphinx-csharp @ git+https://github.com/rogerbarton/sphinx-csharp.git",
48+
]
4249

4350
[[project.authors]]
4451
name = "The Contributors of the Python.NET Project"

0 commit comments

Comments
 (0)