diff --git a/WSGIProxy2-0.4.3.tar.gz b/WSGIProxy2-0.4.3.tar.gz deleted file mode 100644 index 2db3c03..0000000 --- a/WSGIProxy2-0.4.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dc3e356d271f22ea2fb447038930150b221e8432a8b016ebd7397be28ead1707 -size 16342 diff --git a/WSGIProxy2-0.4.6.tar.gz b/WSGIProxy2-0.4.6.tar.gz new file mode 100644 index 0000000..dd4d261 --- /dev/null +++ b/WSGIProxy2-0.4.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cee2a64abc193cc96c7ff1208b709335e9a4d1316ce84b91501102166d814c9a +size 16481 diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-WSGIProxy2.changes b/python-WSGIProxy2.changes index e57dd62..191154f 100644 --- a/python-WSGIProxy2.changes +++ b/python-WSGIProxy2.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Mar 6 10:44:27 UTC 2019 - Tomáš Chvátal + +- 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 + ------------------------------------------------------------------- Tue Dec 4 12:56:09 UTC 2018 - Matej Cepl diff --git a/python-WSGIProxy2.spec b/python-WSGIProxy2.spec index d1e1c7d..52858e9 100644 --- a/python-WSGIProxy2.spec +++ b/python-WSGIProxy2.spec @@ -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 @@ Proxy support for WebOb or classic WSGI applications %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