Skip to content

Commit 6a2f1f6

Browse files
bpiwowarclaude
andcommitted
fix: use uv with dependency-groups for RTD builds
- Switch RTD from pip to uv with custom build commands - Remove duplicate [project.optional-dependencies] in favor of [dependency-groups] - Pin sphinx<8 (experimaestro.sphinx uses restify removed in Sphinx 8) - Remove docs/requirements.txt (now unused) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1a41483 commit 6a2f1f6

File tree

3 files changed

+7
-33
lines changed

3 files changed

+7
-33
lines changed

.readthedocs.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@ build:
88
os: "ubuntu-22.04"
99
tools:
1010
python: "3.11"
11-
12-
sphinx:
13-
configuration: docs/source/conf.py
14-
15-
python:
16-
install:
17-
- method: pip
18-
path: .
19-
extra_requirements:
20-
- docs
11+
commands:
12+
- asdf plugin add uv
13+
- asdf install uv latest
14+
- asdf global uv latest
15+
- uv sync --group docs
16+
- .venv/bin/python -m sphinx -b html docs/source $READTHEDOCS_OUTPUT/html

docs/requirements.txt

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

pyproject.toml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,6 @@ dependencies = [
3232
"experimaestro",
3333
]
3434

35-
[project.optional-dependencies]
36-
dev = [
37-
"pytest",
38-
"docutils",
39-
"sphobjinv",
40-
"sphinx<8",
41-
]
42-
docs = [
43-
"datamaestro>=0.8.5",
44-
"myst-parser>=0.18.0",
45-
"sphinx>=6,<8",
46-
"sphinx-codeautolink>=0.15.0",
47-
"sphinx-rtd-theme>=3.1.0",
48-
"sphinx-toolbox>=4.1.2",
49-
]
50-
5135
[project.urls]
5236
Homepage = "https://github.com/experimaestro/datamaestro_text"
5337
Documentation = "https://datamaestro-text.readthedocs.io/en/latest/"
@@ -96,7 +80,7 @@ docs = [
9680
"datamaestro>=0.8.5",
9781
"experimaestro>=2.0.0b29", # Pre-release needed for EnumType.name() fix
9882
"myst-parser>=0.18.0",
99-
"sphinx>=6",
83+
"sphinx>=6,<8", # experimaestro.sphinx uses restify removed in Sphinx 8
10084
"sphinx-codeautolink>=0.15.0",
10185
"sphinx-rtd-theme>=3.1.0",
10286
"sphinx-toolbox>=4.1.2",

0 commit comments

Comments
 (0)