Accepting request 788434 from devel:languages:python
- Add patch to fix build with new zope.interface: * tests.patch - 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 <https://github.com/zopefoundation/persistent/issues/137>`_. Fix by `Jerry James <https://github.com/jamesjer>`_. - Fix an ``AssertionError`` clearing a non-empty ``PersistentMapping`` that has no connection. See `issue 139 <https://github.com/zopefoundation/persistent/issues/139>`_. - 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/788434 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-persistent?expand=0&rev=11
This commit is contained in:
commit
979faa75ec
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c97ceb2620eecd57730da6ee7ad3ee2295ed7516a24423a17f34e65103de8b6a
|
||||
size 106981
|
3
persistent-4.6.3.tar.gz
Normal file
3
persistent-4.6.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:09585311d1ba7154c16230e5ab1286017cee3a1c435a4db718d6176a81f43230
|
||||
size 119531
|
@ -1,3 +1,35 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 26 07:39:16 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- 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
|
||||
<https://github.com/zopefoundation/persistent/issues/137>`_. Fix by
|
||||
`Jerry James <https://github.com/jamesjer>`_.
|
||||
- Fix an ``AssertionError`` clearing a non-empty ``PersistentMapping``
|
||||
that has no connection. See `issue 139
|
||||
<https://github.com/zopefoundation/persistent/issues/139>`_.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 12 11:54:12 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- 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
|
||||
|
||||
|
@ -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
|
||||
|
21
tests.patch
Normal file
21
tests.patch
Normal file
@ -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):
|
Loading…
Reference in New Issue
Block a user