]> git.pld-linux.org Git - packages/python3-requests.git/commitdiff
- fix tests bcond, rel 4
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 28 Mar 2022 19:30:52 +0000 (21:30 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 28 Mar 2022 19:30:52 +0000 (21:30 +0200)
python-requests.spec

index 7d76b8f8ba8a527caf62b4844764acba3daa003b..19d5c3160315280abd5d7ad37f286cb4629f65ce 100644 (file)
@@ -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
This page took 0.10156 seconds and 4 git commands to generate.