Skip to content

Commit 0667735

Browse files
committed
Use uv for docs dependencies
1 parent 20380ae commit 0667735

File tree

4 files changed

+510
-12
lines changed

4 files changed

+510
-12
lines changed

.readthedocs.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@ build:
88
os: ubuntu-24.04
99
tools:
1010
python: "3.13"
11+
jobs:
12+
pre_create_environment:
13+
- asdf plugin add uv
14+
- asdf install uv latest
15+
- asdf global uv latest
16+
create_environment:
17+
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
18+
install:
19+
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --group docs
1120

1221
sphinx:
1322
configuration: docs/conf.py
1423
fail_on_warning: true
1524

1625
formats: all
17-
18-
python:
19-
install:
20-
- requirements: docs/requirements.txt

docs/requirements.txt

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

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ test = [
6161
"pytest-randomly",
6262
"typing-extensions",
6363
]
64+
docs = [
65+
"furo>=2024.8.6",
66+
"sphinx>=7.4.7",
67+
]
68+
6469
django42 = [ "django>=4.2a1,<5; python_version>='3.8'" ]
6570
django50 = [ "django>=5.0a1,<5.1; python_version>='3.10'" ]
6671
django51 = [ "django>=5.1a1,<5.2; python_version>='3.10'" ]

0 commit comments

Comments
 (0)