[packages/python3-pytest-flake8] - added apidocs

qboosh qboosh at pld-linux.org
Sun Nov 30 08:56:47 CET 2025


commit f55e2fb96593e7091a580694dfe1ceb0c5e84ba7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Nov 30 08:56:55 2025 +0100

    - added apidocs

 python3-pytest-flake8.spec | 28 ++++++++++++++++++++++------
 1 file changed, 22 insertions(+), 6 deletions(-)
---
diff --git a/python3-pytest-flake8.spec b/python3-pytest-flake8.spec
index 7c65c32..9eb09f6 100644
--- a/python3-pytest-flake8.spec
+++ b/python3-pytest-flake8.spec
@@ -1,11 +1,10 @@
-# TODO: finish doc
 #
 # Conditional build:
-%bcond_with	doc	# Sphinx documentation
+%bcond_without	doc	# Sphinx documentation
 %bcond_without	tests	# pytest tests
 
-Summary:	py.test plugin to check FLAKE8 requirements
-Summary(pl.UTF-8):	Wtyczka py.test do sprawdzania wymagań FLAKE8
+Summary:	pytest plugin to check FLAKE8 requirements
+Summary(pl.UTF-8):	Wtyczka pytesta do sprawdzania wymagań FLAKE8
 Name:		python3-pytest-flake8
 Version:	1.3.0
 Release:	3
@@ -38,10 +37,21 @@ BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-py.test plugin for efficiently checking PEP8 compliance.
+pytest plugin for efficiently checking PEP8 compliance.
 
 %description -l pl.UTF-8
-Wtyczka py.test do efektywnego sprawdzania zgodności z PEP8.
+Wtyczka pytesta do efektywnego sprawdzania zgodności z PEP8.
+
+%package apidocs
+Summary:	API documentation for Python pytest_flake8 module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona pytest_flake8
+Group:		Documentation
+
+%description apidocs
+API documentation for Python pytest_flake8 module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona pytest_flake8.
 
 %prep
 %setup -q -n pytest_flake8-%{version}
@@ -74,3 +84,9 @@ rm -rf $RPM_BUILD_ROOT
 %{py3_sitescriptdir}/pytest_flake8.py
 %{py3_sitescriptdir}/__pycache__/pytest_flake8.cpython-*.py[co]
 %{py3_sitescriptdir}/pytest_flake8-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-flake8.git/commitdiff/f55e2fb96593e7091a580694dfe1ceb0c5e84ba7




More information about the pld-cvs-commit mailing list