From 5d9fed481586c0085a63c20816ca53fdc00d6f72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Fri, 2 Jul 2021 12:51:22 +0200 Subject: [PATCH] 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 -- 2.44.0