[packages/python3-sphinx_click] Up to 6.2.0
arekm
arekm at pld-linux.org
Thu Nov 12 09:57:27 CET 2026
commit 1a5d9d4da977df2181e09d450251cc67aa28a0a6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 12 03:28:35 2026 +0100
Up to 6.2.0
python3-sphinx_click.spec | 48 ++++++++++++++++++++++++++++-------------------
1 file changed, 29 insertions(+), 19 deletions(-)
---
diff --git a/python3-sphinx_click.spec b/python3-sphinx_click.spec
index b18a6ef..68aa1ac 100644
--- a/python3-sphinx_click.spec
+++ b/python3-sphinx_click.spec
@@ -6,28 +6,32 @@
Summary: Sphinx extension that automatically documents click applications
Summary(pl.UTF-8): Rozszerzenie Sphinksa automatycznie dokumentujące aplikacje clicka
Name: python3-sphinx_click
-Version: 5.1.0
-Release: 3
+Version: 6.2.0
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/sphinx-click/
-Source0: https://files.pythonhosted.org/packages/source/s/sphinx-click/sphinx-click-%{version}.tar.gz
-# Source0-md5: 9baf1d4e0fbc83d3c56b5b5fc75b0887
+Source0: https://files.pythonhosted.org/packages/source/s/sphinx-click/sphinx_click-%{version}.tar.gz
+# Source0-md5: a1000330f3e0a9da6e74920df2faaf80
URL: https://pypi.org/project/sphinx-click/
-BuildRequires: python3-modules >= 1:3.8
-BuildRequires: python3-pbr >= 2.0
-BuildRequires: python3-setuptools
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.10
+BuildRequires: python3-setuptools >= 1:80
+BuildRequires: python3-setuptools_scm >= 8
%if %{with tests}
-BuildRequires: python3-Sphinx >= 2.0
-BuildRequires: python3-click >= 7.0
+BuildRequires: python3-Sphinx >= 4.0
+BuildRequires: python3-click >= 8.0
BuildRequires: python3-docutils
+BuildRequires: python3-pytest
%endif
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: rpmbuild(macros) >= 2.044
%if %{with doc}
-BuildRequires: sphinx-pdg-3 >= 2.0
+BuildRequires: python3-click >= 8.0
+BuildRequires: sphinx-pdg-3 >= 4.0
%endif
-Requires: python3-modules >= 1:3.8
+Requires: python3-modules >= 1:3.10
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,33 +57,39 @@ API documentation for Python sphinx-click module.
Dokumentacja API modułu Pythona sphinx-click.
%prep
-%setup -q -n sphinx-click-%{version}
+%setup -q -n sphinx_click-%{version}
%build
-%py3_build
+%py3_build_pyproject
%if %{with tests}
-%{__python3} -m unittest discover -s tests
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest tests
%endif
%if %{with doc}
+# reno release-notes directive needs a git checkout, sdist has none
PYTHONPATH=$(pwd) \
-sphinx-build-3 -b html docs docs/_build/html
+sphinx-build-3 -b html \
+ -D extensions=sphinx_click \
+ -D exclude_patterns=_build,changelog.rst \
+ docs docs/_build/html
%endif
%install
rm -rf $RPM_BUILD_ROOT
-%py3_install
+%py3_install_pyproject
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog LICENSE README.rst
+%doc LICENSE README.rst
%{py3_sitescriptdir}/sphinx_click
-%{py3_sitescriptdir}/sphinx_click-%{version}-py*.egg-info
+%{py3_sitescriptdir}/sphinx_click-%{version}.dist-info
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinx_click.git/commitdiff/1a5d9d4da977df2181e09d450251cc67aa28a0a6
More information about the pld-cvs-commit
mailing list