Hello community, here is the log from the commit of package python-Paste for openSUSE:Factory checked in at 2020-11-29 12:19:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Paste (Old) and /work/SRC/openSUSE:Factory/.python-Paste.new.5913 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Paste" Sun Nov 29 12:19:09 2020 rev:31 rq:850933 version:3.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Paste/python-Paste.changes 2020-10-25 18:10:14.523550958 +0100 +++ /work/SRC/openSUSE:Factory/.python-Paste.new.5913/python-Paste.changes 2020-11-29 12:19:10.637440777 +0100 @@ -1,0 +2,7 @@ +Thu Nov 26 09:07:17 UTC 2020 - Dirk Mueller <dmuel...@suse.com> + +- update to 3.5.0: + * Python 3 fixes to auth and wsgi.errors handling; notably making + wsgi.errors text. + +------------------------------------------------------------------- Old: ---- Paste-3.4.6.tar.gz New: ---- Paste-3.5.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Paste.spec ++++++ --- /var/tmp/diff_new_pack.MKZnxM/_old 2020-11-29 12:19:11.165441311 +0100 +++ /var/tmp/diff_new_pack.MKZnxM/_new 2020-11-29 12:19:11.169441315 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-Paste -Version: 3.4.6 +Version: 3.5.0 Release: 0 Summary: Tools for using a Web Server Gateway Interface stack License: MIT ++++++ Paste-3.4.6.tar.gz -> Paste-3.5.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.4.6/PKG-INFO new/Paste-3.5.0/PKG-INFO --- old/Paste-3.4.6/PKG-INFO 2020-09-25 16:34:45.000000000 +0200 +++ new/Paste-3.5.0/PKG-INFO 2020-10-12 14:48:10.120894700 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: Paste -Version: 3.4.6 +Version: 3.5.0 Summary: Tools for using a Web Server Gateway Interface stack Home-page: https://pythonpaste.readthedocs.io/ Author: Chris Dent diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.4.6/Paste.egg-info/PKG-INFO new/Paste-3.5.0/Paste.egg-info/PKG-INFO --- old/Paste-3.4.6/Paste.egg-info/PKG-INFO 2020-09-25 16:34:44.000000000 +0200 +++ new/Paste-3.5.0/Paste.egg-info/PKG-INFO 2020-10-12 14:48:09.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: Paste -Version: 3.4.6 +Version: 3.5.0 Summary: Tools for using a Web Server Gateway Interface stack Home-page: https://pythonpaste.readthedocs.io/ Author: Chris Dent diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.4.6/docs/news.txt new/Paste-3.5.0/docs/news.txt --- old/Paste-3.4.6/docs/news.txt 2020-09-25 16:33:03.000000000 +0200 +++ new/Paste-3.5.0/docs/news.txt 2020-10-12 14:45:58.000000000 +0200 @@ -3,6 +3,14 @@ .. contents:: +3.5.0 +----- + +* Python 3 fixes to auth and wsgi.errors handling; notably making + wsgi.errors text. + +Thanks to brondsem. + 3.4.6 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.4.6/paste/auth/basic.py new/Paste-3.5.0/paste/auth/basic.py --- old/Paste-3.4.6/paste/auth/basic.py 2020-01-26 16:30:37.000000000 +0100 +++ new/Paste-3.5.0/paste/auth/basic.py 2020-10-12 14:27:11.000000000 +0200 @@ -21,6 +21,8 @@ .. [1] http://www.w3.org/Protocols/HTTP/1.0/draft-ietf-http-spec.html#BasicAA """ +from base64 import b64decode +import six from paste.httpexceptions import HTTPUnauthorized from paste.httpheaders import * @@ -44,7 +46,7 @@ (authmeth, auth) = authorization.split(' ', 1) if 'basic' != authmeth.lower(): return self.build_authentication() - auth = auth.strip().decode('base64') + auth = six.ensure_text(b64decode(six.ensure_binary(auth.strip()))) username, password = auth.split(':', 1) if self.authfunc(environ, username, password): return username diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.4.6/paste/cgiapp.py new/Paste-3.5.0/paste/cgiapp.py --- old/Paste-3.4.6/paste/cgiapp.py 2020-01-26 16:30:37.000000000 +0100 +++ new/Paste-3.5.0/paste/cgiapp.py 2020-10-12 14:27:11.000000000 +0200 @@ -253,7 +253,7 @@ read_set.remove(proc.stderr) if trans_nl: data = proc._translate_newlines(data) - stderr.write(data) + stderr.write(six.ensure_text(data)) try: proc.wait() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.4.6/paste/errordocument.py new/Paste-3.5.0/paste/errordocument.py --- old/Paste-3.4.6/paste/errordocument.py 2020-01-26 16:30:37.000000000 +0100 +++ new/Paste-3.5.0/paste/errordocument.py 2020-10-12 14:27:11.000000000 +0200 @@ -87,8 +87,6 @@ return self.app(environ, keep_status_start_response) except RecursionLoop as e: line = 'Recursion error getting error page: %s\n' % e - if six.PY3: - line = line.encode('utf8') environ['wsgi.errors'].write(line) keep_status_start_response('500 Server Error', [('Content-type', 'text/plain')], sys.exc_info()) body = ('Error: %s. (Error page could not be fetched)' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.4.6/paste/evalexception/middleware.py new/Paste-3.5.0/paste/evalexception/middleware.py --- old/Paste-3.4.6/paste/evalexception/middleware.py 2020-07-14 12:23:30.000000000 +0200 +++ new/Paste-3.5.0/paste/evalexception/middleware.py 2020-10-12 14:27:11.000000000 +0200 @@ -333,8 +333,6 @@ headers, exc_info) msg = 'Debug at: %s\n' % view_uri - if six.PY3: - msg = msg.encode('utf8') environ['wsgi.errors'].write(msg) exc_data = collector.collect_exception(*exc_info) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.4.6/paste/exceptions/errormiddleware.py new/Paste-3.5.0/paste/exceptions/errormiddleware.py --- old/Paste-3.4.6/paste/exceptions/errormiddleware.py 2020-01-26 16:30:37.000000000 +0100 +++ new/Paste-3.5.0/paste/exceptions/errormiddleware.py 2020-10-12 14:27:11.000000000 +0200 @@ -221,7 +221,7 @@ if self.closed: raise StopIteration try: - return self.app_iterator.next() + return next(self.app_iterator) except StopIteration: self.closed = True close_response = self._close() @@ -386,8 +386,6 @@ else: line = ('Error - %s: %s\n' % (exc_data.exception_type, exc_data.exception_value)) - if six.PY3: - line = line.encode('utf8') error_stream.write(line) if html: if debug_mode and simple_html_error: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.4.6/paste/lint.py new/Paste-3.5.0/paste/lint.py --- old/Paste-3.4.6/paste/lint.py 2020-01-26 16:30:37.000000000 +0100 +++ new/Paste-3.5.0/paste/lint.py 2020-10-12 14:27:11.000000000 +0200 @@ -217,7 +217,7 @@ self.errors = wsgi_errors def write(self, s): - assert isinstance(s, bytes) + assert isinstance(s, six.string_types) self.errors.write(s) def flush(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.4.6/paste/wsgilib.py new/Paste-3.5.0/paste/wsgilib.py --- old/Paste-3.4.6/paste/wsgilib.py 2020-06-04 13:56:09.000000000 +0200 +++ new/Paste-3.5.0/paste/wsgilib.py 2020-10-12 14:27:11.000000000 +0200 @@ -291,7 +291,7 @@ if raise_on_wsgi_error: errors = ErrorRaiser() else: - errors = six.BytesIO() + errors = six.StringIO() basic_environ = { # mandatory CGI variables 'REQUEST_METHOD': 'GET', # always mandatory @@ -604,4 +604,3 @@ if __name__ == '__main__': import doctest doctest.testmod() - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.4.6/setup.py new/Paste-3.5.0/setup.py --- old/Paste-3.4.6/setup.py 2020-09-25 16:32:31.000000000 +0200 +++ new/Paste-3.5.0/setup.py 2020-10-12 14:44:56.000000000 +0200 @@ -12,7 +12,7 @@ # - git push # - python setup.py sdist bdist_wheel upload --sign -__version__ = '3.4.6' +__version__ = '3.5.0' from setuptools import setup, find_packages import sys, os diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.4.6/tests/test_cgiapp.py new/Paste-3.5.0/tests/test_cgiapp.py --- old/Paste-3.4.6/tests/test_cgiapp.py 2020-01-26 16:30:37.000000000 +0100 +++ new/Paste-3.5.0/tests/test_cgiapp.py 2020-10-12 14:27:11.000000000 +0200 @@ -57,5 +57,4 @@ res = app.get('', expect_errors=True) assert res.status == 500 assert 'error' in res - assert b'some data' in res.errors - + assert 'some data' in res.errors diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.4.6/tox.ini new/Paste-3.5.0/tox.ini --- old/Paste-3.4.6/tox.ini 2020-01-26 16:30:37.000000000 +0100 +++ new/Paste-3.5.0/tox.ini 2020-10-12 14:41:22.000000000 +0200 @@ -1,5 +1,5 @@ [tox] -envlist = py27, py35, py36, py37, pypy +envlist = py27, py36, py37, py38, pypy [testenv] # For performance, but also for using "source" with coveragepy (https://github.com/nedbat/coveragepy/issues/268). _______________________________________________ openSUSE Commits mailing list -- commit@lists.opensuse.org To unsubscribe, email commit-le...@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/commit@lists.opensuse.org