[packages/python-pytest-timeout] - explicit pytest plugins list

qboosh qboosh at pld-linux.org
Sat Jun 28 18:02:09 CEST 2025


commit eb4927fdc4e500c6355404f34b7a6d3dcb1bd337
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 28 18:03:26 2025 +0200

    - explicit pytest plugins list

 python-pytest-timeout.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/python-pytest-timeout.spec b/python-pytest-timeout.spec
index 8136e1c..6f2647b 100644
--- a/python-pytest-timeout.spec
+++ b/python-pytest-timeout.spec
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_with	tests	# py.test tests [use ptys, so not on builders]
+%bcond_with	tests	# pytest tests [use ptys, so not on builders]
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 
@@ -23,6 +23,7 @@ BuildRequires:	python-setuptools
 %if %{with tests}
 BuildRequires:	python-pexpect
 BuildRequires:	python-pytest >= 3.6.0
+BuildRequires:	python-pytest-cov
 %endif
 %endif
 %if %{with python3}
@@ -31,6 +32,7 @@ BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-pexpect
 BuildRequires:	python3-pytest >= 3.6.0
+BuildRequires:	python3-pytest-cov
 %endif
 %endif
 BuildRequires:	rpm-pythonprov
@@ -77,6 +79,8 @@ integracji lub jeśli nie wiemy, dlaczego testy się zawieszają.
 %py_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_cov.plugin,pytest_timeout \
 PYTHONPATH=$(pwd) \
 %{__python} -m pytest
 %endif
@@ -86,6 +90,8 @@ PYTHONPATH=$(pwd) \
 %py3_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_cov.plugin,pytest_timeout \
 PYTHONPATH=$(pwd) \
 %{__python3} -m pytest
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pytest-timeout.git/commitdiff/eb4927fdc4e500c6355404f34b7a6d3dcb1bd337



More information about the pld-cvs-commit mailing list