[packages/python-pluggy] - disable pytest plugins

qboosh qboosh at pld-linux.org
Fri Mar 11 23:02:22 CET 2022


commit f386a100e53d2e58e0ecd9d29c3359d6ed04e2d6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Mar 11 23:04:18 2022 +0100

    - 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pluggy.git/commitdiff/f386a100e53d2e58e0ecd9d29c3359d6ed04e2d6



More information about the pld-cvs-commit mailing list