[packages/python3-botocore] Rel 2.
arekm
arekm at pld-linux.org
Thu Nov 12 13:15:11 CET 2026
commit 5a0d122de064cf0a6a757a16f84b9668a990855a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 12 12:59:48 2026 +0100
Rel 2.
Fix the docs build with Sphinx >= 8.2.
botocore-sphinx-admonition.patch | 20 ++++++++++++++++++++
python3-botocore.spec | 7 +++++--
2 files changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/python3-botocore.spec b/python3-botocore.spec
index ad9308e..9c8ab6c 100644
--- a/python3-botocore.spec
+++ b/python3-botocore.spec
@@ -8,12 +8,13 @@ Summary: Low-level, data-driven core of boto 3
Summary(pl.UTF-8): Niskopoziomowy, oparty na danych rdzeń boto 3
Name: python3-botocore
Version: 1.44.1
-Release: 1
+Release: 2
License: Apache v2.0
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/botocore/
Source0: https://files.pythonhosted.org/packages/source/b/botocore/botocore-%{version}.tar.gz
# Source0-md5: 35036d5eb2ee127991f3d596c7bb85d4
+Patch0: botocore-sphinx-admonition.patch
URL: https://pypi.org/project/botocore/
BuildRequires: python3-dateutil >= 2.1
BuildRequires: python3-dateutil < 3
@@ -30,7 +31,8 @@ BuildRequires: python3-pytest >= 7.1.2
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with doc}
-BuildRequires: python3-guzzle_sphinx_theme
+BuildRequires: python3-furo
+BuildRequires: python3-sphinx_copybutton
BuildRequires: python3-sphinx_remove_toctrees
BuildRequires: sphinx-pdg-3
%endif
@@ -63,6 +65,7 @@ Dokumentacja API modułu Pythona botocore.
%prep
%setup -q -n botocore-%{version}
+%patch -P0 -p1
%build
%py3_build
diff --git a/botocore-sphinx-admonition.patch b/botocore-sphinx-admonition.patch
new file mode 100644
index 0000000..981db64
--- /dev/null
+++ b/botocore-sphinx-admonition.patch
@@ -0,0 +1,20 @@
+Sphinx >= 8.2 depart_admonition() pops a closing tag that the overridden
+visit_admonition() never pushes: IndexError or broken HTML in the docs.
+
+--- botocore-1.44.1/botocore/docs/translator.py.orig
++++ botocore-1.44.1/botocore/docs/translator.py
+@@ -33,6 +33,14 @@
+ )
+ self.body.append(title)
+
++ def depart_admonition(self, node=None):
++ """Closes the div opened by visit_admonition.
++
++ Sphinx >= 8.2 pops the closing tag from the context stack, which this
++ visit_admonition does not push.
++ """
++ self.body.append("</div>\n")
++
+ def is_implicit_heading(self, node):
+ """Determines if a node is an implicit heading.
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-botocore.git/commitdiff/5a0d122de064cf0a6a757a16f84b9668a990855a
More information about the pld-cvs-commit
mailing list