From 9e2ed22657713847f2db1f0da046ff91268ed29e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Mon, 28 Mar 2022 21:30:52 +0200 Subject: [PATCH] - 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 -- 2.43.0