Skip to content

Commit 06b416a

Browse files
Paul V Cravenclaude
andcommitted
Split docs dependencies into separate group, upgrade Sphinx to 9.1.0
Sphinx 9.x requires Python >=3.12, but arcade supports >=3.10. Move all doc-building deps into a 'docs' dependency group so test CI can skip them on Python 3.10/3.11 via 'uv sync --no-group docs'. Also upgrades sphinx-rtd-theme from 3.0.2 to 3.1.0 (required for Sphinx 9.x compatibility). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5f6f6f9 commit 06b416a

2 files changed

Lines changed: 15 additions & 14 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
enable-cache: true
3939

4040
- name: Sync UV project
41-
run: uv sync
41+
run: uv sync --no-group docs
4242

4343
- name: Run tests
4444
env:

pyproject.toml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@ Book = "https://learn.arcade.academy"
3838
extras = [
3939
"pymunk~=7.2.0"
4040
]
41+
# Doc building (requires Python >=3.12 due to Sphinx 9.x)
42+
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",
52+
]
4153
# Used for dev work
4254
dev = [
43-
"sphinx==8.1.3", # April 2024 | Updated 2024-07-15, 7.4+ is broken with sphinx-autobuild
44-
"sphinx_rtd_theme==3.0.2", # Nov 2024
45-
"sphinx-rtd-dark-mode==1.3.0",
46-
"sphinx-autobuild==2024.10.3", # April 2024 | Due to this, Python 3.10+ is required to serve docs
47-
"sphinx-copybutton==0.5.2", # April 2023
48-
"sphinx-sitemap==2.6.0", # April 2024
49-
"sphinx-togglebutton==0.3.2", # May 2025
50-
"pygments==2.19.1", # 2.18 has breaking changes in lexer
51-
"docutils==0.21.2", # ?
52-
# "pyyaml==6.0.1",
53-
# "readthedocs-sphinx-search==0.3.2",
54-
# "sphinx-autodoc-typehints==2.0.1",
5555
# --- tools and build
5656
"pytest",
5757
"pytest-cov",
@@ -65,7 +65,8 @@ dev = [
6565
"typer==0.12.5", # Needed for make.py
6666
"wheel",
6767
"bottle", # Used for web testing playground
68-
{include-group = "extras"}
68+
{include-group = "extras"},
69+
{include-group = "docs"},
6970
]
7071

7172
# Testing only

0 commit comments

Comments
 (0)