[packages/python3-repoze.sphinx.autointerface] - added tests
qboosh
qboosh at pld-linux.org
Wed Apr 16 21:24:16 CEST 2025
commit 871547155cad5a1281f9ae0a32b6d1b470217254
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Apr 16 21:16:08 2025 +0200
- added tests
python3-repoze.sphinx.autointerface.spec | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/python3-repoze.sphinx.autointerface.spec b/python3-repoze.sphinx.autointerface.spec
index 0ee57a0..9571ba7 100644
--- a/python3-repoze.sphinx.autointerface.spec
+++ b/python3-repoze.sphinx.autointerface.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
Summary: Sphinx extension: auto-generate API docs from Zope interfaces
Summary(pl.UTF-8): Rozszerzenie Sphinksa: automatyczne generowanie dokumentacji API z interfejsów Zope
Name: python3-repoze.sphinx.autointerface
@@ -11,6 +15,11 @@ Source0: https://files.pythonhosted.org/packages/source/r/repoze.sphinx.autointe
URL: https://pypi.org/project/repoze.sphinx.autointerface/
BuildRequires: python3-modules >= 1:3.6
BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-Sphinx >= 4.0
+BuildRequires: python3-zope.interface
+BuildRequires: python3-zope.testrunner
+%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
Requires: python3-modules >= 1:3.6
@@ -33,6 +42,11 @@ zope.interface w kodzie.
%build
%py3_build
+%if %{with tests}
+PYTHONPATH=$(pwd) \
+zope-testrunner-3 --test-path .
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-repoze.sphinx.autointerface.git/commitdiff/871547155cad5a1281f9ae0a32b6d1b470217254
More information about the pld-cvs-commit
mailing list