]> git.pld-linux.org Git - packages/python-pluggy.git/commitdiff
- disable pytest plugins
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 11 Mar 2022 22:04:18 +0000 (23:04 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 11 Mar 2022 22:04:18 +0000 (23:04 +0100)
python-pluggy.spec

index 04a3be5ca4fe5331a1a848e99645a56d4d286dd3..a1185747c2049e7c8ae9dfa2b737c40ffab6d64a 100644 (file)
@@ -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
This page took 0.13172 seconds and 4 git commands to generate.