[projects/template-specs] More/better examples.

arekm arekm at pld-linux.org
Fri Jul 2 12:51:25 CEST 2021


commit 5d9fed481586c0085a63c20816ca53fdc00d6f72
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jul 2 12:51:22 2021 +0200

    More/better examples.

 python3.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/python3.spec b/python3.spec
index 4dac235..1132cb8 100644
--- a/python3.spec
+++ b/python3.spec
@@ -33,6 +33,8 @@ BuildRequires:	rpmbuild(macros) >= 1.714
 #BuildRequires:        sed >= 4.0
 %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
@@ -65,13 +67,17 @@ Dokumentacja API modułu Pythona %{module}.
 # deprecated target, but sometimes still used: %{?with_tests:test}
 
 %if %{with tests}
-%{__python3} -m pytest ...
+%{__python3} -m pytest tests
 %endif
 
 %if %{with doc}
 %{__make} -C docs html \
 	SPHINXBUILD=sphinx-build-3
 rm -rf docs/_build/html/_sources
+
+# or
+
+%{_bindir}/tox -e docs
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/5d9fed481586c0085a63c20816ca53fdc00d6f72



More information about the pld-cvs-commit mailing list