diff --git a/python-chest.changes b/python-chest.changes index 8187d9a..32d7070 100644 --- a/python-chest.changes +++ b/python-chest.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 31 04:22:18 UTC 2022 - Steve Kowalik + +- Add patch support-python-310.patch: + * Support Python 3.10. + ------------------------------------------------------------------- Wed Apr 21 04:30:46 UTC 2021 - Steve Kowalik diff --git a/python-chest.spec b/python-chest.spec index 4014582..c9668a9 100644 --- a/python-chest.spec +++ b/python-chest.spec @@ -1,7 +1,7 @@ # # spec file for package python-chest # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python36 1 Name: python-chest Version: 0.2.3 Release: 0 @@ -25,6 +24,7 @@ Summary: Spill-to-disk dictionary for Python License: BSD-3-Clause URL: https://github.com/ContinuumIO/chest Source: https://files.pythonhosted.org/packages/source/c/chest/chest-%{version}.tar.gz +Patch0: support-python-310.patch BuildRequires: %{python_module HeapDict} BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} @@ -43,7 +43,7 @@ This is useful in the following two occasions: 2. Chest persists and so can be saved and loaded for later use %prep -%setup -q -n chest-%{version} +%autosetup -p1 -n chest-%{version} %build %python_build diff --git a/support-python-310.patch b/support-python-310.patch new file mode 100644 index 0000000..09fedb9 --- /dev/null +++ b/support-python-310.patch @@ -0,0 +1,10 @@ +Index: chest-0.2.3/chest/core.py +=================================================================== +--- chest-0.2.3.orig/chest/core.py ++++ chest-0.2.3/chest/core.py +@@ -1,4 +1,4 @@ +-from collections import MutableMapping ++from collections.abc import MutableMapping + from functools import partial + from threading import Lock + from contextlib import contextmanager