From aa6bdfbc8f7dd97a4e4a0128e8f4ff77d9c57207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 22 Nov 2023 12:21:53 +0100 Subject: [PATCH] Fix build with Python 3.13.0a1 Fixes https://bugzilla.redhat.com/2245829 --- python-six.spec | 4 +++ ...ter.tix-was-removed-from-Python-3.13.patch | 25 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 tkinter.tix-was-removed-from-Python-3.13.patch diff --git a/python-six.spec b/python-six.spec index 9c23aa1..03c57c3 100644 --- a/python-six.spec +++ b/python-six.spec @@ -11,6 +11,10 @@ License: MIT URL: https://github.com/benjaminp/six Source0: %{pypi_source six} +# tkinter.tix was removed from Python 3.13, skip the test +# https://github.com/benjaminp/six/pull/377 +Patch: tkinter.tix-was-removed-from-Python-3.13.patch + BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel diff --git a/tkinter.tix-was-removed-from-Python-3.13.patch b/tkinter.tix-was-removed-from-Python-3.13.patch new file mode 100644 index 0000000..4716d94 --- /dev/null +++ b/tkinter.tix-was-removed-from-Python-3.13.patch @@ -0,0 +1,25 @@ +From 150328a01168e80a358ffcfca321e9172ddf7680 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= +Date: Thu, 19 Oct 2023 01:13:49 +0200 +Subject: [PATCH] tkinter.tix was removed from Python 3.13, skip the test + +--- + test_six.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/test_six.py b/test_six.py +index 7b8b03b..1fa8c4c 100644 +--- a/test_six.py ++++ b/test_six.py +@@ -127,6 +127,8 @@ def test_move_items(item_name): + if item_name.startswith("tkinter"): + if not have_tkinter: + pytest.skip("requires tkinter") ++ if item_name == "tkinter_tix" and sys.version_info >= (3, 13): ++ pytest.skip("tkinter.tix removed from Python 3.13") + if item_name.startswith("dbm_gnu") and not have_gdbm: + pytest.skip("requires gdbm") + raise +-- +2.41.0 +