Skip to content

Commit 6a1cd93

Browse files
Paul V Cravenclaude
andcommitted
Fix uv resolution: add Python >=3.12 markers to docs deps
uv does universal resolution across all versions in requires-python (>=3.10), so Sphinx 9.1.0 fails even on Python 3.13. Fix by: - Adding 'python_version >= 3.12' markers to all docs group deps - Removing docs include from dev group (keep them independent) - Code quality CI uses 'uv sync --group docs' explicitly - RTD installs both dev and docs groups Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3c5dd8b commit 6a1cd93

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/code_quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
enable-cache: true
3030

3131
- name: Sync UV project
32-
run: uv sync
32+
run: uv sync --group docs
3333

3434
- name: Formatting (Ruff)
3535
if: success()
@@ -75,7 +75,7 @@ jobs:
7575
enable-cache: true
7676

7777
- name: Sync UV Project
78-
run: uv sync
78+
run: uv sync --group docs
7979

8080
- name: build-docs
8181
run: uv run make.py docs-full

.readthedocs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ python:
1515
- method: uv
1616
command: sync
1717
groups:
18+
- dev
1819
- docs
1920

2021
# Build PDF & ePub

pyproject.toml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ extras = [
4040
]
4141
# Doc building (requires Python >=3.12 due to Sphinx 9.x)
4242
docs = [
43-
"sphinx==9.1.0",
44-
"sphinx_rtd_theme==3.1.0",
45-
"sphinx-rtd-dark-mode==1.3.0",
46-
"sphinx-autobuild==2024.10.3",
47-
"sphinx-copybutton==0.5.2",
48-
"sphinx-sitemap==2.6.0",
49-
"sphinx-togglebutton==0.3.2",
50-
"pygments==2.19.1",
51-
"docutils==0.21.2",
43+
"sphinx==9.1.0; python_version >= '3.12'",
44+
"sphinx_rtd_theme==3.1.0; python_version >= '3.12'",
45+
"sphinx-rtd-dark-mode==1.3.0; python_version >= '3.12'",
46+
"sphinx-autobuild==2024.10.3; python_version >= '3.12'",
47+
"sphinx-copybutton==0.5.2; python_version >= '3.12'",
48+
"sphinx-sitemap==2.6.0; python_version >= '3.12'",
49+
"sphinx-togglebutton==0.3.2; python_version >= '3.12'",
50+
"pygments==2.19.1; python_version >= '3.12'",
51+
"docutils==0.21.2; python_version >= '3.12'",
5252
]
5353
# Used for dev work
5454
dev = [
@@ -66,7 +66,6 @@ dev = [
6666
"wheel",
6767
"bottle", # Used for web testing playground
6868
{include-group = "extras"},
69-
{include-group = "docs"},
7069
]
7170

7271
# Testing only

0 commit comments

Comments
 (0)