15
0
forked from pool/python-chest

Accepting request 950067 from devel:languages:python

- Add patch support-python-310.patch:
  * Support Python 3.10.

OBS-URL: https://build.opensuse.org/request/show/950067
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-chest?expand=0&rev=4
This commit is contained in:
2022-01-31 21:57:11 +00:00
committed by Git OBS Bridge
3 changed files with 19 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 31 04:22:18 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-python-310.patch:
* Support Python 3.10.
-------------------------------------------------------------------
Wed Apr 21 04:30:46 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -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

10
support-python-310.patch Normal file
View File

@@ -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