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.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 8d9e928..90af785 100644 --- a/python-persistent.changes +++ b/python-persistent.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +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 + +- 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 + +- 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..6af750d 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,22 +19,23 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-persistent -Version: 4.5.0 +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} -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 @@ -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):