From f386a100e53d2e58e0ecd9d29c3359d6ed04e2d6 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Fri, 11 Mar 2022 23:04:18 +0100 Subject: [PATCH] - disable pytest plugins --- python-pluggy.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-pluggy.spec b/python-pluggy.spec index 04a3be5..a118574 100644 --- a/python-pluggy.spec +++ b/python-pluggy.spec @@ -9,6 +9,7 @@ Summary: Plugin and hook calling mechanisms for Python Summary(pl.UTF-8): Mechanizmy wtyczek dla Pythona Name: python-%{module} +# keep 0.13.x here for python2 support Version: 0.13.1 Release: 2 License: MIT @@ -87,6 +88,7 @@ Dokumentacja API modułu Pythona pluggy. %py_build %if %{with tests} +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ PYTHONPATH=$(pwd)/src \ %{__python} -m pytest testing %endif @@ -96,13 +98,15 @@ PYTHONPATH=$(pwd)/src \ %py3_build %if %{with tests} +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ PYTHONPATH=$(pwd)/src \ %{__python3} -m pytest testing %endif %endif %if %{with doc} -PYTHONPATH="$PWD/src" sphinx-build -b html docs docs/_build/html +PYTHONPATH="$PWD/src" \ +sphinx-build -b html docs docs/_build/html %endif %install -- 2.44.0