forked from pool/python-wsgi_intercept
- Update to 1.8.1:
* Fixes issues with latest urllib OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wsgi_intercept?expand=0&rev=40
This commit is contained in:
committed by
Git OBS Bridge
parent
1c86082f2e
commit
95bdcf5883
@@ -18,31 +18,29 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-wsgi_intercept
|
||||
Version: 1.8.0
|
||||
Version: 1.8.1
|
||||
Release: 0
|
||||
Summary: Installs a WSGI application in place of a real URI for testing
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/cdent/python3-wsgi-intercept
|
||||
Source: https://pypi.io/packages/source/w/wsgi_intercept/wsgi_intercept-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
# Test requirements:
|
||||
URL: https://github.com/cdent/python3-wsgi-intercept
|
||||
Source: https://files.pythonhosted.org/packages/source/w/wsgi_intercept/wsgi_intercept-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module httplib2}
|
||||
BuildRequires: %{python_module pytest >= 2.4}
|
||||
BuildRequires: %{python_module requests >= 2.0.1}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module urllib3 >= 1.11.0}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-six
|
||||
BuildArch: noarch
|
||||
%if 0%{?_no_weakdeps}
|
||||
Requires: python-requests >= 2.0.1
|
||||
%else
|
||||
Recommends: python-requests >= 2.0.1
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -54,9 +52,6 @@ can avoid spawning multiple processes or threads to test your Web app.
|
||||
|
||||
%prep
|
||||
%setup -q -n wsgi_intercept-%{version}
|
||||
%if 0%{?suse_version} == 1230
|
||||
%patch0 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -68,7 +63,7 @@ rm -r %{buildroot}%{python_sitelib}/wsgi_intercept/tests
|
||||
|
||||
%check
|
||||
export WSGI_INTERCEPT_SKIP_NETWORK=true
|
||||
%python_exec -m pytest --ignore _build.python2 --ignore _build.python3
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/wsgi_intercept-%{version}-py%{py_ver}.egg-info
|
||||
|
Reference in New Issue
Block a user