[packages/python3-flit_core] - no docs in source package
baggins
baggins at pld-linux.org
Fri Mar 28 22:54:05 CET 2025
commit 4ec1aaeda5120d4d7ea2142836fdd96e3c5e0753
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Mar 28 23:53:37 2025 +0100
- no docs in source package
python3-flit_core.spec | 39 +++------------------------------------
1 file changed, 3 insertions(+), 36 deletions(-)
---
diff --git a/python3-flit_core.spec b/python3-flit_core.spec
index 7f52bdb..f74e232 100644
--- a/python3-flit_core.spec
+++ b/python3-flit_core.spec
@@ -1,5 +1,4 @@
# Conditional build:
-%bcond_without doc # API documentation
%bcond_without tests # unit tests
%define module flit_core
@@ -18,15 +17,10 @@ BuildRequires: python3-installer
BuildRequires: python3-modules >= 1:3.2
%if %{with tests}
BuildRequires: python3-pytest
+BuildRequires: python3-testpath
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 2.044
-%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
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -36,17 +30,6 @@ This provides a PEP 517 build backend for packages using Flit. The
only public interface is the API specified by PEP 517, at
flit_core.buildapi.
-%package apidocs
-Summary: API documentation for Python %{module} module
-Summary(pl.UTF-8): Dokumentacja API modułu Pythona %{module}
-Group: Documentation
-
-%description apidocs
-API documentation for Python %{module} module.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu Pythona %{module}.
-
%prep
%setup -q -n %{module}-%{version}
@@ -56,18 +39,8 @@ Dokumentacja API modułu Pythona %{module}.
%if %{with tests}
# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS= \
-%{__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
+PYTEST_PLUGINS=testpath \
+%{__python3} -m pytest tests_core
%endif
%install
@@ -83,9 +56,3 @@ rm -rf $RPM_BUILD_ROOT
%doc README.rst
%{py3_sitescriptdir}/%{module}
%{py3_sitescriptdir}/%{module}-%{version}.dist-info
-
-%if %{with doc}
-%files apidocs
-%defattr(644,root,root,755)
-%doc docs/_build/html/*
-%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-flit_core.git/commitdiff/4ec1aaeda5120d4d7ea2142836fdd96e3c5e0753
More information about the pld-cvs-commit
mailing list