Hello community,

here is the log from the commit of package python-marshmallow for 
openSUSE:Factory checked in at 2019-05-22 10:50:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-marshmallow (Old)
 and      /work/SRC/openSUSE:Factory/.python-marshmallow.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-marshmallow"

Wed May 22 10:50:43 2019 rev:5 rq:703738 version:2.19.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-marshmallow/python-marshmallow.changes    
2019-04-19 18:36:10.667016655 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-marshmallow.new.5148/python-marshmallow.changes
  2019-05-22 10:50:46.943346597 +0200
@@ -1,0 +2,7 @@
+Fri May 17 14:38:06 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- Update to version 2.19.2
+  * Handle OverflowError when (de)serializing large integers with 
+    fields.Float
+
+-------------------------------------------------------------------

Old:
----
  marshmallow-2.19.1.tar.gz

New:
----
  marshmallow-2.19.2.tar.gz

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

Other differences:
------------------
++++++ python-marshmallow.spec ++++++
--- /var/tmp/diff_new_pack.4pMTPE/_old  2019-05-22 10:50:47.667346183 +0200
+++ /var/tmp/diff_new_pack.4pMTPE/_new  2019-05-22 10:50:47.671346180 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %{!?license: %global license %doc}
 Name:           python-marshmallow
-Version:        2.19.1
+Version:        2.19.2
 Release:        0
 Summary:        ORM/ODM/framework-agnostic library to convert datatypes 
from/to Python types
 License:        MIT AND BSD-3-Clause

++++++ marshmallow-2.19.1.tar.gz -> marshmallow-2.19.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/marshmallow-2.19.1/AUTHORS.rst 
new/marshmallow-2.19.2/AUTHORS.rst
--- old/marshmallow-2.19.1/AUTHORS.rst  2019-03-16 21:09:37.000000000 +0100
+++ new/marshmallow-2.19.2/AUTHORS.rst  2019-03-30 17:19:20.000000000 +0100
@@ -90,3 +90,4 @@
 - AlexV `@asmodehn <https://github.com/asmodehn>`_
 - `@miniscruff <https://github.com/miniscruff>`_
 - Kim Gustyr `@khvn26 <https://github.com/khvn26>`_
+- Bryce Drennan `@brycedrennan <https://github.com/brycedrennan>`_
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/marshmallow-2.19.1/CHANGELOG.rst 
new/marshmallow-2.19.2/CHANGELOG.rst
--- old/marshmallow-2.19.1/CHANGELOG.rst        2019-03-16 21:09:37.000000000 
+0100
+++ new/marshmallow-2.19.2/CHANGELOG.rst        2019-03-30 17:19:20.000000000 
+0100
@@ -1,6 +1,14 @@
 Changelog
 ---------
 
+2.19.2 (2019-03-30)
++++++++++++++++++++
+
+Bug fixes:
+
+- Handle ``OverflowError`` when (de)serializing large integers with
+  ``fields.Float`` (:pr:`1177`). Thanks :user:`brycedrennan` for the PR.
+
 2.19.1 (2019-03-16)
 +++++++++++++++++++
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/marshmallow-2.19.1/PKG-INFO 
new/marshmallow-2.19.2/PKG-INFO
--- old/marshmallow-2.19.1/PKG-INFO     2019-03-16 21:10:02.000000000 +0100
+++ new/marshmallow-2.19.2/PKG-INFO     2019-03-30 17:19:49.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: marshmallow
-Version: 2.19.1
+Version: 2.19.2
 Summary: A lightweight library for converting complex datatypes to and from 
native Python datatypes.
 Home-page: https://github.com/marshmallow-code/marshmallow
 Author: Steven Loria
@@ -179,7 +179,7 @@
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
-Provides-Extra: tests
-Provides-Extra: lint
 Provides-Extra: reco
 Provides-Extra: dev
+Provides-Extra: lint
+Provides-Extra: tests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/marshmallow-2.19.1/src/marshmallow/__init__.py 
new/marshmallow-2.19.2/src/marshmallow/__init__.py
--- old/marshmallow-2.19.1/src/marshmallow/__init__.py  2019-03-16 
21:09:37.000000000 +0100
+++ new/marshmallow-2.19.2/src/marshmallow/__init__.py  2019-03-30 
17:19:20.000000000 +0100
@@ -15,7 +15,7 @@
 from marshmallow.exceptions import ValidationError
 from distutils.version import LooseVersion
 
-__version__ = '2.19.1'
+__version__ = '2.19.2'
 __version_info__ = tuple(LooseVersion(__version__).version)
 __author__ = 'Steven Loria'
 __all__ = [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/marshmallow-2.19.1/src/marshmallow/fields.py 
new/marshmallow-2.19.2/src/marshmallow/fields.py
--- old/marshmallow-2.19.1/src/marshmallow/fields.py    2019-03-16 
21:09:37.000000000 +0100
+++ new/marshmallow-2.19.2/src/marshmallow/fields.py    2019-03-30 
17:19:20.000000000 +0100
@@ -647,7 +647,8 @@
 
     num_type = float
     default_error_messages = {
-        'invalid': 'Not a valid number.'
+        'invalid': 'Not a valid number.',
+        'too_large': 'Number too large.',
     }
 
     def __init__(self, as_string=False, **kwargs):
@@ -666,6 +667,8 @@
             return self._format_num(value)
         except (TypeError, ValueError):
             self.fail('invalid')
+        except OverflowError:
+            self.fail('too_large')
 
     def _to_string(self, value):
         return str(value)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/marshmallow-2.19.1/src/marshmallow.egg-info/PKG-INFO 
new/marshmallow-2.19.2/src/marshmallow.egg-info/PKG-INFO
--- old/marshmallow-2.19.1/src/marshmallow.egg-info/PKG-INFO    2019-03-16 
21:10:02.000000000 +0100
+++ new/marshmallow-2.19.2/src/marshmallow.egg-info/PKG-INFO    2019-03-30 
17:19:48.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: marshmallow
-Version: 2.19.1
+Version: 2.19.2
 Summary: A lightweight library for converting complex datatypes to and from 
native Python datatypes.
 Home-page: https://github.com/marshmallow-code/marshmallow
 Author: Steven Loria
@@ -179,7 +179,7 @@
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
-Provides-Extra: tests
-Provides-Extra: lint
 Provides-Extra: reco
 Provides-Extra: dev
+Provides-Extra: lint
+Provides-Extra: tests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/marshmallow-2.19.1/tests/test_deserialization.py 
new/marshmallow-2.19.2/tests/test_deserialization.py
--- old/marshmallow-2.19.1/tests/test_deserialization.py        2019-03-16 
21:09:37.000000000 +0100
+++ new/marshmallow-2.19.2/tests/test_deserialization.py        2019-03-30 
17:19:20.000000000 +0100
@@ -71,6 +71,12 @@
             field.deserialize(in_val)
         assert excinfo.value.args[0] == 'Not a valid number.'
 
+    def test_float_field_overflow(self):
+        field = fields.Float()
+        with pytest.raises(ValidationError) as excinfo:
+            field.deserialize(2**1024)
+        assert excinfo.value.args[0] == 'Number too large.'
+
     def test_integer_field_deserialization(self):
         field = fields.Integer()
         assert field.deserialize('42') == 42


Reply via email to