Hello community,

here is the log from the commit of package python-WSGIProxy2 for 
openSUSE:Factory checked in at 2019-03-08 11:01:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-WSGIProxy2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-WSGIProxy2.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-WSGIProxy2"

Fri Mar  8 11:01:04 2019 rev:10 rq:682100 version:0.4.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-WSGIProxy2/python-WSGIProxy2.changes      
2018-12-13 19:45:09.532956774 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-WSGIProxy2.new.28833/python-WSGIProxy2.changes
   2019-03-08 11:01:05.652543745 +0100
@@ -1,0 +2,10 @@
+Wed Mar  6 10:44:27 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- Update to 0.4.6:
+  * PATCH added into (default) list of allowed methods
+  * Allow to use URIs with no path
+  * Clean up connection before returning result. This removes some 
ResourceWarnings when testing
+- Add multibuild to enable tests without cycle dependencies
+- Add missing requirements found by tests
+
+-------------------------------------------------------------------

Old:
----
  WSGIProxy2-0.4.3.tar.gz

New:
----
  WSGIProxy2-0.4.6.tar.gz
  _multibuild

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

Other differences:
------------------
++++++ python-WSGIProxy2.spec ++++++
--- /var/tmp/diff_new_pack.MhtMT3/_old  2019-03-08 11:01:06.116543671 +0100
+++ /var/tmp/diff_new_pack.MhtMT3/_new  2019-03-08 11:01:06.116543671 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-WSGIProxy2
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,25 +17,37 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-# Tests have dependency loop with python-WebTest
-%bcond_with tests
-Name:           python-WSGIProxy2
-Version:        0.4.3
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+Name:           python-WSGIProxy2%{psuffix}
+Version:        0.4.6
 Release:        0
 Summary:        WSGI Proxy Implementation
 License:        MIT
 Group:          Development/Languages/Python
 URL:            https://github.com/gawel/WSGIProxy2/
 Source:         
https://files.pythonhosted.org/packages/source/W/WSGIProxy2/WSGIProxy2-%{version}.tar.gz
-BuildRequires:  %{python_module WebOb}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module six}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       python-WebOb
+Requires:       python-requests
+Requires:       python-six
+Requires:       python-urllib3
 Conflicts:      python-WSGIProxy
 BuildArch:      noarch
-%if %{with tests}
+%if %{with test}
+BuildRequires:  %{python_module WebOb}
 BuildRequires:  %{python_module WebTest}
+BuildRequires:  %{python_module requests}
+BuildRequires:  %{python_module six}
+BuildRequires:  %{python_module urllib3}
 %endif
 %python_subpackages
 
@@ -49,17 +61,21 @@
 %python_build
 
 %install
+%if !%{with test}
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
 
-%if %{with tests}
 %check
+%if %{with test}
 %python_exec setup.py test
 %endif
 
+%if !%{with test}
 %files %{python_files}
 %license COPYING
 %doc CHANGES.rst README.rst
 %{python_sitelib}/*
+%endif
 
 %changelog

++++++ WSGIProxy2-0.4.3.tar.gz -> WSGIProxy2-0.4.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSGIProxy2-0.4.3/CHANGES.rst 
new/WSGIProxy2-0.4.6/CHANGES.rst
--- old/WSGIProxy2-0.4.3/CHANGES.rst    2017-02-17 08:47:40.000000000 +0100
+++ new/WSGIProxy2-0.4.6/CHANGES.rst    2019-02-22 13:08:28.000000000 +0100
@@ -1,6 +1,25 @@
 Changes
 =======
 
+0.4.6 (2019-02-22)
+------------------
+
+- PATCH added into (default) list of allowed methods
+
+
+0.4.5 (2018-09-19)
+------------------
+
+- Allow to use URIs with no path
+
+
+0.4.4 (2017-06-02)
+------------------
+
+- Clean up connection before returning result. This removes some
+  ResourceWarnings when testing
+
+
 0.4.3 (2017-02-17)
 ------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSGIProxy2-0.4.3/PKG-INFO 
new/WSGIProxy2-0.4.6/PKG-INFO
--- old/WSGIProxy2-0.4.3/PKG-INFO       2017-02-17 08:47:41.000000000 +0100
+++ new/WSGIProxy2-0.4.6/PKG-INFO       2019-02-22 13:08:29.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: WSGIProxy2
-Version: 0.4.3
+Version: 0.4.6
 Summary: A WSGI Proxy with various http client backends
 Home-page: https://github.com/gawel/WSGIProxy2/
 Author: Gael Pasgrimaud
@@ -60,6 +60,25 @@
         Changes
         =======
         
+        0.4.6 (2019-02-22)
+        ------------------
+        
+        - PATCH added into (default) list of allowed methods
+        
+        
+        0.4.5 (2018-09-19)
+        ------------------
+        
+        - Allow to use URIs with no path
+        
+        
+        0.4.4 (2017-06-02)
+        ------------------
+        
+        - Clean up connection before returning result. This removes some
+          ResourceWarnings when testing
+        
+        
         0.4.3 (2017-02-17)
         ------------------
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSGIProxy2-0.4.3/WSGIProxy2.egg-info/PKG-INFO 
new/WSGIProxy2-0.4.6/WSGIProxy2.egg-info/PKG-INFO
--- old/WSGIProxy2-0.4.3/WSGIProxy2.egg-info/PKG-INFO   2017-02-17 
08:47:41.000000000 +0100
+++ new/WSGIProxy2-0.4.6/WSGIProxy2.egg-info/PKG-INFO   2019-02-22 
13:08:28.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: WSGIProxy2
-Version: 0.4.3
+Version: 0.4.6
 Summary: A WSGI Proxy with various http client backends
 Home-page: https://github.com/gawel/WSGIProxy2/
 Author: Gael Pasgrimaud
@@ -60,6 +60,25 @@
         Changes
         =======
         
+        0.4.6 (2019-02-22)
+        ------------------
+        
+        - PATCH added into (default) list of allowed methods
+        
+        
+        0.4.5 (2018-09-19)
+        ------------------
+        
+        - Allow to use URIs with no path
+        
+        
+        0.4.4 (2017-06-02)
+        ------------------
+        
+        - Clean up connection before returning result. This removes some
+          ResourceWarnings when testing
+        
+        
         0.4.3 (2017-02-17)
         ------------------
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSGIProxy2-0.4.3/setup.cfg 
new/WSGIProxy2-0.4.6/setup.cfg
--- old/WSGIProxy2-0.4.3/setup.cfg      2017-02-17 08:47:41.000000000 +0100
+++ new/WSGIProxy2-0.4.6/setup.cfg      2019-02-22 13:08:29.000000000 +0100
@@ -12,5 +12,4 @@
 [egg_info]
 tag_build = 
 tag_date = 0
-tag_svn_revision = 0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSGIProxy2-0.4.3/setup.py 
new/WSGIProxy2-0.4.6/setup.py
--- old/WSGIProxy2-0.4.3/setup.py       2017-02-17 08:47:40.000000000 +0100
+++ new/WSGIProxy2-0.4.6/setup.py       2019-02-22 13:08:28.000000000 +0100
@@ -1,6 +1,6 @@
 from setuptools import setup, find_packages
 
-version = '0.4.3'
+version = '0.4.6'
 
 
 def read(name):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WSGIProxy2-0.4.3/wsgiproxy/proxies.py 
new/WSGIProxy2-0.4.6/wsgiproxy/proxies.py
--- old/WSGIProxy2-0.4.3/wsgiproxy/proxies.py   2017-02-17 08:47:40.000000000 
+0100
+++ new/WSGIProxy2-0.4.6/wsgiproxy/proxies.py   2019-02-22 13:08:28.000000000 
+0100
@@ -23,7 +23,7 @@
 
 ABSOLUTE_URL_RE = re.compile(r"^https?://", re.I)
 
-ALLOWED_METHODS = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'OPTIONS']
+ALLOWED_METHODS = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'OPTIONS', 'PATCH']
 
 WEBOB_ERROR = (
     "Content-Length is set to -1. This usually mean that WebOb has "
@@ -67,7 +67,11 @@
         ConnClass = ssl and self.HTTPSConnection or self.HTTPConnection
         uri = ssl and uri[8:] or uri[7:]
         port = ssl and 443 or 80
-        host, path = uri.split('/', 1)
+        try:
+            host, path = uri.split('/', 1)
+        except ValueError:
+            host = uri
+            path = ''
         path = '/' + path
         if ':' in host:
             host, port = host.split(':')
@@ -83,8 +87,10 @@
         status = '%s %s' % (response.status, response.reason)
         length = response.getheader('content-length')
         body = response.read(int(length)) if length else response.read()
-        return (status, response.getheader('location', None),
-                response.getheaders(), [body])
+        result = (status, response.getheader('location', None),
+                  response.getheaders(), [body])
+        conn.close()
+        return result
 
 
 class Proxy(object):

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>

Reply via email to