[packages/python-characteristic] - updated pytest and sphinx invocation

qboosh qboosh at pld-linux.org
Sat Jun 28 21:48:23 CEST 2025


commit bca5664fff6fd422969c0a2bed6c8048cf0476c0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 28 21:49:47 2025 +0200

    - updated pytest and sphinx invocation

 python-characteristic.spec | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/python-characteristic.spec b/python-characteristic.spec
index fd20642..8dde134 100644
--- a/python-characteristic.spec
+++ b/python-characteristic.spec
@@ -34,7 +34,7 @@ BuildRequires:	python-pytest
 %endif
 %endif
 %if %{with doc}
-BuildRequires:	sphinx-pdg
+BuildRequires:	sphinx-pdg-2
 %endif
 Requires:	python-modules >= 1:2.6
 BuildArch:	noarch
@@ -123,16 +123,28 @@ Dokumentacja API modułu Pythona characteristic.
 
 %build
 %if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python} -m pytest test_characteristic.py
+%endif
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest test_characteristic.py
+%endif
 %endif
 
 %if %{with doc}
+# use old sphinx for now because of incompatible intersphinx mappings
 PYTHONPATH=$(pwd) \
-%{__make} -C docs html
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-2
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-characteristic.git/commitdiff/bca5664fff6fd422969c0a2bed6c8048cf0476c0



More information about the pld-cvs-commit mailing list