[packages/python3-installer] Build docs
arekm
arekm at pld-linux.org
Sat Feb 8 16:55:52 CET 2025
commit 43c6da781ad01bb9934bcb3cb8fb57574569a301
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Feb 8 16:22:23 2025 +0100
Build docs
python3-installer.spec | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/python3-installer.spec b/python3-installer.spec
index b4efb67..00f20cc 100644
--- a/python3-installer.spec
+++ b/python3-installer.spec
@@ -21,14 +21,10 @@ BuildRequires: python3-modules >= 1:3.2
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 2.044
-# when using /usr/bin/env or other in-place substitutions
-#BuildRequires: sed >= 4.0
%if %{with doc}
BuildRequires: sphinx-pdg-3
-# or
-BuildRequires: python3-tox
+BuildRequires: python3-sphinx_argparse_cli
%endif
-# replace with other requires if defined in setup.py
Requires: python3-modules >= 1:3.2
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -56,15 +52,15 @@ Dokumentacja API modułu Pythona %{module}.
%py3_build_pyproject
%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
%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
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-installer.git/commitdiff/43c6da781ad01bb9934bcb3cb8fb57574569a301
More information about the pld-cvs-commit
mailing list