Skip to content

Commit 488ab2b

Browse files
authored
Bump pyglet to 2.1.dev7 (#2412)
* Bump pyglet to 2.1.dev7 * Only import Framebuffer when TYPE_CHECKING * Run ./make.py format * Use Optional[Framebuffer] instead of | None * Add doc run fix suggested by Ben * Document why we now set sys.is_pyglet_doc_run * Explain the issue * Add link to the reporting ticket * Add link to the commit which fixed it * Try @DragonMoffon's suggestion to try | None again * Remove unused import
1 parent b7933f6 commit 488ab2b

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

arcade/camera/camera_2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
project_orthographic,
1919
unproject_orthographic,
2020
)
21-
from arcade.gl import Framebuffer
2221
from arcade.types import LBWH, LRBT, XYWH, Point, Rect
2322
from arcade.types.vector_like import Point2
2423
from arcade.window_commands import get_window
2524

2625
if TYPE_CHECKING:
2726
from arcade.application import Window
27+
from arcade.gl import Framebuffer
2828

2929
__all__ = ["Camera2D"]
3030

doc/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
import sphinx.transforms
1212
import sys
1313

14+
# As of pyglet==2.1.dev7, this is no longer set in pyglet/__init__.py
15+
# because Jupyter / IPython always load Sphinx into sys.modules. See
16+
# the following for more info:
17+
# 1. The ticket: https://github.com/pyglet/pyglet/issues/1215
18+
# 2. The commit: https://github.com/pyglet/pyglet/commit/97076c3a33a7d368cc9c9e44ca67769b6a16a905
19+
sys.is_pyglet_doc_run = True
20+
1421
# --- Pre-processing Tasks
1522

1623
# Make thumbnails for the example code screenshots

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies = [
2323
# at the cost of slow download and constant pip install -I -e .[dev]
2424
# "pyglet@git+https://github.com/pyglet/pyglet.git@development#egg=pyglet",
2525
# Expected future dev preview release on PyPI (not yet released)
26-
'pyglet==2.1.dev6',
26+
'pyglet==2.1.dev7',
2727
"pillow~=10.4.0",
2828
"pymunk~=6.8.1",
2929
"pytiled-parser~=2.2.5",

0 commit comments

Comments
 (0)