[packages/python-requests] - fix tests bcond, rel 4

baggins baggins at pld-linux.org
Mon Mar 28 21:31:28 CEST 2022


commit 9e2ed22657713847f2db1f0da046ff91268ed29e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Mar 28 21:30:52 2022 +0200

    - fix tests bcond, rel 4

 python-requests.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/python-requests.spec b/python-requests.spec
index 7d76b8f..19d5c31 100644
--- a/python-requests.spec
+++ b/python-requests.spec
@@ -11,7 +11,7 @@ Summary:	HTTP library for Python 2
 Summary(pl.UTF-8):	Biblioteka HTTP dla Pythona 2
 Name:		python-%{module}
 Version:	2.26.0
-Release:	3
+Release:	4
 License:	Apache v2.0
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.org/simple/requests/
@@ -139,18 +139,22 @@ Ten pakiet zawiera moduł dla Pythona 3.x.
 %if %{with python2}
 %py_build
 
+%if %{with tests}
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTEST_PLUGINS="pytest_httpbin.plugin,pytest_mock" \
 %{__python} -m pytest tests
 %endif
+%endif
 
 %if %{with python3}
 %py3_build
 
+%if %{with tests}
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTEST_PLUGINS="pytest_httpbin.plugin,pytest_mock" \
 %{__python3} -m pytest tests
 %endif
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-requests.git/commitdiff/9e2ed22657713847f2db1f0da046ff91268ed29e



More information about the pld-cvs-commit mailing list