Skip to content

Commit 8688c32

Browse files
authored
docs: use uv & 3.13 for build (hynek#690)
* docs: use uv & 3.13 for build * Add unused config to appease RTD
1 parent c7a6a10 commit 8688c32

File tree

3 files changed

+16
-19
lines changed

3 files changed

+16
-19
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
- uses: actions/setup-python@v5
185185
with:
186186
# Keep in sync with tox.ini/docs & .readthedocs.yaml
187-
python-version: "3.12"
187+
python-version: "3.13"
188188
- uses: hynek/setup-cached-uv@v2
189189

190190
- run: >

.readthedocs.yaml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,16 @@ build:
55
os: ubuntu-lts-latest
66
tools:
77
# Keep version in sync with tox.ini/docs and ci.yml/docs.
8-
python: "3.12"
9-
jobs:
10-
# Need the tags to calculate the version.
11-
post_checkout:
12-
- git fetch --tags
8+
python: "3.13"
9+
commands:
10+
# Need the tags to calculate the version (sometimes).
11+
- git fetch --tags
12+
- asdf plugin add uv
13+
- asdf install uv latest
14+
- asdf global uv latest
1315

14-
# Replace versions in sponsor URLs.
15-
pre_build:
16-
- python -Im pip install tox-uv
17-
- python -Im tox run -e docs-sponsors
16+
- uvx --with tox-uv tox run -e docs-sponsors
17+
- uvx --with tox-uv tox run -e docs -- $READTHEDOCS_OUTPUT
1818

19-
python:
20-
install:
21-
- method: pip
22-
path: .
23-
extra_requirements:
24-
- docs
19+
sphinx:
20+
configuration: docs/conf.py

tox.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ commands =
4545

4646
[testenv:docs]
4747
# Keep base_python in sync with ci.yml/docs and .readthedocs.yaml.
48-
base_python = py312
48+
base_python = py313
4949
extras = docs
5050
commands =
51-
sphinx-build -n -T -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
52-
sphinx-build -n -T -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
51+
sphinx-build -n -T -W -b html -d {envtmpdir}/doctrees docs {posargs:docs/_build/}html
52+
sphinx-build -n -T -W -b doctest -d {envtmpdir}/doctrees docs {posargs:docs/_build/}html
53+
5354

5455
[testenv:docs-watch]
5556
package = editable

0 commit comments

Comments
 (0)