commit python-persistent for openSUSE:Factory

2020-03-26 Thread root
Hello community,

here is the log from the commit of package python-persistent for 
openSUSE:Factory checked in at 2020-03-27 00:29:55

Comparing /work/SRC/openSUSE:Factory/python-persistent (Old)
 and  /work/SRC/openSUSE:Factory/.python-persistent.new.3160 (New)


Package is "python-persistent"

Fri Mar 27 00:29:55 2020 rev:11 rq:788434 version:4.6.3

Changes:

--- /work/SRC/openSUSE:Factory/python-persistent/python-persistent.changes  
2019-05-21 10:41:26.107046159 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-persistent.new.3160/python-persistent.changes
2020-03-27 00:30:01.364400420 +0100
@@ -1,0 +2,32 @@
+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 - pgaj...@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.
+
+---

Old:

  persistent-4.5.0.tar.gz

New:

  persistent-4.6.3.tar.gz
  tests.patch



Other differences:
--
++ python-persistent.spec ++
--- /var/tmp/diff_new_pack.iMciGz/_old  2020-03-27 00:30:03.404401453 +0100
+++ /var/tmp/diff_new_pack.iMciGz/_new  2020-03-27 00:30:03.408401454 +0100
@@ -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 @@
 
 %packagedevel
 Summary:Translucent persistent objects
-Group:  Development/Languages/Python
 Requires:   %{name} = %{version}
 Requires:   python-devel
 
@@ -54,6 +54,7 @@
 
 %prep
 %setup -q -n persistent-%{version}
+%patch0 -p1
 rm -rf persistent.egg-info
 
 %build

++ persistent-4.5.0.tar.gz -> persistent-4.6.3.tar.gz ++
 3791 lines of diff (skipped)

++ tests.patch ++
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 impo

commit python-persistent for openSUSE:Factory

2019-05-21 Thread root
Hello community,

here is the log from the commit of package python-persistent for 
openSUSE:Factory checked in at 2019-05-21 10:41:22

Comparing /work/SRC/openSUSE:Factory/python-persistent (Old)
 and  /work/SRC/openSUSE:Factory/.python-persistent.new.5148 (New)


Package is "python-persistent"

Tue May 21 10:41:22 2019 rev:10 rq:704297 version:4.5.0

Changes:

--- /work/SRC/openSUSE:Factory/python-persistent/python-persistent.changes  
2019-03-22 14:59:55.653845699 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-persistent.new.5148/python-persistent.changes
2019-05-21 10:41:26.107046159 +0200
@@ -1,0 +2,18 @@
+Mon May 20 15:50:31 UTC 2019 - pgaj...@suse.com
+
+- version update to 4.5.0
+  - Fully test the C implementation of the PickleCache, and fix
+discrepancies between it and the Python implementation:
+  - Allow sweeping cache without ``cache_size``. ``cache_size_bytes``
+works with ``cache_size=0``, no need to set ``cache_size`` to a
+large value.
+  - Require ``CFFI`` on CPython for pure-Python operation. This drops
+support for Jython (which was untested). See `issue 77
+`_.
+  - Fix DeprecationWarning about ``PY_SSIZE_T_CLEAN``.
+See `issue 108 `_.
+  - Drop support for Python 3.4.
+- deleted patches
+  - persistent-4.2.4.2-switch-off-tests.patch (not needed)
+
+---

Old:

  persistent-4.2.4.2-switch-off-tests.patch
  persistent-4.4.3.tar.gz

New:

  persistent-4.5.0.tar.gz



Other differences:
--
++ python-persistent.spec ++
--- /var/tmp/diff_new_pack.FeksSx/_old  2019-05-21 10:41:28.163044824 +0200
+++ /var/tmp/diff_new_pack.FeksSx/_new  2019-05-21 10:41:28.167044821 +0200
@@ -19,15 +19,13 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-persistent
-Version:4.4.3
+Version:4.5.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
-# Blocking https://github.com/zopefoundation/persistent/issues/86
-Patch:  persistent-4.2.4.2-switch-off-tests.patch
 BuildRequires:  %{python_module cffi}
 BuildRequires:  %{python_module devel}
 Requires:   python-cffi
@@ -57,7 +55,6 @@
 %prep
 %setup -q -n persistent-%{version}
 rm -rf persistent.egg-info
-%autopatch -p1
 
 %build
 %python_build

++ persistent-4.4.3.tar.gz -> persistent-4.5.0.tar.gz ++
 2572 lines of diff (skipped)




commit python-persistent for openSUSE:Factory

2019-03-22 Thread root
Hello community,

here is the log from the commit of package python-persistent for 
openSUSE:Factory checked in at 2019-03-22 14:59:50

Comparing /work/SRC/openSUSE:Factory/python-persistent (Old)
 and  /work/SRC/openSUSE:Factory/.python-persistent.new.25356 (New)


Package is "python-persistent"

Fri Mar 22 14:59:50 2019 rev:9 rq:681733 version:4.4.3

Changes:

--- /work/SRC/openSUSE:Factory/python-persistent/python-persistent.changes  
2019-03-05 12:23:54.760867214 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-persistent.new.25356/python-persistent.changes
   2019-03-22 14:59:55.653845699 +0100
@@ -1,0 +2,7 @@
+Tue Mar  5 12:14:02 UTC 2019 - Hans-Peter Jansen 
+
+- Allow build with older distributions
+  (%autopatch macro needs an appended empty line)
+- Refresh patch persistent-4.2.4.2-switch-off-tests.patch
+
+---



Other differences:
--
++ python-persistent.spec ++
--- /var/tmp/diff_new_pack.CqKFLO/_old  2019-03-22 14:59:57.593844387 +0100
+++ /var/tmp/diff_new_pack.CqKFLO/_new  2019-03-22 14:59:57.641844354 +0100
@@ -2,7 +2,7 @@
 # spec file for package python-persistent
 #
 # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
-# Copyright (c) 2013 LISA GmbH, Bingen, Germany.
+# Copyright (c) 2013-2019 LISA GmbH, Bingen, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -56,8 +56,8 @@
 
 %prep
 %setup -q -n persistent-%{version}
-%autopatch -p1
 rm -rf persistent.egg-info
+%autopatch -p1
 
 %build
 %python_build

++ persistent-4.2.4.2-switch-off-tests.patch ++
--- /var/tmp/diff_new_pack.CqKFLO/_old  2019-03-22 14:59:57.921844164 +0100
+++ /var/tmp/diff_new_pack.CqKFLO/_new  2019-03-22 14:59:57.933844156 +0100
@@ -1,6 +1,8 @@
+Index: b/persistent/tests/test_timestamp.py
+===
 --- a/persistent/tests/test_timestamp.py
 +++ b/persistent/tests/test_timestamp.py
-@@ -247,6 +247,7 @@ class PyAndCComparisonTests(unittest.Tes
+@@ -246,6 +246,7 @@ class PyAndCComparisonTests(unittest.Tes
  c, py = self._make_C_and_Py(*args)
  self.assertEqual(repr(c), repr(py))
  




commit python-persistent for openSUSE:Factory

2019-03-05 Thread root
Hello community,

here is the log from the commit of package python-persistent for 
openSUSE:Factory checked in at 2019-03-05 12:23:54

Comparing /work/SRC/openSUSE:Factory/python-persistent (Old)
 and  /work/SRC/openSUSE:Factory/.python-persistent.new.28833 (New)


Package is "python-persistent"

Tue Mar  5 12:23:54 2019 rev:8 rq:681469 version:4.4.3

Changes:

--- /work/SRC/openSUSE:Factory/python-persistent/python-persistent.changes  
2018-08-15 10:38:43.524327864 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-persistent.new.28833/python-persistent.changes
   2019-03-05 12:23:54.760867214 +0100
@@ -1,0 +2,8 @@
+Mon Mar  4 14:18:11 UTC 2019 - Tomáš Chvátal 
+
+- Update to 4.4.3:
+  * Too many changes around see CHANGES.rst
+- Do not bother with documentation generating
+- Add more dependencies
+
+---

Old:

  persistent-4.3.0.tar.gz

New:

  persistent-4.4.3.tar.gz



Other differences:
--
++ python-persistent.spec ++
--- /var/tmp/diff_new_pack.U4x1S4/_old  2019-03-05 12:23:55.472866997 +0100
+++ /var/tmp/diff_new_pack.U4x1S4/_new  2019-03-05 12:23:55.480866995 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-persistent
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2013 LISA GmbH, Bingen, Germany.
 #
 # All modifications and additions to the file contributed by third parties
@@ -13,13 +13,13 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-persistent
-Version:4.3.0
+Version:4.4.3
 Release:0
 Summary:Translucent persistent objects
 License:ZPL-2.1
@@ -28,12 +28,13 @@
 Source: 
https://files.pythonhosted.org/packages/source/p/persistent/persistent-%{version}.tar.gz
 # Blocking https://github.com/zopefoundation/persistent/issues/86
 Patch:  persistent-4.2.4.2-switch-off-tests.patch
-# Documentation requirements:
-BuildRequires:  %{python_module Sphinx}
+BuildRequires:  %{python_module cffi}
 BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module repoze.sphinx.autointerface}
+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-zope.interface
@@ -48,19 +49,11 @@
 Summary:Translucent persistent objects
 Group:  Development/Languages/Python
 Requires:   %{name} = %{version}
-Requires:   python-base
+Requires:   python-devel
 
 %descriptiondevel
 This package contains the files needed for binding the %{name} C module.
 
-%packagedoc
-Summary:Translucent persistent objects
-Group:  Development/Languages/Python
-Requires:   %{name} = %{version}
-
-%descriptiondoc
-This package contains documentation files for %{name}.
-
 %prep
 %setup -q -n persistent-%{version}
 %autopatch -p1
@@ -68,14 +61,12 @@
 
 %build
 %python_build
-%{_python_use_flavor python3}
-python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
 
 %install
 %python_install
 # don't bother with development files
 %{python_expand rm %{buildroot}%{$python_sitearch}/persistent/*.c
-  %fdupes -s %{buildroot}%{$python_sitearch}
+  %fdupes %{buildroot}%{$python_sitearch}
 }
 
 %check
@@ -93,7 +84,4 @@
 %{python_sysconfig_path include}/persistent/*.h
 %{python_sitearch}/persistent/*.h
 
-%files %{python_files doc}
-%doc build/sphinx/html/
-
 %changelog

++ persistent-4.3.0.tar.gz -> persistent-4.4.3.tar.gz ++
 4544 lines of diff (skipped)




commit python-persistent for openSUSE:Factory

2018-08-15 Thread root
Hello community,

here is the log from the commit of package python-persistent for 
openSUSE:Factory checked in at 2018-08-15 10:38:37

Comparing /work/SRC/openSUSE:Factory/python-persistent (Old)
 and  /work/SRC/openSUSE:Factory/.python-persistent.new (New)


Package is "python-persistent"

Wed Aug 15 10:38:37 2018 rev:7 rq:629251 version:4.3.0

Changes:

--- /work/SRC/openSUSE:Factory/python-persistent/python-persistent.changes  
2018-07-31 15:57:54.479394733 +0200
+++ /work/SRC/openSUSE:Factory/.python-persistent.new/python-persistent.changes 
2018-08-15 10:38:43.524327864 +0200
@@ -1,0 +2,16 @@
+Tue Aug 14 14:55:56 UTC 2018 - mc...@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
+
+---

Old:

  persistent-4.2.4.2.tar.gz

New:

  persistent-4.3.0.tar.gz



Other differences:
--
++ python-persistent.spec ++
--- /var/tmp/diff_new_pack.oewYSZ/_old  2018-08-15 10:38:45.156330839 +0200
+++ /var/tmp/diff_new_pack.oewYSZ/_new  2018-08-15 10:38:45.160330847 +0200
@@ -19,14 +19,15 @@
 
 %{?!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
+# Blocking https://github.com/zopefoundation/persistent/issues/86
+Patch:  persistent-4.2.4.2-switch-off-tests.patch
 # Documentation requirements:
 BuildRequires:  %{python_module Sphinx}
 BuildRequires:  %{python_module devel}
@@ -62,8 +63,8 @@
 
 %prep
 %setup -q -n persistent-%{version}
+%autopatch -p1
 rm -rf persistent.egg-info
-%patch0 -p1
 
 %build
 %python_build

++ persistent-4.2.4.2.tar.gz -> persistent-4.3.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-4.2.4.2/.travis.yml 
new/persistent-4.3.0/.travis.yml
--- old/persistent-4.2.4.2/.travis.yml  2017-04-23 18:58:54.0 +0200
+++ new/persistent-4.3.0/.travis.yml2018-07-30 19:50:15.0 +0200
@@ -61,7 +61,6 @@
 - echo [distutils]  > ~/.pypirc
 - echo index-servers = pypi>> ~/.pypirc
 - echo [pypi]  >> ~/.pypirc
-- echo repository=https://pypi.python.org/pypi >> ~/.pypirc
 - echo username=zope.wheelbuilder  >> ~/.pypirc
 - echo password=$PYPIPASSWORD  >> ~/.pypirc
 - if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then pip install 
twine; fi
@@ -70,4 +69,4 @@
 
 env:
 global:
-secure: 
"NTWzDr5p8KRPNt+sniTot7csbzC87rzir/XfLtENE0GpQ49FlKw3lBhsDqAPoD8Ea5lwiHXmC/C/ci1UZhFvVEkAoQ2qJlMRnhqUdRJSrqcitmRt0fT6mLaTd+Lr+DxKlBxpssobrEm2G42V/G1s0Ggym04OqF8T+s6MF5ywgJM="
\ No newline at end of file
+secure: 
"NTWzDr5p8KRPNt+sniTot7csbzC87rzir/XfLtENE0GpQ49FlKw3lBhsDqAPoD8Ea5lwiHXmC/C/ci1UZhFvVEkAoQ2qJlMRnhqUdRJSrqcitmRt0fT6mLaTd+Lr+DxKlBxpssobrEm2G42V/G1s0Ggym04OqF8T+s6MF5ywgJM="
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-4.2.4.2/CHANGES.rst 
new/persistent-4.3.0/CHANGES.rst
--- old/persistent-4.2.4.2/CHANGES.rst  2017-04-23 18:58:54.0 +0200
+++ new/persistent-4.3.0/CHANGES.rst2018-07-30 19:50:15.0 +0200
@@ -1,6 +1,21 @@
 ``persistent`` Changelog
 
 
+4.3.0 (2018-07-30)
+--
+
+- 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 

commit python-persistent for openSUSE:Factory

2018-07-31 Thread root
Hello community,

here is the log from the commit of package python-persistent for 
openSUSE:Factory checked in at 2018-07-31 15:57:44

Comparing /work/SRC/openSUSE:Factory/python-persistent (Old)
 and  /work/SRC/openSUSE:Factory/.python-persistent.new (New)


Package is "python-persistent"

Tue Jul 31 15:57:44 2018 rev:6 rq:625379 version:4.2.4.2

Changes:

--- /work/SRC/openSUSE:Factory/python-persistent/python-persistent.changes  
2017-07-21 22:46:27.677594479 +0200
+++ /work/SRC/openSUSE:Factory/.python-persistent.new/python-persistent.changes 
2018-07-31 15:57:54.479394733 +0200
@@ -1,0 +2,12 @@
+Thu Jul 26 08:35:19 UTC 2018 - tchva...@suse.com
+
+- Do not restrict python version makes stuff very unresolvable
+
+---
+Thu Jul 19 15:33:04 UTC 2018 - mc...@suse.com
+
+- Clean up SPEC
+- Fix tests (persistent-4.2.4.2-switch-off-tests.patch removes failing
+  test)
+
+---

New:

  persistent-4.2.4.2-switch-off-tests.patch



Other differences:
--
++ python-persistent.spec ++
--- /var/tmp/diff_new_pack.cezKPT/_old  2018-07-31 15:57:56.103397483 +0200
+++ /var/tmp/diff_new_pack.cezKPT/_new  2018-07-31 15:57:56.107397491 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-persistent
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2013 LISA GmbH, Bingen, Germany.
 #
 # All modifications and additions to the file contributed by third parties
@@ -24,8 +24,9 @@
 Summary:Translucent persistent objects
 License:ZPL-2.1
 Group:  Development/Languages/Python
-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
+Patch0: persistent-4.2.4.2-switch-off-tests.patch
 # Documentation requirements:
 BuildRequires:  %{python_module Sphinx}
 BuildRequires:  %{python_module devel}
@@ -35,7 +36,6 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-zope.interface
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %python_subpackages
 
 %description
@@ -47,6 +47,7 @@
 Summary:Translucent persistent objects
 Group:  Development/Languages/Python
 Requires:   %{name} = %{version}
+Requires:   python-base
 
 %descriptiondevel
 This package contains the files needed for binding the %{name} C module.
@@ -62,6 +63,7 @@
 %prep
 %setup -q -n persistent-%{version}
 rm -rf persistent.egg-info
+%patch0 -p1
 
 %build
 %python_build
@@ -76,22 +78,21 @@
 }
 
 %check
-%python_exec setup.py -q test
+find . -name \*.pyc -delete
+%python_exec setup.py test -v
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
+%license LICENSE.txt
+%doc CHANGES.rst COPYRIGHT.txt README.rst
 %exclude %{python_sitearch}/persistent/*.h
 %{python_sitearch}/*
 
 %files %{python_files devel}
-%defattr(-,root,root,-)
 %dir %{python_sysconfig_path include}/persistent
 %{python_sysconfig_path include}/persistent/*.h
 %{python_sitearch}/persistent/*.h
 
 %files %{python_files doc}
-%defattr(-,root,root,-)
 %doc build/sphinx/html/
 
 %changelog

++ persistent-4.2.4.2-switch-off-tests.patch ++
--- a/persistent/tests/test_timestamp.py
+++ b/persistent/tests/test_timestamp.py
@@ -247,6 +247,7 @@ class PyAndCComparisonTests(unittest.Tes
 c, py = self._make_C_and_Py(*args)
 self.assertEqual(repr(c), repr(py))
 
+@unittest.skip('Broken GH#')
 def test_strs_equal(self):
 for args in self._make_many_instants():
 c, py = self._make_C_and_Py(*args)



commit python-persistent for openSUSE:Factory

2017-07-21 Thread root
Hello community,

here is the log from the commit of package python-persistent for 
openSUSE:Factory checked in at 2017-07-21 22:46:12

Comparing /work/SRC/openSUSE:Factory/python-persistent (Old)
 and  /work/SRC/openSUSE:Factory/.python-persistent.new (New)


Package is "python-persistent"

Fri Jul 21 22:46:12 2017 rev:5 rq:506973 version:4.2.4.2

Changes:

--- /work/SRC/openSUSE:Factory/python-persistent/python-persistent.changes  
2015-05-11 19:49:25.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-persistent.new/python-persistent.changes 
2017-07-21 22:46:27.677594479 +0200
@@ -1,0 +2,61 @@
+Sat Jun 24 11:10:40 UTC 2017 - aloi...@gmx.com
+
+- Update to 4.2.4.2
+  * Packaging-only release: fix Python 2.7 manylinux wheels.
+  4.2.4.1:
+  * Packaging-only release: get manylinux wheel built 
+automatically.
+  4.2.4:
+  * Avoid raising a SystemError: error return without exception 
+set when loading an object with slots whose jar generates an 
+exception (such as a ZODB POSKeyError) in setstate.
+  4.2.3:
+  * Fix the hashcode of Python TimeStamp objects on 64-bit 
+Python on Windows. See 
+https://github.com/zopefoundation/persistent/pull/55
+  * Stop calling gc.collect every time PickleCache.incrgc is 
+called (every transaction boundary) in pure-Python mode (PyPy). 
+This means that the reported size of the cache may be wrong 
+(until the next GC), but it is much faster. This should not
+have any observable effects for user code.
+  * Stop clearing the dict and slots of objects added to 
+PickleCache.new_ghost (typically these values are passed to 
+__new__ from the pickle data) in pure-Python mode (PyPy). This
+matches the behaviour of the C code.
+  * Add support for Python 3.6.
+  * Fix __setstate__ interning when state parameter is not a 
+built-in dict
+  4.2.2:
+  * Drop use of ctypes for determining maximum integer size, to 
+increase pure-Python compatibility. See 
+https://github.com/zopefoundation/persistent/pull/31
+  * Ensure that __slots__ attributes are cleared when a 
+persistent object is ghostified. (This excluses classes that
+override __new__. See 
+https://github.com/zopefoundation/persistent/wiki/Notes_on_state_
+new_and_slots if you’re curious.)
+  4.2.1:
+  * Fix the hashcode of C TimeStamp objects on 64-bit Python 3 
+on Windows.
+  4.2.0:
+  * Fixed the Python(/PYPY) implementation TimeStamp.timeTime 
+method to have subsecond precision.
+  * When testing PURE_PYTHON environments under tox, avoid 
+poisoning the user’s global wheel cache.
+  * Add support for Python 3.5.
+  * Drop support for Python 2.6 and 3.2.
+  4.1.1:
+  * Fix manifest and re-upload to fix stray files included in 
+4.1.0.
+  4.1.0:
+  * Make the Python implementation of Persistent and PickleCache 
+behave more similarly to the C implementation. In particular, 
+the Python version can now run the complete ZODB and ZEO test 
+suites.
+  * Fix the hashcode of the Python TimeStamp on 32-bit platforms.
+
+- Converted to single-spec
+
+- Dropped fix_32-bit_timestamp_hashcode.patch (fixed upstream)
+
+---

Old:

  fix_32-bit_timestamp_hashcode.patch
  persistent-4.0.9.tar.gz

New:

  persistent-4.2.4.2.tar.gz



Other differences:
--
++ python-persistent.spec ++
--- /var/tmp/diff_new_pack.zuNsgi/_old  2017-07-21 22:46:29.489338909 +0200
+++ /var/tmp/diff_new_pack.zuNsgi/_new  2017-07-21 22:46:29.497337781 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-persistent
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2013 LISA GmbH, Bingen, Germany.
 #
 # All modifications and additions to the file contributed by third parties
@@ -17,28 +17,26 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-persistent
-Version:4.0.9
+Version:4.2.4.2
 Release:0
-Url:https://github.com/zopefoundation/persistent
 Summary:Translucent persistent objects
 License:ZPL-2.1
 Group:  Development/Languages/Python
-Source: 
https://pypi.python.org/packages/source/p/persistent/persistent-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM fix_32-bit_timestamp_hashcode.patch -- fix timestamp hash 
computation on 32-bit platform
-Patch:  fix_32-bit_timestamp_hashcode.patch
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-BuildRequires:  python-zope.interface
-Requires:   python-zope.interface
+Url:https://github.com/zopefo

commit python-persistent for openSUSE:Factory

2015-05-11 Thread h_root
Hello community,

here is the log from the commit of package python-persistent for 
openSUSE:Factory checked in at 2015-05-11 19:39:31

Comparing /work/SRC/openSUSE:Factory/python-persistent (Old)
 and  /work/SRC/openSUSE:Factory/.python-persistent.new (New)


Package is "python-persistent"

Changes:

--- /work/SRC/openSUSE:Factory/python-persistent/python-persistent.changes  
2014-03-25 13:27:08.0 +0100
+++ /work/SRC/openSUSE:Factory/.python-persistent.new/python-persistent.changes 
2015-05-11 19:49:25.0 +0200
@@ -1,0 +2,40 @@
+Sun May 10 19:46:51 UTC 2015 - benoit.mo...@gmx.fr
+
+- update to version 4.0.9:
+  * Make the C and Python TimeStamp objects behave more alike
+  * Intern keys of object state in __setstate__ to reduce memory
+usage when unpickling multiple objects with the same attributes
+  * Add support for PyPy3
+  * 100% branch coverage
+- additional changes from version 4.0.8:
+  * Add support for Python 3.4
+  * In pure-Python Persistent, avoid loading state in _p_activate
+for non-ghost objects (which could corrupt their state). (PR #9)
+  * In pure-Python, and don’t throw POSKeyError if _p_activate is
+called on an object that has never been committed. (PR #9)
+  * In pure-Python Persistent, avoid calling a subclass’s
+__setattr__ at instance creation time. (PR #8)
+  * Make it possible to delete _p_jar / _p_oid of a pure-Python
+Persistent object which has been removed from the jar’s cache
+(fixes aborting a ZODB Connection that has added objects).
+(PR #7)
+- additional changes from version 4.0.7:
+  * Avoid a KeyError from _p_accessed() on newly-created objects
+under pure-Python: these objects may be assigned to a jar, but
+not yet added to its cache. (PR #6)
+  * Avoid a failure in Persistent.__setstate__ when the state dict
+contains exactly two keys. (PR #5)
+  * Fix a hang in picklecache invalidation if OIDs are manually
+passed out-of-order. (PR #4)
+  * Add PURE_PYTHON environment variable support: if set, the C
+extensions will not be built, imported, or tested
+- update project URL
+- point the source URL to pypi
+- drop type-mismatch.patch: fixed upstream
+- add fix_32-bit_timestamp_hashcode.patch: fix timestamp hash
+  computation on 32 bit platform
+- pass -q to test to avoid spamming the build log
+- rename CHANGES.txt and README.txt to CHANGES.rst and README.rst:
+  changed upstream
+
+---

Old:

  persistent-4.0.6.tar.gz
  type-mismatch.patch

New:

  fix_32-bit_timestamp_hashcode.patch
  persistent-4.0.9.tar.gz



Other differences:
--
++ python-persistent.spec ++
--- /var/tmp/diff_new_pack.AdgaM2/_old  2015-05-11 19:49:27.0 +0200
+++ /var/tmp/diff_new_pack.AdgaM2/_new  2015-05-11 19:49:27.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-persistent
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2013 LISA GmbH, Bingen, Germany.
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,15 +18,15 @@
 
 
 Name:   python-persistent
-Version:4.0.6
+Version:4.0.9
 Release:0
-Url:http://www.python.org/pypi/persistent
+Url:https://github.com/zopefoundation/persistent
 Summary:Translucent persistent objects
 License:ZPL-2.1
 Group:  Development/Languages/Python
-Source: persistent-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM 
https://github.com/zopefoundation/persistent/commit/33daf91246f85c3248658c4d81d768bd78617003
-Patch:  type-mismatch.patch
+Source: 
https://pypi.python.org/packages/source/p/persistent/persistent-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM fix_32-bit_timestamp_hashcode.patch -- fix timestamp hash 
computation on 32-bit platform
+Patch:  fix_32-bit_timestamp_hashcode.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
@@ -75,11 +75,11 @@
 rm %{buildroot}%python_sitearch/persistent/*.c
 
 %check
-python setup.py test
+python setup.py -q test
 
 %files
 %defattr(-,root,root,-)
-%doc CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt
+%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
 %exclude %python_sitearch/persistent/*.h
 %python_sitearch/*
 

++ fix_32-bit_timestamp_hashcode.patch ++
fix timestamp hash computation on 32-bit platform.
Patch extracted from PR #22 and #23, see:
https://github.com/zopefoundation/persistent/issues/21
https://github.com/zopefoundation/persistent/pull/22
https://github.com/zopefoundation/persistent/pull/23

---
 

commit python-persistent for openSUSE:Factory

2014-03-25 Thread h_root
Hello community,

here is the log from the commit of package python-persistent for 
openSUSE:Factory checked in at 2014-03-25 13:27:07

Comparing /work/SRC/openSUSE:Factory/python-persistent (Old)
 and  /work/SRC/openSUSE:Factory/.python-persistent.new (New)


Package is "python-persistent"

Changes:

--- /work/SRC/openSUSE:Factory/python-persistent/python-persistent.changes  
2013-09-25 14:37:59.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-persistent.new/python-persistent.changes 
2014-03-25 13:27:08.0 +0100
@@ -1,0 +2,5 @@
+Fri Mar 21 23:02:35 UTC 2014 - sch...@linux-m68k.org
+
+- type-mismatch.patch: Use Py_ssize_t rather than PY_LONG_LONG for sizes
+
+---

New:

  type-mismatch.patch



Other differences:
--
++ python-persistent.spec ++
--- /var/tmp/diff_new_pack.EPUKLz/_old  2014-03-25 13:27:09.0 +0100
+++ /var/tmp/diff_new_pack.EPUKLz/_new  2014-03-25 13:27:09.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-persistent
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 # Copyright (c) 2013 LISA GmbH, Bingen, Germany.
 #
 # All modifications and additions to the file contributed by third parties
@@ -12,10 +12,11 @@
 # case the license is the MIT License). An "Open Source License" is a
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
-#
+
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 Name:   python-persistent
 Version:4.0.6
 Release:0
@@ -24,6 +25,8 @@
 License:ZPL-2.1
 Group:  Development/Languages/Python
 Source: persistent-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM 
https://github.com/zopefoundation/persistent/commit/33daf91246f85c3248658c4d81d768bd78617003
+Patch:  type-mismatch.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
@@ -60,6 +63,7 @@
 
 %prep
 %setup -q -n persistent-%{version}
+%patch -p1
 
 %build
 python setup.py build

++ type-mismatch.patch ++
>From 33daf91246f85c3248658c4d81d768bd78617003 Mon Sep 17 00:00:00 2001
From: Tres Seaver 
Date: Mon, 24 Mar 2014 13:39:46 -0400
Subject: [PATCH] Use Py_ssize_t rather than PY_LONG_LONG for sizes.

---
 persistent/cPersistence.h |  2 +-
 persistent/cPickleCache.c | 18 +-
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/persistent/cPersistence.h b/persistent/cPersistence.h
index 52d3bad..ac9a885 100644
--- a/persistent/cPersistence.h
+++ b/persistent/cPersistence.h
@@ -24,7 +24,7 @@
 PyObject_HEAD \
 CPersistentRing ring_home; \
 int non_ghost_count; \
-PY_LONG_LONG total_estimated_size;
+Py_ssize_t total_estimated_size;
 
 struct ccobject_head_struct;
 
diff --git a/persistent/cPickleCache.c b/persistent/cPickleCache.c
index 5753922..57f33bf 100644
--- a/persistent/cPickleCache.c
+++ b/persistent/cPickleCache.c
@@ -123,7 +123,7 @@ typedef struct
 PyObject *data;  /* oid -> object dict */
 PyObject *jar;   /* Connection object */
 int cache_size;  /* target number of items in cache */
-PY_LONG_LONG cache_size_bytes;   /* target total estimated size of
+Py_ssize_t cache_size_bytes;   /* target total estimated size of
 items in cache */
 
 /* Most of the time the ring contains only:
@@ -176,7 +176,7 @@ unlink_from_ring(CPersistentRing *self)
 }
 
 static int
-scan_gc_items(ccobject *self, int target, PY_LONG_LONG target_bytes)
+scan_gc_items(ccobject *self, int target, Py_ssize_t target_bytes)
 {
 /* This function must only be called with the ring lock held,
 because it places non-object placeholders in the ring.
@@ -262,7 +262,7 @@ Done:
 }
 
 static PyObject *
-lockgc(ccobject *self, int target_size, PY_LONG_LONG target_size_bytes)
+lockgc(ccobject *self, int target_size, Py_ssize_t target_size_bytes)
 {
 /* This is thread-safe because of the GIL, and there's nothing
 * in between checking the ring_lock and acquiring it that calls back
@@ -292,7 +292,7 @@ cc_incrgc(ccobject *self, PyObject *args)
 int obsolete_arg = -999;
 int starting_size = self->non_ghost_count;
 int target_size = self->cache_size;
-PY_LONG_LONG target_size_bytes = self->cache_size_bytes;
+Py_ssize_t target_size_bytes = self->cache_size_bytes;
 
 if (self->cache_drain_resistance >= 1)
 {
@@ -850,10 +850,10 @@ static int
 cc_init(ccobject *self, PyObject *args, PyObjec