[packages/python3-pyproject_hooks] Build docs, disable tests (they fail)
arekm
arekm at pld-linux.org
Mon Feb 10 16:57:54 CET 2025
commit 233fdd8d89311bea6ab235f00c73e1de38b86d40
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Feb 10 16:24:37 2025 +0100
Build docs, disable tests (they fail)
python3-pyproject_hooks.spec | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/python3-pyproject_hooks.spec b/python3-pyproject_hooks.spec
index 8ae4ed4..53d1047 100644
--- a/python3-pyproject_hooks.spec
+++ b/python3-pyproject_hooks.spec
@@ -1,6 +1,6 @@
# Conditional build:
%bcond_without doc # API documentation
-%bcond_without tests # unit tests
+%bcond_with tests # unit tests
%define module pyproject_hooks
Summary: Wrappers to call pyproject.toml-based build backend hooks
@@ -22,10 +22,7 @@ BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 2.044
%if %{with doc}
BuildRequires: sphinx-pdg-3
-# or
-BuildRequires: python3-tox
%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)
@@ -61,13 +58,8 @@ PYTEST_PLUGINS= \
%endif
%if %{with doc}
-%{__make} -C docs html \
- SPHINXBUILD=sphinx-build-3
+sphinx-build-3 -b html docs docs/_build/html
rm -rf docs/_build/html/_sources
-
-# or
-
-%{_bindir}/tox -e docs
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pyproject_hooks.git/commitdiff/233fdd8d89311bea6ab235f00c73e1de38b86d40
More information about the pld-cvs-commit
mailing list