#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
# 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