Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-ZEO for openSUSE:Factory 
checked in at 2021-09-25 00:35:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ZEO (Old)
 and      /work/SRC/openSUSE:Factory/.python-ZEO.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ZEO"

Sat Sep 25 00:35:43 2021 rev:12 rq:921374 version:5.2.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ZEO/python-ZEO.changes    2020-03-23 
12:52:18.104022020 +0100
+++ /work/SRC/openSUSE:Factory/.python-ZEO.new.1899/python-ZEO.changes  
2021-09-25 00:36:40.031209097 +0200
@@ -1,0 +2,42 @@
+Fri Sep 24 09:30:12 UTC 2021 - pgaj...@suse.com
+
+- added patches
+  fix https://github.com/zopefoundation/ZEO/issues/184
+  + python-ZEO-no-mock.patch
+
+-------------------------------------------------------------------
+Fri Sep 24 09:30:04 UTC 2021 - pgaj...@suse.com
+
+- 
+- added patches
+  fix https://github.com/zopefoundation/ZEO/issues/184
+  + python-ZEO-no-mock.patch
+
+-------------------------------------------------------------------
+Fri Sep 24 08:39:06 UTC 2021 - pgaj...@suse.com
+
+- version update to 5.2.3
+  5.2.3 (2021-08-09)
+  ------------------
+  - Ensure ``ZEO`` satisfies the ``ZODB >= 5.6`` requirement that
+    ``lastTransaction()`` changes only after invalidation processing.
+    Violating this requirement can lead to race conditions and
+    associated data corruption
+    `#166 <https://github.com/zopefoundation/ZEO/issues/166>`_.
+  - Add automated tests against the ZODB ``master`` branch
+    see `issue 177 <https://github.com/zopefoundation/ZEO/issues/177>`_.
+  - Fix data corruption due to race between load and external invalidations.
+    See `issue 155 <https://github.com/zopefoundation/ZEO/issues/155>`_.
+  - Improve log message when client cache is out of sync with server.
+    See `issue 142 <https://github.com/zopefoundation/ZEO/issues/142>`_.
+  
+  5.2.2 (2020-08-11)
+  ------------------
+  - Remove support for Python 3.4
+  - Provide proper CA test certificates to allow the SSL tests succeed for Py3
+  - Replace deprecated occurrences of ``Thread.isAlive()`` by 
``Thread.is_alive()``
+    See `pull request 154 <https://github.com/zopefoundation/ZEO/pull/154>`_.
+  - Include both modified and just created objects into invalidations.
+    See `pull request 160 <https://github.com/zopefoundation/ZEO/pull/160>`_.
+
+-------------------------------------------------------------------

Old:
----
  ZEO-5.2.1.tar.gz

New:
----
  ZEO-5.2.3.tar.gz
  python-ZEO-no-mock.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-ZEO.spec ++++++
--- /var/tmp/diff_new_pack.tNPdz0/_old  2021-09-25 00:36:40.495209582 +0200
+++ /var/tmp/diff_new_pack.tNPdz0/_new  2021-09-25 00:36:40.495209582 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-ZEO
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2013 LISA GmbH, Bingen, Germany.
 #
 # All modifications and additions to the file contributed by third parties
@@ -20,17 +20,18 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %bcond_without python2
 Name:           python-ZEO
-Version:        5.2.1
+Version:        5.2.3
 Release:        0
 Summary:        Client-Server storage implementation for ZODB
 License:        ZPL-2.1
 URL:            https://github.com/zopefoundation/ZEO
 Source:         
https://files.pythonhosted.org/packages/source/Z/ZEO/ZEO-%{version}.tar.gz
 Source99:       %{name}-rpmlintrc
+# https://github.com/zopefoundation/ZEO/issues/184
+Patch0:         python-ZEO-no-mock.patch
 BuildRequires:  %{python_module ZConfig}
 BuildRequires:  %{python_module ZODB >= 5.5.1}
 BuildRequires:  %{python_module manuel}
-BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module msgpack}
 BuildRequires:  %{python_module random2}
 BuildRequires:  %{python_module setuptools}
@@ -53,7 +54,7 @@
 Requires:       python-zdaemon
 Requires:       python-zope.interface
 Requires(post): update-alternatives
-Requires(preun): update-alternatives
+Requires(preun):update-alternatives
 BuildArch:      noarch
 %if %{with python2}
 BuildRequires:  python-futures
@@ -76,6 +77,7 @@
 
 %prep
 %setup -q -n ZEO-%{version}
+%patch0 -p1
 # delete backup files
 find . -name "*~" -print -delete
 # remove unwanted shebang
@@ -97,7 +99,8 @@
 %python_clone -a %{buildroot}%{_bindir}/zeo-nagios
 
 %check
-%python_exec setup.py test
+pushd src
+%pyunittest -v ZEO/tests/test*.py
 
 %post
 %python_install_alternative runzeo zeoctl zeopack zeo-nagios

++++++ ZEO-5.2.1.tar.gz -> ZEO-5.2.3.tar.gz ++++++
++++ 6889 lines of diff (skipped)

++++++ python-ZEO-no-mock.patch ++++++
Index: ZEO-5.2.3/src/ZEO/tests/testZEO.py
===================================================================
--- ZEO-5.2.3.orig/src/ZEO/tests/testZEO.py     2021-04-29 11:25:08.000000000 
+0200
+++ ZEO-5.2.3/src/ZEO/tests/testZEO.py  2021-09-24 11:27:58.067122104 +0200
@@ -80,7 +80,10 @@ class CreativeGetState(persistent.Persis
 class Test_convenience_functions(unittest.TestCase):
 
     def test_ZEO_client_convenience(self):
-        import mock
+        try:
+           from unittest import mock as mock
+        except ImportError:
+           import mock
         import ZEO
 
         client_thread = mock.Mock(
@@ -90,7 +93,10 @@ class Test_convenience_functions(unittes
         self.assertIsInstance(client, ClientStorage)
 
     def test_ZEO_DB_convenience_ok(self):
-        import mock
+        try:
+           from unittest import mock as mock
+        except ImportError:
+           import mock
         import ZEO
 
         client_mock = mock.Mock(spec=['close'])
@@ -108,7 +114,10 @@ class Test_convenience_functions(unittes
         client_mock.close.assert_not_called()
 
     def test_ZEO_DB_convenience_error(self):
-        import mock
+        try:
+           from unittest import mock as mock
+        except ImportError:
+           import mock
         import ZEO
 
         client_mock = mock.Mock(spec=['close'])
@@ -126,7 +135,10 @@ class Test_convenience_functions(unittes
         client_mock.close.assert_called_once()
 
     def test_ZEO_connection_convenience_ok(self):
-        import mock
+        try:
+           from unittest import mock as mock
+        except ImportError:
+           import mock
         import ZEO
 
         ret = object()
@@ -145,7 +157,10 @@ class Test_convenience_functions(unittes
         DB_mock.close.assert_not_called()
 
     def test_ZEO_connection_convenience_value(self):
-        import mock
+        try:
+           from unittest import mock as mock
+        except ImportError:
+           import mock
         import ZEO
 
         DB_mock = mock.Mock(spec=[
Index: ZEO-5.2.3/src/ZEO/tests/testZEOServer.py
===================================================================
--- ZEO-5.2.3.orig/src/ZEO/tests/testZEOServer.py       2020-07-24 
12:54:40.000000000 +0200
+++ ZEO-5.2.3/src/ZEO/tests/testZEOServer.py    2021-09-24 11:28:21.655258841 
+0200
@@ -1,6 +1,9 @@
 import unittest
 
-import mock
+try:
+   from unittest import mock as mock
+except ImportError:
+   import mock
 import os
 
 from ZEO._compat import PY3
Index: ZEO-5.2.3/src/ZEO/tests/testssl.py
===================================================================
--- ZEO-5.2.3.orig/src/ZEO/tests/testssl.py     2020-07-24 12:54:40.000000000 
+0200
+++ ZEO-5.2.3/src/ZEO/tests/testssl.py  2021-09-24 11:28:36.887347135 +0200
@@ -1,9 +1,12 @@
 from .._compat import PY3
 
-import mock
 import os
 import ssl
 import unittest
+try:
+  from unittest import mock as mock
+except ImportError:
+  import mock
 from ZODB.config import storageFromString
 
 from ..Exceptions import ClientDisconnected
Index: ZEO-5.2.3/src/ZEO/asyncio/tests.py
===================================================================
--- ZEO-5.2.3.orig/src/ZEO/asyncio/tests.py     2021-04-29 11:25:08.000000000 
+0200
+++ ZEO-5.2.3/src/ZEO/asyncio/tests.py  2021-09-24 11:20:02.132363111 +0200
@@ -7,7 +7,10 @@ else:
 
 from zope.testing import setupstack
 from concurrent.futures import Future
-import mock
+try:
+  from unittest import mock as mock
+except ImportError:
+  import mock
 from ZODB.POSException import ReadOnlyError
 from ZODB.utils import maxtid, RLock
 

Reply via email to