Hello community,

here is the log from the commit of package python-py-ubjson for 
openSUSE:Leap:15.2 checked in at 2020-03-26 05:41:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-py-ubjson (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-py-ubjson.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-py-ubjson"

Thu Mar 26 05:41:39 2020 rev:2 rq:788135 version:0.15.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-py-ubjson/python-py-ubjson.changes      
2020-02-11 23:25:44.441280034 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-py-ubjson.new.3160/python-py-ubjson.changes
    2020-03-26 05:41:58.255297198 +0100
@@ -1,0 +2,6 @@
+Tue Mar 24 07:26:32 UTC 2020 - pgaj...@suse.com
+
+- version update to 0.15.0
+  * Fix decimal encoding bug/assert (reported by mgorny)
+
+-------------------------------------------------------------------

Old:
----
  py-ubjson-0.14.0.tar.gz

New:
----
  py-ubjson-0.15.0.tar.gz

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

Other differences:
------------------
++++++ python-py-ubjson.spec ++++++
--- /var/tmp/diff_new_pack.bFIWhs/_old  2020-03-26 05:41:58.619297387 +0100
+++ /var/tmp/diff_new_pack.bFIWhs/_new  2020-03-26 05:41:58.619297387 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-py-ubjson
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 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 modname py-ubjson
 Name:           python-py-ubjson
-Version:        0.14.0
+Version:        0.15.0
 Release:        0
 Summary:        Universal Binary JSON encoder/decoder
 License:        Apache-2.0
@@ -27,6 +27,7 @@
 URL:            https://github.com/Iotic-Labs/py-ubjson
 Source:         
https://files.pythonhosted.org/packages/source/p/py-ubjson/%{modname}-%{version}.tar.gz
 BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -44,7 +45,7 @@
 
 %check
 touch test/__init__.py
-%python_expand $python -munittest discover -v
+%pytest test/test.py
 
 %install
 %python_install

++++++ py-ubjson-0.14.0.tar.gz -> py-ubjson-0.15.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-ubjson-0.14.0/CHANGELOG 
new/py-ubjson-0.15.0/CHANGELOG
--- old/py-ubjson-0.14.0/CHANGELOG      2019-06-20 18:30:28.000000000 +0200
+++ new/py-ubjson-0.15.0/CHANGELOG      2020-03-17 11:56:38.000000000 +0100
@@ -1,3 +1,6 @@
+0.15.0
+- Fix decimal encoding bug/assert (reported by mgorny)
+
 0.14.0
 - Fix DecoderException not including offset when C-extension in use, expose
   property for it.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-ubjson-0.14.0/PKG-INFO 
new/py-ubjson-0.15.0/PKG-INFO
--- old/py-ubjson-0.14.0/PKG-INFO       2019-06-20 18:57:26.000000000 +0200
+++ new/py-ubjson-0.15.0/PKG-INFO       2020-03-17 12:46:10.821954500 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: py-ubjson
-Version: 0.14.0
+Version: 0.15.0
 Summary: Universal Binary JSON encoder/decoder
 Home-page: https://github.com/Iotic-Labs/py-ubjson
 Author: Iotic Labs Ltd
@@ -109,6 +109,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: Topic :: Software Development :: Libraries
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-ubjson-0.14.0/py_ubjson.egg-info/PKG-INFO 
new/py-ubjson-0.15.0/py_ubjson.egg-info/PKG-INFO
--- old/py-ubjson-0.14.0/py_ubjson.egg-info/PKG-INFO    2019-06-20 
18:57:26.000000000 +0200
+++ new/py-ubjson-0.15.0/py_ubjson.egg-info/PKG-INFO    2020-03-17 
12:46:10.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: py-ubjson
-Version: 0.14.0
+Version: 0.15.0
 Summary: Universal Binary JSON encoder/decoder
 Home-page: https://github.com/Iotic-Labs/py-ubjson
 Author: Iotic Labs Ltd
@@ -109,6 +109,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: Topic :: Software Development :: Libraries
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-ubjson-0.14.0/setup.py 
new/py-ubjson-0.15.0/setup.py
--- old/py-ubjson-0.14.0/setup.py       2019-06-20 18:00:08.000000000 +0200
+++ new/py-ubjson-0.15.0/setup.py       2020-03-17 10:34:42.000000000 +0100
@@ -90,8 +90,12 @@
         ]
     },
     zip_safe=False,
-    ext_modules=([Extension('_ubjson', sorted(glob('src/*.c')), 
extra_compile_args=COMPILE_ARGS)]
-                 if BUILD_EXTENSIONS else []),
+    ext_modules=([Extension(
+        '_ubjson',
+        sorted(glob('src/*.c')),
+        extra_compile_args=COMPILE_ARGS,
+        # undef_macros=['NDEBUG']
+    )] if BUILD_EXTENSIONS else []),
     cmdclass={"build_ext": BuildExtWarnOnFail},
     keywords=['ubjson', 'ubj'],
     classifiers=[
@@ -107,6 +111,7 @@
         'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: 3.6',
         'Programming Language :: Python :: 3.7',
+        'Programming Language :: Python :: 3.8',
         'Topic :: Software Development :: Libraries',
         'Topic :: Software Development :: Libraries :: Python Modules'
     ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-ubjson-0.14.0/src/encoder.c 
new/py-ubjson-0.15.0/src/encoder.c
--- old/py-ubjson-0.14.0/src/encoder.c  2019-06-20 17:41:29.000000000 +0200
+++ new/py-ubjson-0.15.0/src/encoder.c  2020-03-17 10:34:42.000000000 +0100
@@ -268,7 +268,7 @@
 #endif
         BAIL_ON_NULL(encoded = PyUnicode_AsEncodedString(str, "utf-8", NULL));
         raw = PyBytes_AS_STRING(encoded);
-        len = PyBytes_GET_SIZE(str);
+        len = PyBytes_GET_SIZE(encoded);
 
         WRITE_CHAR_OR_BAIL(TYPE_HIGH_PREC);
         BAIL_ON_NONZERO(_encode_longlong(len, buffer));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-ubjson-0.14.0/ubjson/__init__.py 
new/py-ubjson-0.15.0/ubjson/__init__.py
--- old/py-ubjson-0.14.0/ubjson/__init__.py     2019-06-20 18:30:04.000000000 
+0200
+++ new/py-ubjson-0.15.0/ubjson/__init__.py     2020-03-17 12:46:03.000000000 
+0100
@@ -37,6 +37,6 @@
 from .encoder import EncoderException
 from .decoder import DecoderException
 
-__version__ = '0.14.0'
+__version__ = '0.15.0'
 
 __all__ = ('EXTENSION_ENABLED', 'dump', 'dumpb', 'EncoderException', 'load', 
'loadb', 'DecoderException')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-ubjson-0.14.0/ubjson/__main__.py 
new/py-ubjson-0.15.0/ubjson/__main__.py
--- old/py-ubjson-0.14.0/ubjson/__main__.py     2019-06-20 17:41:29.000000000 
+0200
+++ new/py-ubjson-0.15.0/ubjson/__main__.py     2020-03-17 11:50:39.000000000 
+0100
@@ -16,7 +16,7 @@
 """Converts between json & ubjson"""
 
 from __future__ import print_function
-from sys import argv, stderr, stdout, stdin
+from sys import argv, stderr, stdout, stdin, exit  # pylint: 
disable=redefined-builtin
 from json import load as jload, dump as jdump
 
 from .compat import STDIN_RAW, STDOUT_RAW
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-ubjson-0.14.0/ubjson/encoder.py 
new/py-ubjson-0.15.0/ubjson/encoder.py
--- old/py-ubjson-0.14.0/ubjson/encoder.py      2019-06-20 17:41:29.000000000 
+0200
+++ new/py-ubjson-0.15.0/ubjson/encoder.py      2020-03-17 11:45:52.000000000 
+0100
@@ -40,7 +40,6 @@
 
 class EncoderException(TypeError):
     """Raised when encoding of an object fails."""
-    pass
 
 
 def __encode_decimal(fp_write, item):


Reply via email to