Accepting request 782830 from devel:languages:python
py38 fix OBS-URL: https://build.opensuse.org/request/show/782830 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-immutables?expand=0&rev=3
This commit is contained in:
commit
8338ebb257
3
immutables-0.11.tar.gz
Normal file
3
immutables-0.11.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d6850578a0dc6530ac19113cfe4ddc13903df635212d498f176fe601a8a5a4a3
|
||||||
|
size 38557
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d71d1c822498646143270580dd6f743bb31ab89ae0ded8b2307c356d3a00f1c0
|
|
||||||
size 37754
|
|
23
py38.patch
Normal file
23
py38.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
From 2b52677fdde34b1c89bdf4411ef95bd1ed0f343d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Bruno Oliveira <nicoddemus@gmail.com>
|
||||||
|
Date: Sat, 2 Nov 2019 17:56:24 -0300
|
||||||
|
Subject: [PATCH] Add Python 3.8 support (#16)
|
||||||
|
|
||||||
|
Fix #15
|
||||||
|
---
|
||||||
|
tests/test_map.py | 2 +-
|
||||||
|
4 files changed, 13 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/test_map.py b/tests/test_map.py
|
||||||
|
index 8d629f84..0b464cf2 100644
|
||||||
|
--- a/tests/test_map.py
|
||||||
|
+++ b/tests/test_map.py
|
||||||
|
@@ -1294,7 +1294,7 @@ def test_map_pickle(self):
|
||||||
|
self.assertTrue(isinstance(uh, self.Map))
|
||||||
|
self.assertEqual(h, uh)
|
||||||
|
|
||||||
|
- with self.assertRaisesRegex(TypeError, "can't pickle"):
|
||||||
|
+ with self.assertRaisesRegex(TypeError, "can('t|not) pickle"):
|
||||||
|
pickle.dumps(h.mutate())
|
||||||
|
|
||||||
|
@unittest.skipIf(sys.version_info < (3, 7, 0), "__class_getitem__ is not available")
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 9 08:33:40 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.11:
|
||||||
|
* Python 3.8 fixes
|
||||||
|
- Add one more py38 patch:
|
||||||
|
* py38.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 10 13:49:53 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
Tue Sep 10 13:49:53 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-immutables
|
# spec file for package python-immutables
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -19,13 +19,13 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-immutables
|
Name: python-immutables
|
||||||
Version: 0.9
|
Version: 0.11
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Immutable collections for Python
|
Summary: Immutable collections for Python
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/MagicStack/immutables
|
URL: https://github.com/MagicStack/immutables
|
||||||
Source: https://files.pythonhosted.org/packages/source/i/immutables/immutables-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/i/immutables/immutables-%{version}.tar.gz
|
||||||
|
Patch0: py38.patch
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -37,6 +37,7 @@ Immutable collections for Python.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n immutables-%{version}
|
%setup -q -n immutables-%{version}
|
||||||
|
%patch0 -p1
|
||||||
sed -i 's/\.system//' setup.py
|
sed -i 's/\.system//' setup.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user