Hello community,

here is the log from the commit of package python-Cerberus for openSUSE:Factory 
checked in at 2019-11-22 10:22:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Cerberus (Old)
 and      /work/SRC/openSUSE:Factory/.python-Cerberus.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Cerberus"

Fri Nov 22 10:22:18 2019 rev:6 rq:747462 version:1.3.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Cerberus/python-Cerberus.changes  
2019-05-13 14:47:51.554385305 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-Cerberus.new.26869/python-Cerberus.changes   
    2019-11-22 10:22:23.297325627 +0100
@@ -1,0 +2,13 @@
+Tue Nov 12 01:32:00 UTC 2019 - Steve Kowalik <[email protected]>
+
+- Update to version 1.3.2:
+  New
+  - Support for Python 3.8
+  Fixed
+  - Fixed the message of the BasicErrorHandler for an invalid amount of items 
(#505)
+  - Added setuptools as dependency to the package metadata (#499)
+  - The CHANGES.rst document is properly included in the package (#493)
+  Improved
+  - Docs: Examples were added for the min- and maxlength rules. (#509)
+
+-------------------------------------------------------------------

Old:
----
  Cerberus-1.3.1.tar.gz

New:
----
  Cerberus-1.3.2.tar.gz

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

Other differences:
------------------
++++++ python-Cerberus.spec ++++++
--- /var/tmp/diff_new_pack.hwUeKl/_old  2019-11-22 10:22:23.909325532 +0100
+++ /var/tmp/diff_new_pack.hwUeKl/_new  2019-11-22 10:22:23.909325532 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-Cerberus
-Version:        1.3.1
+Version:        1.3.2
 Release:        0
 Summary:        Extensible schema and data validation tool for Python 
dictionaries
 License:        ISC

++++++ Cerberus-1.3.1.tar.gz -> Cerberus-1.3.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cerberus-1.3.1/AUTHORS new/Cerberus-1.3.2/AUTHORS
--- old/Cerberus-1.3.1/AUTHORS  2019-05-07 09:02:34.000000000 +0200
+++ new/Cerberus-1.3.2/AUTHORS  2019-10-29 17:47:19.000000000 +0100
@@ -55,6 +55,7 @@
 - Sergey Leshchenko
 - Tobias Betz
 - Trong Hieu HA
+- Vipul Gupta
 - Waldir Pimenta
 - calve
 - gilbsgilbs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cerberus-1.3.1/Cerberus.egg-info/PKG-INFO 
new/Cerberus-1.3.2/Cerberus.egg-info/PKG-INFO
--- old/Cerberus-1.3.1/Cerberus.egg-info/PKG-INFO       2019-05-10 
09:16:07.000000000 +0200
+++ new/Cerberus-1.3.2/Cerberus.egg-info/PKG-INFO       2019-10-29 
17:52:06.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: Cerberus
-Version: 1.3.1
+Version: 1.3.2
 Summary: Lightweight, extensible schema and data validation tool for Python 
dictionaries.
 Home-page: http://docs.python-cerberus.org
 Author: Nicola Iarocci
@@ -154,6 +154,7 @@
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Requires-Python: >=2.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cerberus-1.3.1/Cerberus.egg-info/SOURCES.txt 
new/Cerberus-1.3.2/Cerberus.egg-info/SOURCES.txt
--- old/Cerberus-1.3.1/Cerberus.egg-info/SOURCES.txt    2019-05-10 
09:16:07.000000000 +0200
+++ new/Cerberus-1.3.2/Cerberus.egg-info/SOURCES.txt    2019-10-29 
17:52:06.000000000 +0100
@@ -11,6 +11,7 @@
 Cerberus.egg-info/SOURCES.txt
 Cerberus.egg-info/dependency_links.txt
 Cerberus.egg-info/pbr.json
+Cerberus.egg-info/requires.txt
 Cerberus.egg-info/top_level.txt
 cerberus/__init__.py
 cerberus/errors.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cerberus-1.3.1/Cerberus.egg-info/requires.txt 
new/Cerberus-1.3.2/Cerberus.egg-info/requires.txt
--- old/Cerberus-1.3.1/Cerberus.egg-info/requires.txt   1970-01-01 
01:00:00.000000000 +0100
+++ new/Cerberus-1.3.2/Cerberus.egg-info/requires.txt   2019-10-29 
17:52:06.000000000 +0100
@@ -0,0 +1 @@
+setuptools
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cerberus-1.3.1/PKG-INFO new/Cerberus-1.3.2/PKG-INFO
--- old/Cerberus-1.3.1/PKG-INFO 2019-05-10 09:16:07.000000000 +0200
+++ new/Cerberus-1.3.2/PKG-INFO 2019-10-29 17:52:06.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: Cerberus
-Version: 1.3.1
+Version: 1.3.2
 Summary: Lightweight, extensible schema and data validation tool for Python 
dictionaries.
 Home-page: http://docs.python-cerberus.org
 Author: Nicola Iarocci
@@ -154,6 +154,7 @@
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Requires-Python: >=2.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cerberus-1.3.1/cerberus/errors.py 
new/Cerberus-1.3.2/cerberus/errors.py
--- old/Cerberus-1.3.1/cerberus/errors.py       2019-05-02 10:10:07.000000000 
+0200
+++ new/Cerberus-1.3.2/cerberus/errors.py       2019-08-09 09:28:39.000000000 
+0200
@@ -459,7 +459,7 @@
         0x23: "null value not allowed",
         0x24: "must be of {constraint} type",
         0x25: "must be of dict type",
-        0x26: "length of list should be {constraint}, it is {0}",
+        0x26: "length of list should be {0}, it is {1}",
         0x27: "min length is {constraint}",
         0x28: "max length is {constraint}",
         0x41: "value does not match regex '{constraint}'",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cerberus-1.3.1/cerberus/schema.py 
new/Cerberus-1.3.2/cerberus/schema.py
--- old/Cerberus-1.3.1/cerberus/schema.py       2019-05-07 09:07:50.000000000 
+0200
+++ new/Cerberus-1.3.2/cerberus/schema.py       2019-08-09 09:28:39.000000000 
+0200
@@ -111,7 +111,10 @@
         self.schema[key] = value
 
     def __str__(self):
-        return str(self.schema)
+        if hasattr(self, "schema"):
+            return str(self.schema)
+        else:
+            return "No schema data is set yet."
 
     def copy(self):
         return self.__class__(self.validator, self.schema.copy())
@@ -142,13 +145,13 @@
                 ('allof_', 'anyof_', 'noneof_', 'oneof_')
             )
 
-        for field in schema:
-            for of_rule in (x for x in schema[field] if is_of_rule(x)):
+        for field, rules in schema.items():
+            for of_rule in [x for x in rules if is_of_rule(x)]:
                 operator, rule = of_rule.split('_', 1)
-                schema[field].update({operator: []})
-                for value in schema[field][of_rule]:
-                    schema[field][operator].append({rule: value})
-                del schema[field][of_rule]
+                rules.update({operator: []})
+                for value in rules[of_rule]:
+                    rules[operator].append({rule: value})
+                del rules[of_rule]
         return schema
 
     @classmethod
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cerberus-1.3.1/cerberus/tests/test_errors.py 
new/Cerberus-1.3.2/cerberus/tests/test_errors.py
--- old/Cerberus-1.3.1/cerberus/tests/test_errors.py    2019-04-29 
09:12:33.000000000 +0200
+++ new/Cerberus-1.3.2/cerberus/tests/test_errors.py    2019-08-09 
09:28:39.000000000 +0200
@@ -321,3 +321,16 @@
             },
         ]
     }
+
+
+def test_wrong_amount_of_items(validator):
+    # https://github.com/pyeve/cerberus/issues/505
+    validator.schema = {
+        'test_list': {
+            'type': 'list',
+            'required': True,
+            'items': [{'type': 'string'}, {'type': 'string'}],
+        }
+    }
+    validator({'test_list': ['test']})
+    assert validator.errors == {'test_list': ["length of list should be 2, it 
is 1"]}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cerberus-1.3.1/cerberus/tests/test_schema.py 
new/Cerberus-1.3.2/cerberus/tests/test_schema.py
--- old/Cerberus-1.3.1/cerberus/tests/test_schema.py    2019-05-07 
09:07:50.000000000 +0200
+++ new/Cerberus-1.3.2/cerberus/tests/test_schema.py    2019-08-09 
09:28:39.000000000 +0200
@@ -88,7 +88,7 @@
     v = Validator({'foozifix': {'coerce': int}})
     assert len(v._valid_schemas) == cache_size
 
-    max_cache_size = 160
+    max_cache_size = 161
     assert cache_size <= max_cache_size, (
         "There's an unexpected high amount (%s) of cached valid "
         "definition schemas. Unless you added further tests, "
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cerberus-1.3.1/setup.py new/Cerberus-1.3.2/setup.py
--- old/Cerberus-1.3.1/setup.py 2019-05-10 09:14:45.000000000 +0200
+++ new/Cerberus-1.3.2/setup.py 2019-10-29 17:47:19.000000000 +0100
@@ -9,7 +9,7 @@
     "Python dictionaries."
 )
 LONG_DESCRIPTION = open("README.rst").read()
-VERSION = "1.3.1"
+VERSION = "1.3.2"
 
 setup_requires = (
     ["pytest-runner"] if any(x in sys.argv for x in ("pytest", "test", "ptr")) 
else []
@@ -40,7 +40,7 @@
     setup_requires=setup_requires,
     tests_require=["pytest"],
     test_suite="cerberus.tests",
-    install_requires=[],
+    install_requires=["setuptools"],
     keywords=["validation", "schema", "dictionaries", "documents", 
"normalization"],
     python_requires=">=2.7",
     classifiers=[
@@ -57,6 +57,7 @@
         "Programming Language :: Python :: 3.5",
         "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
+        "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: Implementation :: CPython",
         "Programming Language :: Python :: Implementation :: PyPy",
     ],


Reply via email to