Update to 1.5.27

Add patch for Python 3.12 support
Use SPDX License
This commit is contained in:
Orion Poplawski 2023-06-17 08:17:36 -06:00
commit 45ba8fa193
4 changed files with 39 additions and 4 deletions

21
python-pyglet-imp.patch Normal file
View file

@ -0,0 +1,21 @@
diff -up pyglet-1.5.27/tests/integration/test_toplevel_imports.py.imp pyglet-1.5.27/tests/integration/test_toplevel_imports.py
--- pyglet-1.5.27/tests/integration/test_toplevel_imports.py.imp 2023-06-17 07:55:27.061254060 -0600
+++ pyglet-1.5.27/tests/integration/test_toplevel_imports.py 2023-06-17 08:01:50.139739485 -0600
@@ -5,7 +5,7 @@
This _must_ be the first test run.
'''
-import imp
+import importlib
import unittest
import pyglet
@@ -47,7 +47,7 @@ def add_module_tests(name, bases, dict):
def create_test(components):
def test_module(self):
top = pyglet
- imp.reload(top)
+ importlib.reload(top)
for component in components:
self.assertTrue(hasattr(top, component),
'Cannot access "%s" in "%s"' % (component, top.__name__))