diff --git a/_multibuild b/_multibuild index 4b47ae4..8d11b62 100644 --- a/_multibuild +++ b/_multibuild @@ -1,5 +1,4 @@ - python310 python311 python312 python313 diff --git a/python-3.13.1.patch b/python-3.13.1.patch new file mode 100644 index 0000000..7628f37 --- /dev/null +++ b/python-3.13.1.patch @@ -0,0 +1,27 @@ +Index: wxPython-4.2.2/unittests/test_cmdproc.py +=================================================================== +--- wxPython-4.2.2.orig/unittests/test_cmdproc.py ++++ wxPython-4.2.2/unittests/test_cmdproc.py +@@ -41,19 +41,19 @@ class cmdproc_Tests(wtc.WidgetTestCase): + + cmds = cmdproc.GetCommands() + self.assertEqual(len(cmds), 5) +- self.assertEqual([x.value for x in cmds], [True]*5) ++ self.assertEqual([x.value for x in list(cmds)], [True]*5) + + self.assertTrue(cmdproc.CanUndo()) + self.assertFalse(cmdproc.CanRedo()) + + cmdproc.Undo() + cmdproc.Undo() +- self.assertEqual([x.value for x in cmds], [True]*3 + [False]*2) ++ self.assertEqual([x.value for x in list(cmds)], [True]*3 + [False]*2) + + self.assertTrue(cmdproc.CanRedo()) + cmdproc.Redo() + cmdproc.Redo() +- self.assertEqual([x.value for x in cmds], [True]*5) ++ self.assertEqual([x.value for x in list(cmds)], [True]*5) + + cmdproc.Undo() + cmdproc.Undo() diff --git a/python-wxPython.changes b/python-wxPython.changes index 1c5e57d..f7cdb24 100644 --- a/python-wxPython.changes +++ b/python-wxPython.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 20 17:58:04 UTC 2025 - Markéta Machová + +- Add patch python-3.13.1.patch to fix tests with Python 3.13.1 +- Factory is not built on Python 3.10 anymore + ------------------------------------------------------------------- Sun Nov 17 13:31:39 UTC 2024 - Ben Greiner diff --git a/python-wxPython.spec b/python-wxPython.spec index c5c31d7..6c19640 100644 --- a/python-wxPython.spec +++ b/python-wxPython.spec @@ -1,7 +1,7 @@ # # spec file for package python-wxPython # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -98,6 +98,8 @@ Patch15: CVE-2024-50602-no-crash-XML_ResumeParser.patch # PATCH-FIX-OPENSUSE - Test fixes/additions: Patch112: 0001-Check-HSV-values-in-image-test.patch Patch114: wxwidgets-3.2.5.patch +# PATCH-FIX-UPSTREAM https://github.com/wxWidgets/Phoenix/pull/2678 Fix test with Python 3.13.1 +Patch115: python-3.13.1.patch # TODO: Replace deprecated setup.py calls in build.py with PEP517 without building wxWidgets into the wheel BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module devel}