Hello community,

here is the log from the commit of package python-WebTest for openSUSE:Factory 
checked in at 2020-03-27 00:24:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-WebTest (Old)
 and      /work/SRC/openSUSE:Factory/.python-WebTest.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-WebTest"

Fri Mar 27 00:24:08 2020 rev:27 rq:785067 version:2.0.34

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-WebTest/python-WebTest.changes    
2019-03-04 09:09:35.568715784 +0100
+++ /work/SRC/openSUSE:Factory/.python-WebTest.new.3160/python-WebTest.changes  
2020-03-27 00:24:12.668223789 +0100
@@ -1,0 +2,8 @@
+Sat Mar 14 15:45:00 UTC 2020 - Dirk Mueller <dmuel...@suse.com>
+
+- update to 2.0.34:
+  - Fix the test ``length == 0`` in ``check_content_type``.
+  - Treat ``<input type="search">`` like ``<input type="text">``.
+  - Handle query parameters for the ``head`` method.
+
+-------------------------------------------------------------------

Old:
----
  WebTest-2.0.33.tar.gz

New:
----
  WebTest-2.0.34.tar.gz

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

Other differences:
------------------
++++++ python-WebTest.spec ++++++
--- /var/tmp/diff_new_pack.DkyKOA/_old  2020-03-27 00:24:14.660224798 +0100
+++ /var/tmp/diff_new_pack.DkyKOA/_new  2020-03-27 00:24:14.664224800 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-WebTest
 #
-# 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
@@ -20,7 +20,7 @@
 %define oldpython python
 %bcond_without tests
 Name:           python-WebTest
-Version:        2.0.33
+Version:        2.0.34
 Release:        0
 Summary:        Helper to test WSGI applications
 License:        MIT

++++++ WebTest-2.0.33.tar.gz -> WebTest-2.0.34.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebTest-2.0.33/CHANGELOG.rst 
new/WebTest-2.0.34/CHANGELOG.rst
--- old/WebTest-2.0.33/CHANGELOG.rst    2019-02-09 19:18:31.000000000 +0100
+++ new/WebTest-2.0.34/CHANGELOG.rst    2020-01-29 09:48:17.000000000 +0100
@@ -1,6 +1,16 @@
 News
 ====
 
+2.0.34 (2020-01-29)
+-------------------
+
+- Fix the test ``length == 0`` in ``check_content_type``.
+
+- Treat ``<input type="search">`` like ``<input type="text">``.
+
+- Handle query parameters for the ``head`` method.
+
+
 2.0.33 (2019-02-09)
 -------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebTest-2.0.33/PKG-INFO new/WebTest-2.0.34/PKG-INFO
--- old/WebTest-2.0.33/PKG-INFO 2019-02-09 19:18:31.000000000 +0100
+++ new/WebTest-2.0.34/PKG-INFO 2020-01-29 09:48:17.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: WebTest
-Version: 2.0.33
+Version: 2.0.34
 Summary: Helper to test WSGI applications
 Home-page: https://docs.pylonsproject.org/projects/webtest/en/latest/
 Author: Ian Bicking
@@ -30,10 +30,8 @@
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-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
-Provides-Extra: docs
 Provides-Extra: tests
+Provides-Extra: docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebTest-2.0.33/WebTest.egg-info/PKG-INFO 
new/WebTest-2.0.34/WebTest.egg-info/PKG-INFO
--- old/WebTest-2.0.33/WebTest.egg-info/PKG-INFO        2019-02-09 
19:18:31.000000000 +0100
+++ new/WebTest-2.0.34/WebTest.egg-info/PKG-INFO        2020-01-29 
09:48:17.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: WebTest
-Version: 2.0.33
+Version: 2.0.34
 Summary: Helper to test WSGI applications
 Home-page: https://docs.pylonsproject.org/projects/webtest/en/latest/
 Author: Ian Bicking
@@ -30,10 +30,8 @@
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-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
-Provides-Extra: docs
 Provides-Extra: tests
+Provides-Extra: docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebTest-2.0.33/docs/changelog.rst 
new/WebTest-2.0.34/docs/changelog.rst
--- old/WebTest-2.0.33/docs/changelog.rst       2019-02-09 19:18:31.000000000 
+0100
+++ new/WebTest-2.0.34/docs/changelog.rst       2020-01-29 09:48:17.000000000 
+0100
@@ -1,6 +1,16 @@
 News
 ====
 
+2.0.34 (2020-01-29)
+-------------------
+
+- Fix the test ``length == 0`` in ``check_content_type``.
+
+- Treat ``<input type="search">`` like ``<input type="text">``.
+
+- Handle query parameters for the ``head`` method.
+
+
 2.0.33 (2019-02-09)
 -------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebTest-2.0.33/setup.py new/WebTest-2.0.34/setup.py
--- old/WebTest-2.0.33/setup.py 2019-02-09 19:18:31.000000000 +0100
+++ new/WebTest-2.0.34/setup.py 2020-01-29 09:48:17.000000000 +0100
@@ -1,11 +1,9 @@
 #!/usr/bin/env python
 
-import sys
-
 from setuptools import setup
 from setuptools import find_packages
 
-version = '2.0.33'
+version = '2.0.34'
 
 install_requires = [
     'six',
@@ -39,8 +37,6 @@
           "Programming Language :: Python :: 2",
           "Programming Language :: Python :: 2.7",
           "Programming Language :: Python :: 3",
-          "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/WebTest-2.0.33/tox.ini new/WebTest-2.0.34/tox.ini
--- old/WebTest-2.0.33/tox.ini  2019-02-09 19:18:31.000000000 +0100
+++ new/WebTest-2.0.34/tox.ini  2020-01-29 09:48:17.000000000 +0100
@@ -1,6 +1,6 @@
 [tox]
 skip_missing_interpreters=true
-envlist=py27,py34,py35,py36,py37,coverage,docs
+envlist=py27,py35,py36,py37,coverage,docs
 
 [testenv]
 skip_install=true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebTest-2.0.33/webtest/app.py 
new/WebTest-2.0.34/webtest/app.py
--- old/WebTest-2.0.33/webtest/app.py   2019-02-09 19:18:31.000000000 +0100
+++ new/WebTest-2.0.34/webtest/app.py   2020-01-29 09:48:17.000000000 +0100
@@ -26,7 +26,6 @@
 from six.moves import http_cookiejar
 
 from webtest.compat import urlparse
-from webtest.compat import urlencode
 from webtest.compat import to_bytes
 from webtest.compat import escape_cookie_value
 from webtest.response import TestResponse
@@ -315,13 +314,7 @@
         url = str(url)
         url = self._remove_fragment(url)
         if params:
-            if not isinstance(params, string_types):
-                params = urlencode(params, doseq=True)
-            if str('?') in url:
-                url += str('&')
-            else:
-                url += str('?')
-            url += params
+            url = utils.build_params(url, params)
         if str('?') in url:
             url, environ['QUERY_STRING'] = url.split(str('?'), 1)
         else:
@@ -448,7 +441,7 @@
                                  upload_files=None,
                                  expect_errors=expect_errors)
 
-    def head(self, url, headers=None, extra_environ=None,
+    def head(self, url, params=None, headers=None, extra_environ=None,
              status=None, expect_errors=False, xhr=False):
         """
         Do a HEAD request. Similar to :meth:`~webtest.TestApp.get`.
@@ -456,6 +449,8 @@
         :returns: :class:`webtest.TestResponse` instance.
 
         """
+        if params:
+            url = utils.build_params(url, params)
         if xhr:
             headers = self._add_xhr_header(headers)
         return self._gen_request('HEAD', url, headers=headers,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebTest-2.0.33/webtest/forms.py 
new/WebTest-2.0.34/webtest/forms.py
--- old/WebTest-2.0.33/webtest/forms.py 2019-02-09 19:18:31.000000000 +0100
+++ new/WebTest-2.0.34/webtest/forms.py 2020-01-29 09:48:17.000000000 +0100
@@ -356,6 +356,8 @@
 
 Field.classes['text'] = Text
 
+Field.classes['search'] = Text
+
 Field.classes['email'] = Email
 
 Field.classes['password'] = Text
@@ -409,7 +411,7 @@
 
     _tag_re = re.compile(r'<(/?)([a-z0-9_\-]*)([^>]*?)>', re.I)
     _label_re = re.compile(
-        '''<label\s+(?:[^>]*)for=(?:"|')([a-z0-9_\-]+)(?:"|')(?:[^>]*)>''',
+        r'''<label\s+(?:[^>]*)for=(?:"|')([a-z0-9_\-]+)(?:"|')(?:[^>]*)>''',
         re.I)
 
     FieldClass = Field
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebTest-2.0.33/webtest/lint.py 
new/WebTest-2.0.34/webtest/lint.py
--- old/WebTest-2.0.33/webtest/lint.py  2019-02-09 19:18:31.000000000 +0100
+++ new/WebTest-2.0.34/webtest/lint.py  2020-01-29 09:48:17.000000000 +0100
@@ -515,7 +515,7 @@
         if bad_header_value_re.search(value):
             raise AssertionError(
                 "Bad header value: %r (bad char: %r)"
-                % (str_value, bad_header_value_re.search(value).group(0))
+                % (value, bad_header_value_re.search(value).group(0))
             )
 
 
@@ -534,7 +534,7 @@
         if name.lower() == 'content-type':
             if code not in NO_MESSAGE_TYPE:
                 return
-            elif length == 0:
+            elif not length:
                 warnings.warn(("Content-Type header found in a %s response, "
                                "which not return content.") % code,
                               WSGIWarning)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebTest-2.0.33/webtest/utils.py 
new/WebTest-2.0.34/webtest/utils.py
--- old/WebTest-2.0.33/webtest/utils.py 2019-02-09 19:18:31.000000000 +0100
+++ new/WebTest-2.0.34/webtest/utils.py 2020-01-29 09:48:17.000000000 +0100
@@ -80,6 +80,17 @@
     return params
 
 
+def build_params(url, params):
+    if not isinstance(params, six.string_types):
+        params = urlencode(params, doseq=True)
+    if str('?') in url:
+        url += str('&')
+    else:
+        url += str('?')
+    url += params
+    return url
+
+
 def make_pattern(pat):
     """Find element pattern can be a regex or a callable."""
     if pat is None:


Reply via email to