From 824630027e09a13acb6173c7bf434709a256c3c8a385d4b2208fd10cfabe1c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 12 Mar 2020 13:48:17 +0000 Subject: [PATCH 1/3] Accepting request 784299 from home:mcalabkova:branches:devel:languages:python - update to 4.6.1 * Stop installing C header files on PyPy * Fix slicing of PersistentList to always return instances of the same class. * Fix copying of PersistentList and PersistentMapping using copy.copy to also copy the underlying data object. * Update the handling of the PURE_PYTHON environment variable. * Add preliminary support for Python 3.9a3+. * Fix the Python implementation of the PickleCache to be able to store objects that cannot be weakly referenced. * Add support for Python 3.8. OBS-URL: https://build.opensuse.org/request/show/784299 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-persistent?expand=0&rev=22 --- persistent-4.5.0.tar.gz | 3 --- persistent-4.6.1.tar.gz | 3 +++ python-persistent.changes | 14 ++++++++++++++ python-persistent.spec | 4 ++-- 4 files changed, 19 insertions(+), 5 deletions(-) delete mode 100644 persistent-4.5.0.tar.gz create mode 100644 persistent-4.6.1.tar.gz diff --git a/persistent-4.5.0.tar.gz b/persistent-4.5.0.tar.gz deleted file mode 100644 index 8f6094d..0000000 --- a/persistent-4.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c97ceb2620eecd57730da6ee7ad3ee2295ed7516a24423a17f34e65103de8b6a -size 106981 diff --git a/persistent-4.6.1.tar.gz b/persistent-4.6.1.tar.gz new file mode 100644 index 0000000..fcef786 --- /dev/null +++ b/persistent-4.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1084dcc791d48fe6ad3f725bf40e822bb4da82cfd7e9582054b3df063998bc7 +size 116965 diff --git a/python-persistent.changes b/python-persistent.changes index 8d9e928..74abb3b 100644 --- a/python-persistent.changes +++ b/python-persistent.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu Mar 12 11:54:12 UTC 2020 - Marketa Calabkova + +- update to 4.6.1 + * Stop installing C header files on PyPy + * Fix slicing of PersistentList to always return instances of the same class. + * Fix copying of PersistentList and PersistentMapping using copy.copy + to also copy the underlying data object. + * Update the handling of the PURE_PYTHON environment variable. + * Add preliminary support for Python 3.9a3+. + * Fix the Python implementation of the PickleCache to be able to + store objects that cannot be weakly referenced. + * Add support for Python 3.8. + ------------------------------------------------------------------- Mon May 20 15:50:31 UTC 2019 - pgajdos@suse.com diff --git a/python-persistent.spec b/python-persistent.spec index eba46dc..628c7c0 100644 --- a/python-persistent.spec +++ b/python-persistent.spec @@ -1,7 +1,7 @@ # # spec file for package python-persistent # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2013-2019 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-persistent -Version: 4.5.0 +Version: 4.6.1 Release: 0 Summary: Translucent persistent objects License: ZPL-2.1 From 8300cb07c854ccd9057e55428726ea60b3f12ad99193c0befb93ccf86a5ec7a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 24 Mar 2020 13:44:41 +0000 Subject: [PATCH 2/3] Accepting request 787789 from home:pgajdos:python - version update to 4.6.3 - Fix a crash in the test suite under a 32-bit CPython on certain 32-bit platforms. See `issue 137 `_. Fix by `Jerry James `_. - Fix an ``AssertionError`` clearing a non-empty ``PersistentMapping`` that has no connection. See `issue 139 `_. OBS-URL: https://build.opensuse.org/request/show/787789 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-persistent?expand=0&rev=23 --- persistent-4.6.1.tar.gz | 3 --- persistent-4.6.3.tar.gz | 3 +++ python-persistent.changes | 12 ++++++++++++ python-persistent.spec | 4 ++-- 4 files changed, 17 insertions(+), 5 deletions(-) delete mode 100644 persistent-4.6.1.tar.gz create mode 100644 persistent-4.6.3.tar.gz diff --git a/persistent-4.6.1.tar.gz b/persistent-4.6.1.tar.gz deleted file mode 100644 index fcef786..0000000 --- a/persistent-4.6.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b1084dcc791d48fe6ad3f725bf40e822bb4da82cfd7e9582054b3df063998bc7 -size 116965 diff --git a/persistent-4.6.3.tar.gz b/persistent-4.6.3.tar.gz new file mode 100644 index 0000000..e2517b1 --- /dev/null +++ b/persistent-4.6.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09585311d1ba7154c16230e5ab1286017cee3a1c435a4db718d6176a81f43230 +size 119531 diff --git a/python-persistent.changes b/python-persistent.changes index 74abb3b..e232ac5 100644 --- a/python-persistent.changes +++ b/python-persistent.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Mar 24 12:41:57 UTC 2020 - pgajdos@suse.com + +- version update to 4.6.3 + - Fix a crash in the test suite under a 32-bit CPython on certain + 32-bit platforms. See `issue 137 + `_. Fix by + `Jerry James `_. + - Fix an ``AssertionError`` clearing a non-empty ``PersistentMapping`` + that has no connection. See `issue 139 + `_. + ------------------------------------------------------------------- Thu Mar 12 11:54:12 UTC 2020 - Marketa Calabkova diff --git a/python-persistent.spec b/python-persistent.spec index 628c7c0..0b664fe 100644 --- a/python-persistent.spec +++ b/python-persistent.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-persistent -Version: 4.6.1 +Version: 4.6.3 Release: 0 Summary: Translucent persistent objects License: ZPL-2.1 @@ -28,13 +28,13 @@ URL: https://github.com/zopefoundation/persistent Source: https://files.pythonhosted.org/packages/source/p/persistent/persistent-%{version}.tar.gz BuildRequires: %{python_module cffi} BuildRequires: %{python_module devel} -Requires: python-cffi BuildRequires: %{python_module manuel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module zope.interface} BuildRequires: %{python_module zope.testrunner} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-cffi Requires: python-zope.interface %python_subpackages From f8b6a82bac51a9ca2b2361eb4c437966b718858783115e4987608ae1d750966b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 26 Mar 2020 07:43:04 +0000 Subject: [PATCH 3/3] - Add patch to fix build with new zope.interface: * tests.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-persistent?expand=0&rev=24 --- python-persistent.changes | 6 ++++++ python-persistent.spec | 5 +++-- tests.patch | 21 +++++++++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 tests.patch diff --git a/python-persistent.changes b/python-persistent.changes index e232ac5..90af785 100644 --- a/python-persistent.changes +++ b/python-persistent.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Mar 26 07:39:16 UTC 2020 - Tomáš Chvátal + +- Add patch to fix build with new zope.interface: + * tests.patch + ------------------------------------------------------------------- Tue Mar 24 12:41:57 UTC 2020 - pgajdos@suse.com diff --git a/python-persistent.spec b/python-persistent.spec index 0b664fe..6af750d 100644 --- a/python-persistent.spec +++ b/python-persistent.spec @@ -23,9 +23,10 @@ Version: 4.6.3 Release: 0 Summary: Translucent persistent objects License: ZPL-2.1 -Group: Development/Languages/Python URL: https://github.com/zopefoundation/persistent Source: https://files.pythonhosted.org/packages/source/p/persistent/persistent-%{version}.tar.gz +# https://github.com/zopefoundation/persistent/issues/144 +Patch0: tests.patch BuildRequires: %{python_module cffi} BuildRequires: %{python_module devel} BuildRequires: %{python_module manuel} @@ -45,7 +46,6 @@ such as the ZODB. %package devel Summary: Translucent persistent objects -Group: Development/Languages/Python Requires: %{name} = %{version} Requires: python-devel @@ -54,6 +54,7 @@ This package contains the files needed for binding the %{name} C module. %prep %setup -q -n persistent-%{version} +%patch0 -p1 rm -rf persistent.egg-info %build diff --git a/tests.patch b/tests.patch new file mode 100644 index 0000000..9cc7211 --- /dev/null +++ b/tests.patch @@ -0,0 +1,21 @@ +Index: persistent-4.6.3/persistent/tests/test_picklecache.py +=================================================================== +--- persistent-4.6.3.orig/persistent/tests/test_picklecache.py ++++ persistent-4.6.3/persistent/tests/test_picklecache.py +@@ -1124,13 +1124,12 @@ class CPickleCacheTests(PickleCacheTestM + # interface declaration to the C implementation. + from persistent.interfaces import IExtendedPickleCache + from zope.interface.verify import verifyObject +- from zope.interface.exceptions import DoesNotImplement +- from zope.interface.exceptions import BrokenImplementation ++ from zope.interface.exceptions import MultipleInvalid + # We don't claim to implement it. +- with self.assertRaises(DoesNotImplement): ++ with self.assertRaises(MultipleInvalid): + verifyObject(IExtendedPickleCache, self._makeOne()) + # And we don't even provide everything it asks for. +- with self.assertRaises(BrokenImplementation): ++ with self.assertRaises(MultipleInvalid): + verifyObject(IExtendedPickleCache, self._makeOne(), tentative=True) + + def test___setitem___persistent_class(self):