Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-wadllib for openSUSE:Factory checked in at 2021-08-18 08:56:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-wadllib (Old) and /work/SRC/openSUSE:Factory/.python-wadllib.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-wadllib" Wed Aug 18 08:56:25 2021 rev:7 rq:912722 version:1.3.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-wadllib/python-wadllib.changes 2020-07-24 10:02:45.945799990 +0200 +++ /work/SRC/openSUSE:Factory/.python-wadllib.new.1899/python-wadllib.changes 2021-08-18 08:57:16.194879101 +0200 @@ -1,0 +2,9 @@ +Tue Aug 17 13:27:21 UTC 2021 - pgaj...@suse.com + +- version update to 1.3.5 + - Drop support for Python 3.2, 3.3, and 3.4. + - Accept Unicode parameter values again when performing multipart/form-data + encoding on Python 2 (broken in 1.3.3). +- %check: use %pyunittest rpm macro + +------------------------------------------------------------------- Old: ---- wadllib-1.3.4.tar.gz New: ---- wadllib-1.3.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-wadllib.spec ++++++ --- /var/tmp/diff_new_pack.IiGuJL/_old 2021-08-18 08:57:16.590878635 +0200 +++ /var/tmp/diff_new_pack.IiGuJL/_new 2021-08-18 08:57:16.594878631 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-wadllib # -# 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-wadllib -Version: 1.3.4 +Version: 1.3.5 Release: 0 Summary: Navigate HTTP resources using WADL files as guides License: LGPL-3.0-or-later @@ -48,7 +48,8 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +cd src +%pyunittest discover -v %files %{python_files} %license COPYING.txt ++++++ wadllib-1.3.4.tar.gz -> wadllib-1.3.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wadllib-1.3.4/PKG-INFO new/wadllib-1.3.5/PKG-INFO --- old/wadllib-1.3.4/PKG-INFO 2020-04-29 17:51:55.215243800 +0200 +++ new/wadllib-1.3.5/PKG-INFO 2021-01-20 11:53:39.000000000 +0100 @@ -1,10 +1,10 @@ -Metadata-Version: 2.1 +Metadata-Version: 1.1 Name: wadllib -Version: 1.3.4 +Version: 1.3.5 Summary: Navigate HTTP resources using WADL files as guides. Home-page: https://launchpad.net/wadllib -Maintainer: LAZR Developers -Maintainer-email: lazr-develop...@lists.launchpad.net +Author: LAZR Developers +Author-email: lazr-develop...@lists.launchpad.net License: LGPL v3 Download-URL: https://launchpad.net/wadllib/+download Description: .. @@ -581,13 +581,6 @@ >>> import cgi >>> import io >>> def assert_message_parts(media_type, doc, expected): - ... if sys.version_info[0] == 3 and sys.version_info[1] < 3: - ... # We can't do much due to https://bugs.python.org/issue18013. - ... for value in expected: - ... if not isinstance(value, bytes): - ... value = value.encode('UTF-8') - ... assert value in doc - ... return ... environ = { ... 'REQUEST_METHOD': 'POST', ... 'CONTENT_TYPE': media_type, @@ -618,6 +611,13 @@ >>> method = service_root.get_method('post', 'multipart/form-data') >>> media_type, doc = method.build_representation( + ... text_field=u"text", binary_field=b"\x01\x02\r\x81\r") + >>> print(media_type) + multipart/form-data; boundary=... + >>> assert_message_parts(media_type, doc, ['text', b'\x01\x02\r\x81\r']) + + >>> method = service_root.get_method('post', 'multipart/form-data') + >>> media_type, doc = method.build_representation( ... text_field="text\n", binary_field=b"\x01\x02\r\x81\n\r") >>> print(media_type) multipart/form-data; boundary=... @@ -626,6 +626,14 @@ >>> method = service_root.get_method('post', 'multipart/form-data') >>> media_type, doc = method.build_representation( + ... text_field=u"text\n", binary_field=b"\x01\x02\r\x81\n\r") + >>> print(media_type) + multipart/form-data; boundary=... + >>> assert_message_parts( + ... media_type, doc, ['text\r\n', b'\x01\x02\r\x81\n\r']) + + >>> method = service_root.get_method('post', 'multipart/form-data') + >>> media_type, doc = method.build_representation( ... text_field="text\r\nmore\r\n", ... binary_field=b"\x01\x02\r\n\x81\r\x82\n") >>> print(media_type) @@ -633,6 +641,15 @@ >>> assert_message_parts( ... media_type, doc, ['text\r\nmore\r\n', b'\x01\x02\r\n\x81\r\x82\n']) + >>> method = service_root.get_method('post', 'multipart/form-data') + >>> media_type, doc = method.build_representation( + ... text_field=u"text\r\nmore\r\n", + ... binary_field=b"\x01\x02\r\n\x81\r\x82\n") + >>> print(media_type) + multipart/form-data; boundary=... + >>> assert_message_parts( + ... media_type, doc, ['text\r\nmore\r\n', b'\x01\x02\r\n\x81\r\x82\n']) + >>> method = service_root.get_method('post', 'text/unknown') >>> method.build_representation(field="value") Traceback (most recent call last): @@ -700,6 +717,13 @@ NEWS for wadllib ================ + 1.3.5 (2021-01-20) + ================== + + - Drop support for Python 3.2, 3.3, and 3.4. + - Accept Unicode parameter values again when performing multipart/form-data + encoding on Python 2 (broken in 1.3.3). + 1.3.4 (2020-04-29) ================== @@ -825,11 +849,7 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.2 -Classifier: Programming Language :: Python :: 3.3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 -Provides-Extra: docs diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wadllib-1.3.4/setup.cfg new/wadllib-1.3.5/setup.cfg --- old/wadllib-1.3.4/setup.cfg 2020-04-29 17:51:55.215243800 +0200 +++ new/wadllib-1.3.5/setup.cfg 2021-01-20 11:53:39.000000000 +0100 @@ -1,4 +1,5 @@ [egg_info] tag_build = tag_date = 0 +tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wadllib-1.3.4/setup.py new/wadllib-1.3.5/setup.py --- old/wadllib-1.3.4/setup.py 2020-04-29 17:48:06.000000000 +0200 +++ new/wadllib-1.3.5/setup.py 2021-01-20 11:46:47.000000000 +0100 @@ -78,9 +78,6 @@ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.2", - "Programming Language :: Python :: 3.3", - "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wadllib-1.3.4/src/wadllib/NEWS.txt new/wadllib-1.3.5/src/wadllib/NEWS.txt --- old/wadllib-1.3.4/src/wadllib/NEWS.txt 2020-04-29 17:51:30.000000000 +0200 +++ new/wadllib-1.3.5/src/wadllib/NEWS.txt 2021-01-20 11:52:08.000000000 +0100 @@ -2,6 +2,13 @@ NEWS for wadllib ================ +1.3.5 (2021-01-20) +================== + +- Drop support for Python 3.2, 3.3, and 3.4. +- Accept Unicode parameter values again when performing multipart/form-data + encoding on Python 2 (broken in 1.3.3). + 1.3.4 (2020-04-29) ================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wadllib-1.3.4/src/wadllib/README.txt new/wadllib-1.3.5/src/wadllib/README.txt --- old/wadllib-1.3.4/src/wadllib/README.txt 2020-04-29 17:49:40.000000000 +0200 +++ new/wadllib-1.3.5/src/wadllib/README.txt 2021-01-20 11:47:46.000000000 +0100 @@ -572,13 +572,6 @@ >>> import cgi >>> import io >>> def assert_message_parts(media_type, doc, expected): - ... if sys.version_info[0] == 3 and sys.version_info[1] < 3: - ... # We can't do much due to https://bugs.python.org/issue18013. - ... for value in expected: - ... if not isinstance(value, bytes): - ... value = value.encode('UTF-8') - ... assert value in doc - ... return ... environ = { ... 'REQUEST_METHOD': 'POST', ... 'CONTENT_TYPE': media_type, @@ -609,6 +602,13 @@ >>> method = service_root.get_method('post', 'multipart/form-data') >>> media_type, doc = method.build_representation( + ... text_field=u"text", binary_field=b"\x01\x02\r\x81\r") + >>> print(media_type) + multipart/form-data; boundary=... + >>> assert_message_parts(media_type, doc, ['text', b'\x01\x02\r\x81\r']) + + >>> method = service_root.get_method('post', 'multipart/form-data') + >>> media_type, doc = method.build_representation( ... text_field="text\n", binary_field=b"\x01\x02\r\x81\n\r") >>> print(media_type) multipart/form-data; boundary=... @@ -617,10 +617,27 @@ >>> method = service_root.get_method('post', 'multipart/form-data') >>> media_type, doc = method.build_representation( + ... text_field=u"text\n", binary_field=b"\x01\x02\r\x81\n\r") + >>> print(media_type) + multipart/form-data; boundary=... + >>> assert_message_parts( + ... media_type, doc, ['text\r\n', b'\x01\x02\r\x81\n\r']) + + >>> method = service_root.get_method('post', 'multipart/form-data') + >>> media_type, doc = method.build_representation( ... text_field="text\r\nmore\r\n", ... binary_field=b"\x01\x02\r\n\x81\r\x82\n") >>> print(media_type) multipart/form-data; boundary=... + >>> assert_message_parts( + ... media_type, doc, ['text\r\nmore\r\n', b'\x01\x02\r\n\x81\r\x82\n']) + + >>> method = service_root.get_method('post', 'multipart/form-data') + >>> media_type, doc = method.build_representation( + ... text_field=u"text\r\nmore\r\n", + ... binary_field=b"\x01\x02\r\n\x81\r\x82\n") + >>> print(media_type) + multipart/form-data; boundary=... >>> assert_message_parts( ... media_type, doc, ['text\r\nmore\r\n', b'\x01\x02\r\n\x81\r\x82\n']) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wadllib-1.3.4/src/wadllib/application.py new/wadllib-1.3.5/src/wadllib/application.py --- old/wadllib-1.3.4/src/wadllib/application.py 2020-04-29 17:22:30.000000000 +0200 +++ new/wadllib-1.3.5/src/wadllib/application.py 2021-01-20 11:47:46.000000000 +0100 @@ -880,8 +880,9 @@ raise TypeError('bytes payload expected: %s' % type(value)) buf.write(value) else: - if not isinstance(value, str): - raise TypeError('str payload expected: %s' % type(value)) + if not isinstance(value, _string_types): + raise TypeError( + 'string payload expected: %s' % type(value)) lines = re.split(r'\r\n|\r|\n', value) for line in lines[:-1]: buf.write(line.encode('UTF-8')) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wadllib-1.3.4/src/wadllib/version.txt new/wadllib-1.3.5/src/wadllib/version.txt --- old/wadllib-1.3.4/src/wadllib/version.txt 2020-04-29 17:51:30.000000000 +0200 +++ new/wadllib-1.3.5/src/wadllib/version.txt 2021-01-20 11:51:55.000000000 +0100 @@ -1 +1 @@ -1.3.4 +1.3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wadllib-1.3.4/src/wadllib.egg-info/PKG-INFO new/wadllib-1.3.5/src/wadllib.egg-info/PKG-INFO --- old/wadllib-1.3.4/src/wadllib.egg-info/PKG-INFO 2020-04-29 17:51:54.000000000 +0200 +++ new/wadllib-1.3.5/src/wadllib.egg-info/PKG-INFO 2021-01-20 11:53:39.000000000 +0100 @@ -1,10 +1,10 @@ -Metadata-Version: 2.1 +Metadata-Version: 1.1 Name: wadllib -Version: 1.3.4 +Version: 1.3.5 Summary: Navigate HTTP resources using WADL files as guides. Home-page: https://launchpad.net/wadllib -Maintainer: LAZR Developers -Maintainer-email: lazr-develop...@lists.launchpad.net +Author: LAZR Developers +Author-email: lazr-develop...@lists.launchpad.net License: LGPL v3 Download-URL: https://launchpad.net/wadllib/+download Description: .. @@ -581,13 +581,6 @@ >>> import cgi >>> import io >>> def assert_message_parts(media_type, doc, expected): - ... if sys.version_info[0] == 3 and sys.version_info[1] < 3: - ... # We can't do much due to https://bugs.python.org/issue18013. - ... for value in expected: - ... if not isinstance(value, bytes): - ... value = value.encode('UTF-8') - ... assert value in doc - ... return ... environ = { ... 'REQUEST_METHOD': 'POST', ... 'CONTENT_TYPE': media_type, @@ -618,6 +611,13 @@ >>> method = service_root.get_method('post', 'multipart/form-data') >>> media_type, doc = method.build_representation( + ... text_field=u"text", binary_field=b"\x01\x02\r\x81\r") + >>> print(media_type) + multipart/form-data; boundary=... + >>> assert_message_parts(media_type, doc, ['text', b'\x01\x02\r\x81\r']) + + >>> method = service_root.get_method('post', 'multipart/form-data') + >>> media_type, doc = method.build_representation( ... text_field="text\n", binary_field=b"\x01\x02\r\x81\n\r") >>> print(media_type) multipart/form-data; boundary=... @@ -626,6 +626,14 @@ >>> method = service_root.get_method('post', 'multipart/form-data') >>> media_type, doc = method.build_representation( + ... text_field=u"text\n", binary_field=b"\x01\x02\r\x81\n\r") + >>> print(media_type) + multipart/form-data; boundary=... + >>> assert_message_parts( + ... media_type, doc, ['text\r\n', b'\x01\x02\r\x81\n\r']) + + >>> method = service_root.get_method('post', 'multipart/form-data') + >>> media_type, doc = method.build_representation( ... text_field="text\r\nmore\r\n", ... binary_field=b"\x01\x02\r\n\x81\r\x82\n") >>> print(media_type) @@ -633,6 +641,15 @@ >>> assert_message_parts( ... media_type, doc, ['text\r\nmore\r\n', b'\x01\x02\r\n\x81\r\x82\n']) + >>> method = service_root.get_method('post', 'multipart/form-data') + >>> media_type, doc = method.build_representation( + ... text_field=u"text\r\nmore\r\n", + ... binary_field=b"\x01\x02\r\n\x81\r\x82\n") + >>> print(media_type) + multipart/form-data; boundary=... + >>> assert_message_parts( + ... media_type, doc, ['text\r\nmore\r\n', b'\x01\x02\r\n\x81\r\x82\n']) + >>> method = service_root.get_method('post', 'text/unknown') >>> method.build_representation(field="value") Traceback (most recent call last): @@ -700,6 +717,13 @@ NEWS for wadllib ================ + 1.3.5 (2021-01-20) + ================== + + - Drop support for Python 3.2, 3.3, and 3.4. + - Accept Unicode parameter values again when performing multipart/form-data + encoding on Python 2 (broken in 1.3.3). + 1.3.4 (2020-04-29) ================== @@ -825,11 +849,7 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.2 -Classifier: Programming Language :: Python :: 3.3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 -Provides-Extra: docs diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wadllib-1.3.4/src/wadllib.egg-info/requires.txt new/wadllib-1.3.5/src/wadllib.egg-info/requires.txt --- old/wadllib-1.3.4/src/wadllib.egg-info/requires.txt 2020-04-29 17:51:54.000000000 +0200 +++ new/wadllib-1.3.5/src/wadllib.egg-info/requires.txt 2021-01-20 11:53:39.000000000 +0100 @@ -1,5 +1,5 @@ -lazr.uri setuptools +lazr.uri [docs] Sphinx