[packages/python3-pydoctor] - new

baggins baggins at pld-linux.org
Sat Mar 29 13:53:27 CET 2025


commit c7193392736735494f5b013734c2eebf9326ce6b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Mar 29 14:03:54 2025 +0100

    - new

 python3-pydoctor.spec | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 97 insertions(+)
---
diff --git a/python3-pydoctor.spec b/python3-pydoctor.spec
new file mode 100644
index 0000000..fd78aa3
--- /dev/null
+++ b/python3-pydoctor.spec
@@ -0,0 +1,97 @@
+# Conditional build:
+%bcond_without	doc	# API documentation
+%bcond_without	tests	# unit tests
+
+%define		module	pydoctor
+Summary:	API doc generator
+Name:		python3-%{module}
+Version:	24.11.2
+Release:	1
+License:	MIT/X11
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pydoctor/
+Source0:	https://files.pythonhosted.org/packages/source/p/pydoctor/%{module}-%{version}.tar.gz
+# Source0-md5:	93b7c94105d184dab7343860e3a10d0d
+URL:		https://pypi.org/project/pydoctor/
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-configargparse
+BuildRequires:	python3-twisted
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+%if %{with doc}
+BuildRequires:	python3-twisted
+BuildRequires:	sphinx-pdg-3
+%endif
+Requires:	python3-modules >= 1:3.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is pydoctor, a standalone API documentation generator that works
+by static analysis.
+
+It was written primarily to replace epydoc for the purposes of the
+Twisted project as epydoc has difficulties with zope.interface. If you
+are looking for a successor to epydoc after moving to Python 3,
+pydoctor might be the right tool for your project as well.
+
+pydoctor puts a fair bit of effort into resolving imports and
+computing inheritance hierarchies and, as it aims at documenting
+Twisted, knows about zope.interface's declaration API and can present
+information about which classes implement which interface, and vice
+versa.
+
+%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}
+
+%build
+%py3_build
+
+%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 pydoctor/test
+%endif
+
+%if %{with doc}
+%{__make} -C docs html \
+	PYTHONPATH=$PWD \
+	SPHINXBUILD=sphinx-build-3
+rm -rf docs/_build/html/_sources
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.txt README.rst
+%attr(755,root,root) %{_bindir}/pydoctor
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-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-pydoctor.git/commitdiff/c7193392736735494f5b013734c2eebf9326ce6b



More information about the pld-cvs-commit mailing list