[packages/python-sure] - use modern test target (not that it helps broken tests, tho :/)

baggins baggins at pld-linux.org
Sun Apr 27 22:31:15 CEST 2025


commit e4740bd50ffa658b351e29353e82d3270768fb7a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Apr 28 00:28:16 2025 +0200

    - use modern test target (not that it helps broken tests, tho :/)

 python-sure.spec | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/python-sure.spec b/python-sure.spec
index 2845fd7..a0ba3b0 100644
--- a/python-sure.spec
+++ b/python-sure.spec
@@ -74,7 +74,14 @@ jest znacząco zainspirowany should.js.
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest tests
+%endif
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sure.git/commitdiff/e4740bd50ffa658b351e29353e82d3270768fb7a



More information about the pld-cvs-commit mailing list