diff --git a/getstate-to-through-methods.patch b/getstate-to-through-methods.patch new file mode 100644 index 0000000..9317f83 --- /dev/null +++ b/getstate-to-through-methods.patch @@ -0,0 +1,22 @@ +From 75cd86b3ea6534d5bd8d3c83c3cf1b493e7c9102 Mon Sep 17 00:00:00 2001 +From: Stefano Rivera +Date: Fri, 20 Jan 2023 12:16:35 -0800 +Subject: [PATCH] Add __getstate__ to through_methods (bpo-26579) (#323) + +Adds support for Python 3.11. +--- + tests/test_dictutils.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/test_dictutils.py b/tests/test_dictutils.py +index ca59a31e..0044001a 100644 +--- a/tests/test_dictutils.py ++++ b/tests/test_dictutils.py +@@ -474,6 +474,7 @@ def test_frozendict_api(): + '__ge__', + '__getattribute__', + '__getitem__', ++ '__getstate__', + '__gt__', + '__init__', + '__iter__', diff --git a/python-boltons.changes b/python-boltons.changes index d0f7a9e..f187a71 100644 --- a/python-boltons.changes +++ b/python-boltons.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 23 14:33:24 UTC 2023 - Markéta Machová + +- Add patch getstate-to-through-methods.patch + * Adds support for Python 3.11 + ------------------------------------------------------------------- Mon Dec 13 00:04:19 UTC 2021 - Steve Kowalik diff --git a/python-boltons.spec b/python-boltons.spec index aa2dfb2..7147678 100644 --- a/python-boltons.spec +++ b/python-boltons.spec @@ -1,7 +1,7 @@ # # spec file for package python-boltons # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,8 @@ URL: https://github.com/mahmoud/boltons Source: https://github.com/mahmoud/boltons/archive/%{version}.tar.gz#/boltons-%{version}.tar.gz # PATCH-FIX-UPSTREAM Support Python 3.10 gh#mahmoud/boltons#270e974975984f662f998c8f6eb0ebebd964de82 Patch0: fix-ecoutil-imports.patch +# PATCH-FIX-UPSTREAM Adds support for Python 3.11. gh#mahmoud/boltons#75cd86b3ea6534d5bd8d3c83c3cf1b493e7c9102 +Patch1: getstate-to-through-methods.patch BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes