forked from pool/python-persistent
Accepting request 915761 from home:pgajdos:python
- version update to 4.7.0 4.7.0 (2021-04-13) ================== - Add support for Python 3.9. - Move from Travis CI to Github Actions. - Supply manylinux wheels for aarch64 (ARM). - Fix the pure-Python implementation to activate a ghost object when setting its ``__class__`` and ``__dict__``. This matches the behaviour of the C implementation. See `issue 155 <https://github.com/zopefoundation/persistent/issues/155>`_. - Fix the CFFI cache implementation (used on CPython when ``PURE_PYTHON=1``) to not print unraisable ``AttributeErrors`` from ``_WeakValueDictionary`` during garbage collection. See `issue 150 <https://github.com/zopefoundation/persistent/issues/150>`_. - Make the pure-Python implementation of the cache run a garbage collection (``gc.collect()``) on ``full_sweep``, ``incrgc`` and ``minimize`` *if* it detects that an object that was weakly referenced has been ejected. This solves issues on PyPy with ZODB raising ``ConnectionStateError`` when there are persistent ``zope.interface`` utilities/adapters registered. This partly reverts a change from release 4.2.3. 4.6.4 (2020-03-26) ================== - Fix an overly specific test failure using zope.interface 5. See `issue 144 <https://github.com/zopefoundation/persistent/issues/144>`_. - Fix two reference leaks that could theoretically occur as the result of obscure errors. See `issue 143 <https://github.com/zopefoundation/persistent/issues/143>` - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/915761 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-persistent?expand=0&rev=26
This commit is contained in:
parent
f8b6a82bac
commit
85b88baf1a
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:09585311d1ba7154c16230e5ab1286017cee3a1c435a4db718d6176a81f43230
|
|
||||||
size 119531
|
|
3
persistent-4.7.0.tar.gz
Normal file
3
persistent-4.7.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0ef7c05a6dca0104dc224fe7ff31feb30a63d970421c9462104a4752148ac333
|
||||||
|
size 127060
|
@ -1,3 +1,35 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 2 12:04:25 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- version update to 4.7.0
|
||||||
|
4.7.0 (2021-04-13)
|
||||||
|
==================
|
||||||
|
- Add support for Python 3.9.
|
||||||
|
- Move from Travis CI to Github Actions.
|
||||||
|
- Supply manylinux wheels for aarch64 (ARM).
|
||||||
|
- Fix the pure-Python implementation to activate a ghost object
|
||||||
|
when setting its ``__class__`` and ``__dict__``. This matches the
|
||||||
|
behaviour of the C implementation. See `issue 155
|
||||||
|
<https://github.com/zopefoundation/persistent/issues/155>`_.
|
||||||
|
- Fix the CFFI cache implementation (used on CPython when
|
||||||
|
``PURE_PYTHON=1``) to not print unraisable ``AttributeErrors`` from
|
||||||
|
``_WeakValueDictionary`` during garbage collection. See `issue 150
|
||||||
|
<https://github.com/zopefoundation/persistent/issues/150>`_.
|
||||||
|
- Make the pure-Python implementation of the cache run a garbage
|
||||||
|
collection (``gc.collect()``) on ``full_sweep``, ``incrgc`` and
|
||||||
|
``minimize`` *if* it detects that an object that was weakly
|
||||||
|
referenced has been ejected. This solves issues on PyPy with ZODB raising
|
||||||
|
``ConnectionStateError`` when there are persistent
|
||||||
|
``zope.interface`` utilities/adapters registered. This partly
|
||||||
|
reverts a change from release 4.2.3.
|
||||||
|
4.6.4 (2020-03-26)
|
||||||
|
==================
|
||||||
|
- Fix an overly specific test failure using zope.interface 5. See
|
||||||
|
`issue 144 <https://github.com/zopefoundation/persistent/issues/144>`_.
|
||||||
|
- Fix two reference leaks that could theoretically occur as the result
|
||||||
|
of obscure errors. See `issue 143 <https://github.com/zopefoundation/persistent/issues/143>`
|
||||||
|
- %check: use %pyunittest rpm macro
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 26 07:39:16 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Thu Mar 26 07:39:16 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-persistent
|
# spec file for package python-persistent
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
# Copyright (c) 2013-2019 LISA GmbH, Bingen, Germany.
|
# Copyright (c) 2013-2019 LISA GmbH, Bingen, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -19,14 +19,12 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-persistent
|
Name: python-persistent
|
||||||
Version: 4.6.3
|
Version: 4.7.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Translucent persistent objects
|
Summary: Translucent persistent objects
|
||||||
License: ZPL-2.1
|
License: ZPL-2.1
|
||||||
URL: https://github.com/zopefoundation/persistent
|
URL: https://github.com/zopefoundation/persistent
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/persistent/persistent-%{version}.tar.gz
|
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 cffi}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module manuel}
|
BuildRequires: %{python_module manuel}
|
||||||
@ -54,7 +52,6 @@ This package contains the files needed for binding the %{name} C module.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n persistent-%{version}
|
%setup -q -n persistent-%{version}
|
||||||
%patch0 -p1
|
|
||||||
rm -rf persistent.egg-info
|
rm -rf persistent.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -68,8 +65,11 @@ rm -rf persistent.egg-info
|
|||||||
}
|
}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
find . -name \*.pyc -delete
|
old=persistent
|
||||||
%python_exec setup.py test -v
|
new=persistent_hide
|
||||||
|
mv $old $new
|
||||||
|
sed -i "s:<$old.test:<$new.test:" persistent_hide/tests/test_persistence.py
|
||||||
|
%pyunittest_arch discover -v
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
21
tests.patch
21
tests.patch
@ -1,21 +0,0 @@
|
|||||||
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