forked from pool/python-requests-mock
Accepting request 701322 from home:pgajdos
- version update to 1.6.0 * Respect user provided content encoding type * Update minimum requests version to 2.3 * Add testing for Python 3.7 & PyPy3 * Drop \_matcher from request pickled state * Clarify the pytest configuration documentation OBS-URL: https://build.opensuse.org/request/show/701322 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=32
This commit is contained in:
committed by
Git OBS Bridge
parent
0349cb3d07
commit
c701d9f6f2
@@ -17,9 +17,8 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-requests-mock
|
||||
Version: 1.5.2
|
||||
Version: 1.6.0
|
||||
Release: 0
|
||||
Summary: Mock out responses from the requests package
|
||||
License: Apache-2.0
|
||||
@@ -36,7 +35,7 @@ BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module testrepository >= 0.0.18}
|
||||
BuildRequires: %{python_module testtools}
|
||||
BuildRequires: fdupes
|
||||
Requires: python-requests >= 1.1
|
||||
Requires: python-requests >= 2.3
|
||||
Requires: python-six
|
||||
BuildArch: noarch
|
||||
%ifpython3
|
||||
@@ -59,16 +58,16 @@ You should checkout the docs for more information.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/mymodule
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
mv .testr.conf .testr.conf.orig
|
||||
# purl optional dependency is missing at time of writing (2019-05-07)
|
||||
rm ./tests/test_adapter.py
|
||||
%{python_expand # first line can't be empty
|
||||
rm -rf .testrepository
|
||||
sed 's/python/$python/' .testr.conf.orig >| .testr.conf
|
||||
testr init
|
||||
testr run --parallel
|
||||
}
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
Reference in New Issue
Block a user