forked from pool/python-requests
- Do not hardcode version requirements in setup.py allowing us to
update and verify functionality on our own: * requests-no-hardcoded-version.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=128
This commit is contained in:
committed by
Git OBS Bridge
parent
671ee91793
commit
1a4a56e41c
@@ -33,6 +33,8 @@ License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: http://python-requests.org/
|
||||
Source: https://files.pythonhosted.org/packages/source/r/requests/requests-%{version}.tar.gz
|
||||
# PATCH-FIX-SUSE: do not hardcode versions in setup.py/requirements
|
||||
Patch0: requests-no-hardcoded-version.patch
|
||||
BuildRequires: %{python_module certifi}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module urllib3 >= 1.21.1}
|
||||
@@ -61,6 +63,7 @@ Recommends: python-pyOpenSSL >= 0.14
|
||||
%endif
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module PySocks >= 1.5.6}
|
||||
BuildRequires: %{python_module brotlipy}
|
||||
BuildRequires: %{python_module chardet >= 3.0.2}
|
||||
BuildRequires: %{python_module idna >= 2.5}
|
||||
BuildRequires: %{python_module pytest-httpbin >= 0.0.7}
|
||||
@@ -90,6 +93,7 @@ Features of Requests:
|
||||
|
||||
%prep
|
||||
%setup -q -n requests-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
# drop shebang from certs.py
|
||||
sed -i '1s/^#!.*$//' requests/certs.py
|
||||
@@ -116,7 +120,7 @@ test ! -e %{buildroot}%{python3_sitelib}/requests/packages/urllib3
|
||||
touch Pipfile
|
||||
# exclude tests connecting to TARPIT
|
||||
# exclude test_https_warnings as is flaky
|
||||
%python_exec -m pytest tests -k "not (TestTimeout or connect or test_https_warnings)"
|
||||
%python_exec -m pytest -v tests -k "not (TestTimeout or connect or test_https_warnings)"
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
|
Reference in New Issue
Block a user