Skip to content

Commit daea82c

Browse files
Paul V Cravenclaude
andcommitted
Update Sphinx to 9.1.0, RTD theme to 3.1.0, Pillow to >=12.2.0
Also patch pyglet LibraryMock to add __bool__/__iter__ so doc builds don't crash when ffmpeg codec init runs under sys.is_pyglet_doc_run. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6feb622 commit daea82c

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

doc/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@
5252
# 2. The commit: https://github.com/pyglet/pyglet/commit/97076c3a33a7d368cc9c9e44ca67769b6a16a905
5353
sys.is_pyglet_doc_run = True
5454

55+
# pyglet 3.0.dev3 LibraryMock lacks __iter__/__bool__, causing crashes
56+
# when ffmpeg codec init calls get_input_extensions() during doc builds.
57+
# Patch before any pyglet imports trigger media codec loading.
58+
import pyglet.lib # noqa: E402
59+
pyglet.lib.LibraryMock.__bool__ = lambda self: False
60+
pyglet.lib.LibraryMock.__iter__ = lambda self: iter([])
61+
5562
# --- Pre-processing Tasks
5663

5764
# Report our diagnostic info

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ classifiers = [
2020
"Topic :: Software Development :: Libraries :: Python Modules",
2121
]
2222
dependencies = [
23-
"pillow>=11.3.0",
23+
"pillow>=12.2.0",
2424
"pytiled-parser~=2.2.9",
2525
"pyglet==3.0.dev3",
2626
]
@@ -40,8 +40,8 @@ extras = [
4040
]
4141
# Used for dev work
4242
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
43+
"sphinx==9.1.0", # April 2026
44+
"sphinx_rtd_theme==3.1.0", # April 2026
4545
"sphinx-rtd-dark-mode==1.3.0",
4646
"sphinx-autobuild==2024.10.3", # April 2024 | Due to this, Python 3.10+ is required to serve docs
4747
"sphinx-copybutton==0.5.2", # April 2023

0 commit comments

Comments
 (0)