]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
More/better examples.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 2 Jul 2021 10:51:22 +0000 (12:51 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 2 Jul 2021 10:51:22 +0000 (12:51 +0200)
python3.spec

index 4dac23560192f1651def824d19d4cc0406ca2d40..1132cb86abfcd688c0b61ff2b059b075dcfd3555 100644 (file)
@@ -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
This page took 0.081502 seconds and 4 git commands to generate.