[packages/python3-sphinx_autoapi] - python-sphinx_autoapi.spec updated to 3.6.1 for python 3.9+

qboosh qboosh at pld-linux.org
Sat Nov 1 08:53:30 CET 2025


commit 4d4327349b5cabe11a19a9e532edfa5b4b60ca97
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Nov 1 08:53:27 2025 +0100

    - python-sphinx_autoapi.spec updated to 3.6.1 for python 3.9+

 python-sphinx_autoapi.spec  | 149 --------------------------------------------
 python3-sphinx_autoapi.spec |  78 +++++++++++++++++++++++
 2 files changed, 78 insertions(+), 149 deletions(-)
---
diff --git a/python-sphinx_autoapi.spec b/python-sphinx_autoapi.spec
deleted file mode 100644
index 190e3de..0000000
--- a/python-sphinx_autoapi.spec
+++ /dev/null
@@ -1,149 +0,0 @@
-#
-# Conditional build:
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_with	python3 # CPython 3.x module (built from python3-sphinx_autoapi.spec)
-
-Summary:	Sphinx API documentation generator
-Summary(pl.UTF-8):	Generator dokumentacji API dla Sphinksa
-Name:		python-sphinx_autoapi
-# keep 1.5.x here for python2 support
-Version:	1.5.1
-Release:	1
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/sphinx-autoapi/
-Source0:	https://files.pythonhosted.org/packages/source/s/sphinx-autoapi/sphinx-autoapi-%{version}.tar.gz
-# Source0-md5:	afcddb6cfbd234dbc1f65ed73eb25330
-URL:		https://pypi.org/project/sphinx-autoapi/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-PyYAML
-BuildRequires:	python-Sphinx >= 1.6
-BuildRequires:	python-astroid
-BuildRequires:	python-jinja2
-BuildRequires:	python-mock
-BuildRequires:	python-pytest
-BuildRequires:	python-sphinxcontrib-dotnetdomain
-BuildRequires:	python-sphinxcontrib-golangdomain
-BuildRequires:	python-unidecode
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.6
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-PyYAML
-BuildRequires:	python3-Sphinx >= 1.6
-BuildRequires:	python3-astroid
-BuildRequires:	python3-jinja2
-BuildRequires:	python3-mock
-BuildRequires:	python3-pytest
-BuildRequires:	python3-sphinxcontrib-dotnetdomain
-BuildRequires:	python3-sphinxcontrib-golangdomain
-BuildRequires:	python3-unidecode
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Sphinx AutoAPI provides "autodoc" style documentation for multiple
-programming languages without needing to load, run, or import the
-project being documented.
-
-In contrast to the traditional Sphinx autodoc, which is Python-only
-and uses code imports, AutoAPI finds and generates documentation by
-parsing source code.
-
-%description -l pl.UTF-8
-Sphinx AutoAPI zapewnia dokumentację w stylu "autodoc" dla wielu
-języków programowania bez potrzeby ładowania, uruchamiania lub
-importowania dokumentowanego projektu.
-
-W przeciwieństwie do tradycyjnego autodoc dla Sphinksa, który działa
-tylko dla Pythona i wykorzystuje importowanie kodu, AutoAPI wyszukuje
-i generuje dokumentację poprzez analizę kodu źródłowego.
-
-%package -n python3-sphinx_autoapi
-Summary:	Sphinx API documentation generator
-Summary(pl.UTF-8):	Generator dokumentacji API dla Sphinksa
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.6
-
-%description -n python3-sphinx_autoapi
-Sphinx AutoAPI provides "autodoc" style documentation for multiple
-programming languages without needing to load, run, or import the
-project being documented.
-
-In contrast to the traditional Sphinx autodoc, which is Python-only
-and uses code imports, AutoAPI finds and generates documentation by
-parsing source code.
-
-%description -n python3-sphinx_autoapi -l pl.UTF-8
-Sphinx AutoAPI zapewnia dokumentację w stylu "autodoc" dla wielu
-języków programowania bez potrzeby ładowania, uruchamiania lub
-importowania dokumentowanego projektu.
-
-W przeciwieństwie do tradycyjnego autodoc dla Sphinksa, który działa
-tylko dla Pythona i wykorzystuje importowanie kodu, AutoAPI wyszukuje
-i generuje dokumentację poprzez analizę kodu źródłowego.
-
-%prep
-%setup -q -n sphinx-autoapi-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest tests
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc CHANGELOG.rst LICENSE.rst README.rst
-%{py_sitescriptdir}/autoapi
-%{py_sitescriptdir}/sphinx_autoapi-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-sphinx_autoapi
-%defattr(644,root,root,755)
-%doc CHANGELOG.rst LICENSE.rst README.rst
-%{py3_sitescriptdir}/autoapi
-%{py3_sitescriptdir}/sphinx_autoapi-%{version}-py*.egg-info
-%endif
diff --git a/python3-sphinx_autoapi.spec b/python3-sphinx_autoapi.spec
new file mode 100644
index 0000000..d96ccbe
--- /dev/null
+++ b/python3-sphinx_autoapi.spec
@@ -0,0 +1,78 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Sphinx API documentation generator
+Summary(pl.UTF-8):	Generator dokumentacji API dla Sphinksa
+Name:		python3-sphinx_autoapi
+Version:	3.6.1
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/sphinx-autoapi/
+Source0:	https://files.pythonhosted.org/packages/source/s/sphinx-autoapi/sphinx_autoapi-%{version}.tar.gz
+# Source0-md5:	63b92634cbf39440c5d531b4701c2b6a
+URL:		https://pypi.org/project/sphinx-autoapi/
+BuildRequires:	python3-build
+BuildRequires:	python3-flit_core >= 3.2
+BuildRequires:	python3-flit_core < 4
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.10
+%if %{with tests}
+BuildRequires:	python3-PyYAML
+BuildRequires:	python3-Sphinx >= 7.4.0
+BuildRequires:	python3-astroid >= 3.0
+BuildRequires:	python3-jinja2
+BuildRequires:	python3-pytest
+BuildRequires:	python3-unidecode
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-modules >= 1:3.10
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Sphinx AutoAPI provides "autodoc" style documentation for multiple
+programming languages without needing to load, run, or import the
+project being documented.
+
+In contrast to the traditional Sphinx autodoc, which is Python-only
+and uses code imports, AutoAPI finds and generates documentation by
+parsing source code.
+
+%description -l pl.UTF-8
+Sphinx AutoAPI zapewnia dokumentację w stylu "autodoc" dla wielu
+języków programowania bez potrzeby ładowania, uruchamiania lub
+importowania dokumentowanego projektu.
+
+W przeciwieństwie do tradycyjnego autodoc dla Sphinksa, który działa
+tylko dla Pythona i wykorzystuje importowanie kodu, AutoAPI wyszukuje
+i generuje dokumentację poprzez analizę kodu źródłowego.
+
+%prep
+%setup -q -n sphinx_autoapi-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+# test_pyintegration.py::TestPipeUnionModule::test_integration requires network for intersphinx
+# test_pyintegration.py::TestMovedConfPy::test_{integration,napoleon_integration_not_loaded,show_inheritance,long_signature} need some files not in sdist(?)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests -k 'not test_pyintegration.py'
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.rst README.rst
+%{py3_sitescriptdir}/autoapi
+%{py3_sitescriptdir}/sphinx_autoapi-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinx_autoapi.git/commitdiff/4d4327349b5cabe11a19a9e532edfa5b4b60ca97



More information about the pld-cvs-commit mailing list