- Update to 4.3.0:

* Fix the possibility of a rare crash in the C extension when
      deallocating items. See
      https://github.com/zopefoundation/persistent/issues/66
    * Change cPickleCache's comparison of object sizes to determine
      whether an object can go in the cache to use PyObject_TypeCheck().
      This matches what the pure Python implementation does and is
      a stronger test that the object really is compatible with the
      cache. Previously, an object could potentially include
      cPersistent_HEAD and not set tp_base to cPersistenceCAPI->pertype
      and still be eligible for the pickle cache; that is no longer the
      case. See https://github.com/zopefoundation/persistent/issues/69

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-persistent?expand=0&rev=12
This commit is contained in:
Matej Cepl 2018-08-14 14:59:11 +00:00 committed by Git OBS Bridge
parent eca9fb1ab5
commit c56c4a9719
4 changed files with 22 additions and 6 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cf264cd55866c7ffbcbe1328f8d8b28fd042a5dd0c03a03f68c0887df3aa1964
size 96135

3
persistent-4.3.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d8e2253a35f46ae318e65f0e3b51cdce16d4646e284a26f88a2d84b4d2507f81
size 98681

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Tue Aug 14 14:55:56 UTC 2018 - mcepl@suse.com
- Update to 4.3.0:
* Fix the possibility of a rare crash in the C extension when
deallocating items. See
https://github.com/zopefoundation/persistent/issues/66
* Change cPickleCache's comparison of object sizes to determine
whether an object can go in the cache to use PyObject_TypeCheck().
This matches what the pure Python implementation does and is
a stronger test that the object really is compatible with the
cache. Previously, an object could potentially include
cPersistent_HEAD and not set tp_base to cPersistenceCAPI->pertype
and still be eligible for the pickle cache; that is no longer the
case. See https://github.com/zopefoundation/persistent/issues/69
-------------------------------------------------------------------
Thu Jul 26 08:35:19 UTC 2018 - tchvatal@suse.com

View File

@ -19,14 +19,14 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-persistent
Version: 4.2.4.2
Version: 4.3.0
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
Patch0: persistent-4.2.4.2-switch-off-tests.patch
Patch: persistent-4.2.4.2-switch-off-tests.patch
# Documentation requirements:
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module devel}
@ -62,8 +62,8 @@ This package contains documentation files for %{name}.
%prep
%setup -q -n persistent-%{version}
%autopatch -p1
rm -rf persistent.egg-info
%patch0 -p1
%build
%python_build