forked from pool/python-WSGIProxy2
- 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 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WSGIProxy2?expand=0&rev=19
This commit is contained in:
committed by
Git OBS Bridge
parent
da525e6696
commit
4ce213ecb5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user