[packages/python3-sphinx_argparse_cli] - tests are very broken, disable them
baggins
baggins at pld-linux.org
Sun Mar 16 22:48:07 CET 2025
commit bf52ae91123cb1580cc4adb2a3edf5d2d8de886e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Mar 16 23:47:04 2025 +0100
- tests are very broken, disable them
python3-sphinx_argparse_cli.spec | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/python3-sphinx_argparse_cli.spec b/python3-sphinx_argparse_cli.spec
index aa01f3b..7d884f0 100644
--- a/python3-sphinx_argparse_cli.spec
+++ b/python3-sphinx_argparse_cli.spec
@@ -1,6 +1,6 @@
#
# Conditional build:
-%bcond_without tests # unit tests
+%bcond_with tests # unit tests
Summary: Render CLI arguments (sub-commands friendly) defined by argparse module
Name: python3-sphinx_argparse_cli
@@ -37,7 +37,11 @@ and mdpo.
%py3_build_pyproject
%if %{with tests}
-%{__python3} -m pytest tests
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinx_argparse_cli.git/commitdiff/bf52ae91123cb1580cc4adb2a3edf5d2d8de886e
More information about the pld-cvs-commit
mailing list