[packages/python3-build] Build docs

arekm arekm at pld-linux.org
Sat Feb 8 16:54:00 CET 2025


commit 78af2c6bd4b603f2295140c13365e25e40841bc2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Feb 8 16:20:16 2025 +0100

    Build docs

 python3-build.spec | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/python3-build.spec b/python3-build.spec
index 7912096..6b53951 100644
--- a/python3-build.spec
+++ b/python3-build.spec
@@ -22,8 +22,7 @@ BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 2.044
 %if %{with doc}
 BuildRequires:	sphinx-pdg-3
-# or
-BuildRequires:	python3-tox
+BuildRequires:	python3-sphinx_argparse_cli
 %endif
 Requires:	python3-modules >= 1:3.2
 BuildArch:	noarch
@@ -56,13 +55,10 @@ PYTEST_PLUGINS=rerunfailures,pytest_mock \
 %endif
 
 %if %{with doc}
-%{__make} -C docs html \
-	SPHINXBUILD=sphinx-build-3
+cd docs
+sphinx-build-3 -b html -d _build/doctrees   . _build/html
+cd ..
 rm -rf docs/_build/html/_sources
-
-# or
-
-%{_bindir}/tox -e docs
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-build.git/commitdiff/78af2c6bd4b603f2295140c13365e25e40841bc2



More information about the pld-cvs-commit mailing list