Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-lazr.config for 
openSUSE:Factory checked in at 2021-10-08 00:06:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-lazr.config (Old)
 and      /work/SRC/openSUSE:Factory/.python-lazr.config.new.2443 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-lazr.config"

Fri Oct  8 00:06:10 2021 rev:4 rq:923671 version:2.2.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-lazr.config/python-lazr.config.changes    
2020-07-05 01:21:42.117646019 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-lazr.config.new.2443/python-lazr.config.changes
  2021-10-08 00:07:06.617861119 +0200
@@ -1,0 +2,7 @@
+Wed Oct  6 21:29:23 UTC 2021 - Matej Cepl <[email protected]>
+
+- Update to 2.2.3:
+  - Fix tests with zope.interface >= 5.0.0.
+  - Fix deprecation warning on Python >= 3.2. (lp#1870199)
+
+-------------------------------------------------------------------

Old:
----
  lazr.config-2.2.2.tar.gz

New:
----
  lazr.config-2.2.3.tar.gz

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

Other differences:
------------------
++++++ python-lazr.config.spec ++++++
--- /var/tmp/diff_new_pack.uwRkHy/_old  2021-10-08 00:07:07.073861892 +0200
+++ /var/tmp/diff_new_pack.uwRkHy/_new  2021-10-08 00:07:07.073861892 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-lazr.config
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-lazr.config
-Version:        2.2.2
+Version:        2.2.3
 Release:        0
 Summary:        Create configuration schemas, and process and validate 
configurations
 License:        LGPL-3.0-only
@@ -55,14 +55,11 @@
 # use pytest, reported to [email protected] on 2020-06-03
 cat << EOF > pytest.ini
 [pytest]
-addopts = --doctest-glob='*.rst'
 doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE
-testpaths = src/lazr
 EOF
-export PYTHONPATH=src
 # test_not_stackable fails otherwise (with nose it did not run at all)
 # needs to be investigated more
-sed -i 's:verifyObject, IStackableConfig, config.extends::' 
src/lazr/config/tests/test_config.py
+export PYTEST_ADDOPTS="--doctest-glob='*.rst' --import-mode=importlib"
 %pytest 
 
 %files %{python_files}

++++++ lazr.config-2.2.2.tar.gz -> lazr.config-2.2.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lazr.config-2.2.2/NEWS.rst 
new/lazr.config-2.2.3/NEWS.rst
--- old/lazr.config-2.2.2/NEWS.rst      2019-11-04 18:08:09.000000000 +0100
+++ new/lazr.config-2.2.3/NEWS.rst      2021-01-26 10:50:16.000000000 +0100
@@ -2,6 +2,11 @@
 NEWS for lazr.config
 ====================
 
+2.2.3 (2021-01-26)
+==================
+- Fix tests with zope.interface >= 5.0.0.
+- Fix deprecation warning on Python >= 3.2.  (LP: #1870199)
+
 2.2.2 (2019-11-04)
 ==================
 - Officially add support for Python 3.7 and 3.8.  The test suite required
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lazr.config-2.2.2/PKG-INFO 
new/lazr.config-2.2.3/PKG-INFO
--- old/lazr.config-2.2.2/PKG-INFO      2019-11-04 18:08:34.000000000 +0100
+++ new/lazr.config-2.2.3/PKG-INFO      2021-01-26 10:50:23.852736500 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: lazr.config
-Version: 2.2.2
+Version: 2.2.3
 Summary: Create configuration schemas, and process and validate configurations.
 Home-page: https://launchpad.net/lazr.config
 Maintainer: LAZR Developers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lazr.config-2.2.2/src/lazr/config/_config.py 
new/lazr.config-2.2.3/src/lazr/config/_config.py
--- old/lazr.config-2.2.2/src/lazr/config/_config.py    2019-11-04 
18:06:04.000000000 +0100
+++ new/lazr.config-2.2.3/src/lazr/config/_config.py    2021-01-26 
10:49:13.000000000 +0100
@@ -49,11 +49,17 @@
 try:
     from io import StringIO
     from configparser import NoSectionError, RawConfigParser
+
+    def _parser_read_file(parser, f, source=None):
+        parser.read_file(f, source)
 except ImportError:
     # Python 2.
     from StringIO import StringIO
     from ConfigParser import NoSectionError, RawConfigParser
 
+    def _parser_read_file(parser, f, source=None):
+        parser.readfp(f, source)
+
 
 from zope.interface import implementer
 
@@ -261,7 +267,7 @@
         else:
             raw_schema = file_object
         parser = RawConfigParser()
-        parser.readfp(raw_schema, filename)
+        _parser_read_file(parser, raw_schema, filename)
         self._setSectionSchemasAndCategoryNames(parser)
 
     def _getRawSchema(self, filename):
@@ -581,7 +587,7 @@
         if sys.version_info >= (3,):
             kws['strict'] = False
         parser = RawConfigParser(**kws)
-        parser.readfp(StringIO(conf_data), conf_filename)
+        _parser_read_file(parser, StringIO(conf_data), conf_filename)
         confs.append((conf_filename, parser, encoding_errors))
         if parser.has_option('meta', 'extends'):
             base_path = dirname(conf_filename)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lazr.config-2.2.2/src/lazr/config/_version.py 
new/lazr.config-2.2.3/src/lazr/config/_version.py
--- old/lazr.config-2.2.2/src/lazr/config/_version.py   2019-11-04 
18:08:19.000000000 +0100
+++ new/lazr.config-2.2.3/src/lazr/config/_version.py   2021-01-26 
10:50:08.000000000 +0100
@@ -1 +1 @@
-__version__ = '2.2.2'
+__version__ = '2.2.3'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/lazr.config-2.2.2/src/lazr/config/tests/test_config.py 
new/lazr.config-2.2.3/src/lazr/config/tests/test_config.py
--- old/lazr.config-2.2.2/src/lazr/config/tests/test_config.py  2015-08-27 
02:22:47.000000000 +0200
+++ new/lazr.config-2.2.3/src/lazr/config/tests/test_config.py  2021-01-26 
10:48:17.000000000 +0100
@@ -158,10 +158,24 @@
                           UnknownKeyError, UnknownSectionError])
 
     def test_not_stackable(self):
+        try:
+            from zope.interface.exceptions import MultipleInvalid
+        except ImportError:  # zope.interface < 5.0.0
+            class MultipleInvalid(Exception):
+                pass
+
         schema = ConfigSchema(self._testfile('base.conf'))
         config = schema.load(self._testfile('local.conf'))
-        self.assertRaises(DoesNotImplement,
-                          verifyObject, IStackableConfig, config.extends)
+        try:
+            verifyObject(IStackableConfig, config.extends)
+        except DoesNotImplement:
+            pass
+        except MultipleInvalid as e:
+            if not any(isinstance(invalid, DoesNotImplement)
+                       for invalid in e.exceptions):
+                self.fail('MultipleInvalid raised without DoesNotImplement')
+        else:
+            self.fail('DoesNotImplement not raised')
 
     def test_bad_pop(self):
         schema = ConfigSchema(self._testfile('base.conf'))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lazr.config-2.2.2/src/lazr.config.egg-info/PKG-INFO 
new/lazr.config-2.2.3/src/lazr.config.egg-info/PKG-INFO
--- old/lazr.config-2.2.2/src/lazr.config.egg-info/PKG-INFO     2019-11-04 
18:08:34.000000000 +0100
+++ new/lazr.config-2.2.3/src/lazr.config.egg-info/PKG-INFO     2021-01-26 
10:50:23.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: lazr.config
-Version: 2.2.2
+Version: 2.2.3
 Summary: Create configuration schemas, and process and validate configurations.
 Home-page: https://launchpad.net/lazr.config
 Maintainer: LAZR Developers

Reply via email to