Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-WSME for openSUSE:Factory 
checked in at 2021-04-23 17:50:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-WSME (Old)
 and      /work/SRC/openSUSE:Factory/.python-WSME.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-WSME"

Fri Apr 23 17:50:37 2021 rev:19 rq:887879 version:0.10.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-WSME/python-WSME.changes  2020-06-02 
14:36:19.127081011 +0200
+++ /work/SRC/openSUSE:Factory/.python-WSME.new.12324/python-WSME.changes       
2021-04-23 17:50:54.086822625 +0200
@@ -1,0 +2,7 @@
+Thu Apr 22 20:05:53 UTC 2021 - Dirk M??ller <[email protected]>
+
+- update to 0.10.1:
+  * Fix coverage and getargspec deprecation
+  * Python 3.9: use encodebytes / decodebytes
+
+-------------------------------------------------------------------

Old:
----
  WSME-0.10.0.tar.gz

New:
----
  WSME-0.10.1.tar.gz

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

Other differences:
------------------
++++++ python-WSME.spec ++++++
--- /var/tmp/diff_new_pack.TWwYxi/_old  2021-04-23 17:50:54.478823300 +0200
+++ /var/tmp/diff_new_pack.TWwYxi/_new  2021-04-23 17:50:54.478823300 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-WSME
 #
-# 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
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-WSME
-Version:        0.10.0
+Version:        0.10.1
 Release:        0
 Summary:        Web Services Made Easy
 License:        MIT

++++++ WSME-0.10.0.tar.gz -> WSME-0.10.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/AUTHORS new/WSME-0.10.1/AUTHORS
--- old/WSME-0.10.0/AUTHORS     2020-04-13 16:53:38.000000000 +0200
+++ new/WSME-0.10.1/AUTHORS     2021-03-12 04:01:15.000000000 +0100
@@ -26,6 +26,7 @@
 Lucas Alvares Gomes <[email protected]>
 Mehdi Abaakouk <[email protected]>
 Mehdi Abaakouk <[email protected]>
+Michael Johnson <[email protected]>
 Michael Krotscheck <[email protected]>
 Ryan Petrello <[email protected]>
 Sanu Madhavan <[email protected]>
@@ -33,6 +34,7 @@
 Stephen Finucane <[email protected]>
 St??phane Bisinger <[email protected]>
 S??awek Ehlert <[email protected]>
+Thomas Goirand <[email protected]>
 Victor Stinner <[email protected]>
 Vladyslav Drok <[email protected]>
 Yuriy Zveryanskyy <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/ChangeLog new/WSME-0.10.1/ChangeLog
--- old/WSME-0.10.0/ChangeLog   2020-04-13 16:53:38.000000000 +0200
+++ new/WSME-0.10.1/ChangeLog   2021-03-12 04:01:15.000000000 +0100
@@ -1,6 +1,12 @@
 CHANGES
 =======
 
+0.10.1
+------
+
+* Fix coverage and getargspec deprecation
+* Python 3.9: use encodebytes / decodebytes
+
 0.10.0
 ------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/PKG-INFO new/WSME-0.10.1/PKG-INFO
--- old/WSME-0.10.0/PKG-INFO    2020-04-13 16:53:38.000000000 +0200
+++ new/WSME-0.10.1/PKG-INFO    2021-03-12 04:01:16.068960200 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: WSME
-Version: 0.10.0
+Version: 0.10.1
 Summary: Simplify the writing of REST APIs, and extend them with additional 
protocols.
 Home-page: http://git.openstack.org/cgit/openstack/wsme
 Author: Christophe de Vienne
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/WSME.egg-info/PKG-INFO 
new/WSME-0.10.1/WSME.egg-info/PKG-INFO
--- old/WSME-0.10.0/WSME.egg-info/PKG-INFO      2020-04-13 16:53:38.000000000 
+0200
+++ new/WSME-0.10.1/WSME.egg-info/PKG-INFO      2021-03-12 04:01:15.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: WSME
-Version: 0.10.0
+Version: 0.10.1
 Summary: Simplify the writing of REST APIs, and extend them with additional 
protocols.
 Home-page: http://git.openstack.org/cgit/openstack/wsme
 Author: Christophe de Vienne
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/WSME.egg-info/pbr.json 
new/WSME-0.10.1/WSME.egg-info/pbr.json
--- old/WSME-0.10.0/WSME.egg-info/pbr.json      2020-04-13 16:53:38.000000000 
+0200
+++ new/WSME-0.10.1/WSME.egg-info/pbr.json      2021-03-12 04:01:15.000000000 
+0100
@@ -1 +1 @@
-{"git_version": "a274dca", "is_release": true}
\ No newline at end of file
+{"git_version": "63fe135", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/WSME.egg-info/requires.txt 
new/WSME-0.10.1/WSME.egg-info/requires.txt
--- old/WSME-0.10.0/WSME.egg-info/requires.txt  2020-04-13 16:53:38.000000000 
+0200
+++ new/WSME-0.10.1/WSME.egg-info/requires.txt  2021-03-12 04:01:15.000000000 
+0100
@@ -1,5 +1,5 @@
-six>=1.9.0
 WebOb>=1.8.0
-simplegeneric
-pytz
 netaddr>=0.7.12
+pytz
+simplegeneric
+six>=1.9.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/test-requirements.txt 
new/WSME-0.10.1/test-requirements.txt
--- old/WSME-0.10.0/test-requirements.txt       2020-04-13 16:52:57.000000000 
+0200
+++ new/WSME-0.10.1/test-requirements.txt       2021-03-12 04:00:46.000000000 
+0100
@@ -5,5 +5,5 @@
 Flask
 flask-restful
 nose
-coverage < 3.99
+coverage!=4.4,>=4.0 # Apache-2.0
 webtest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/tox.ini new/WSME-0.10.1/tox.ini
--- old/WSME-0.10.0/tox.ini     2020-04-13 16:52:57.000000000 +0200
+++ new/WSME-0.10.1/tox.ini     2021-03-12 04:00:46.000000000 +0100
@@ -11,18 +11,16 @@
   -r test-requirements.txt
 commands =
   {envbindir}/coverage run {envbindir}/nosetests --nologcapture --with-xunit 
--xunit-file nosetests-{envname}.xml wsme/tests tests/pecantest 
tests/test_sphinxext.py tests/test_flask.py --verbose {posargs}
-  {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py 
wsmeext/*.py
+  {envbindir}/coverage report --show-missing 
--include="wsme/*.py","wsme/rest/*.py","wsmeext/*.py" --omit "wsme/tests/*"
 
 [testenv:coverage]
-deps =
-  coverage < 3.99
 setenv =
   COVERAGE_FILE=.coverage
 commands =
   {envbindir}/coverage erase
   {envbindir}/coverage combine
-  {envbindir}/coverage xml wsme/*.py wsme/rest/*.py wsmeext/*.py
-  {envbindir}/coverage report --show-missing wsme/*.py wsme/protocols/*.py 
wsmeext/*.py
+  {envbindir}/coverage xml 
--include="wsme/*.py","wsme/rest/*.py","wsmeext/*.py" --omit "wsme/tests/*"
+  {envbindir}/coverage report --show-missing 
--include="wsme/*.py","wsme/rest/*.py","wsmeext/*.py" --omit "wsme/tests/*"
 
 [testenv:docs]
 whitelist_externals =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/wsme/api.py new/WSME-0.10.1/wsme/api.py
--- old/WSME-0.10.0/wsme/api.py 2020-04-13 16:52:57.000000000 +0200
+++ new/WSME-0.10.1/wsme/api.py 2021-03-12 04:00:46.000000000 +0100
@@ -26,7 +26,10 @@
 
 def getargspec(f):
     f = getattr(f, '_wsme_original_func', f)
-    return inspect.getargspec(f)
+    if six.PY2:
+        return inspect.getargspec(f)
+    else:
+        return inspect.getfullargspec(f)
 
 
 class FunctionArgument(object):
@@ -121,7 +124,8 @@
         self.extra_options = extra_options
 
     def set_arg_types(self, argspec, arg_types):
-        args, varargs, keywords, defaults = argspec
+        args = argspec.args
+        defaults = argspec.defaults
         if args[0] == 'self':
             args = args[1:]
         arg_types = list(arg_types)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/wsme/tests/test_restjson.py 
new/WSME-0.10.1/wsme/tests/test_restjson.py
--- old/WSME-0.10.0/wsme/tests/test_restjson.py 2020-04-13 16:52:57.000000000 
+0200
+++ new/WSME-0.10.1/wsme/tests/test_restjson.py 2021-03-12 04:00:46.000000000 
+0100
@@ -35,7 +35,10 @@
     if datatype == decimal.Decimal:
         return str(value)
     if datatype == wsme.types.binary:
-        return base64.encodestring(value).decode('ascii')
+        if six.PY3:
+            return base64.encodebytes(value).decode('ascii')
+        else:
+            return base64.encodestring(value).decode('ascii')
     if datatype == wsme.types.bytes:
         return value.decode('ascii')
     return value
@@ -46,7 +49,10 @@
     if value is None:
         return None
     if datatype == wsme.types.binary:
-        return base64.decodestring(value.encode('ascii'))
+        if six.PY3:
+            return base64.decodebytes(value.encode('ascii'))
+        else:
+            return base64.decodestring(value.encode('ascii'))
     if isusertype(datatype):
         datatype = datatype.basetype
     if isinstance(datatype, list):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/wsme/tests/test_restxml.py 
new/WSME-0.10.1/wsme/tests/test_restxml.py
--- old/WSME-0.10.0/wsme/tests/test_restxml.py  2020-04-13 16:52:57.000000000 
+0200
+++ new/WSME-0.10.1/wsme/tests/test_restxml.py  2021-03-12 04:00:46.000000000 
+0100
@@ -30,7 +30,10 @@
             node.append(dumpxml('key', item[0], key_type))
             node.append(dumpxml('value', item[1], value_type))
     elif datatype == wsme.types.binary:
-        el.text = base64.encodestring(obj).decode('ascii')
+        if six.PY3:
+            el.text = base64.encodebytes(obj).decode('ascii')
+        else:
+            el.text = base64.encodestring(obj).decode('ascii')
     elif isinstance(obj, wsme.types.bytes):
         el.text = obj.decode('ascii')
     elif isinstance(obj, wsme.types.text):
@@ -96,7 +99,10 @@
         return d
     else:
         if datatype == wsme.types.binary:
-            return base64.decodestring(el.text.encode('ascii'))
+            if six.PY3:
+                return base64.decodebytes(el.text.encode('ascii'))
+            else:
+                return base64.decodestring(el.text.encode('ascii'))
         if isusertype(datatype):
             datatype = datatype.basetype
         if datatype == datetime.date:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/wsme/tests/test_types.py 
new/WSME-0.10.1/wsme/tests/test_types.py
--- old/WSME-0.10.0/wsme/tests/test_types.py    2020-04-13 16:52:57.000000000 
+0200
+++ new/WSME-0.10.1/wsme/tests/test_types.py    2021-03-12 04:00:46.000000000 
+0100
@@ -464,13 +464,19 @@
     def test_binary_to_base(self):
         import base64
         assert types.binary.tobasetype(None) is None
-        expected = base64.encodestring(six.b('abcdef'))
+        if six.PY3:
+            expected = base64.encodebytes(six.b('abcdef'))
+        else:
+            expected = base64.encodestring(six.b('abcdef'))
         assert types.binary.tobasetype(six.b('abcdef')) == expected
 
     def test_binary_from_base(self):
         import base64
         assert types.binary.frombasetype(None) is None
-        encoded = base64.encodestring(six.b('abcdef'))
+        if six.PY3:
+            encoded = base64.encodebytes(six.b('abcdef'))
+        else:
+            encoded = base64.encodestring(six.b('abcdef'))
         assert types.binary.frombasetype(encoded) == six.b('abcdef')
 
     def test_wsattr_weakref_datatype(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/wsme/types.py 
new/WSME-0.10.1/wsme/types.py
--- old/WSME-0.10.0/wsme/types.py       2020-04-13 16:52:57.000000000 +0200
+++ new/WSME-0.10.1/wsme/types.py       2021-03-12 04:00:46.000000000 +0100
@@ -128,12 +128,18 @@
     def tobasetype(self, value):
         if value is None:
             return None
-        return base64.encodestring(value)
+        if six.PY3:
+            return base64.encodebytes(value)
+        else:
+            return base64.encodestring(value)
 
     def frombasetype(self, value):
         if value is None:
             return None
-        return base64.decodestring(value)
+        if six.PY3:
+            return base64.decodebytes(value)
+        else:
+            return base64.decodestring(value)
 
 
 #: The binary almost-native type
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSME-0.10.0/wsmeext/pecan.py 
new/WSME-0.10.1/wsmeext/pecan.py
--- old/WSME-0.10.0/wsmeext/pecan.py    2020-04-13 16:52:57.000000000 +0200
+++ new/WSME-0.10.1/wsmeext/pecan.py    2021-03-12 04:00:46.000000000 +0100
@@ -2,6 +2,7 @@
 
 import functools
 import inspect
+import six
 import sys
 
 import pecan
@@ -134,7 +135,11 @@
             pecan_text_xml_decorate(callfunction)
         if 'json' in funcdef.rest_content_types:
             pecan_json_decorate(callfunction)
-        pecan.util._cfg(callfunction)['argspec'] = inspect.getargspec(f)
+        if six.PY2:
+            argspec = inspect.getargspec(f)
+        else:
+            argspec = inspect.getfullargspec(f)
+        pecan.util._cfg(callfunction)['argspec'] = argspec
         callfunction._wsme_definition = funcdef
         return callfunction
 

Reply via email to