[packages/python-attrs] - added fix for intersphinx mapping

qboosh qboosh at pld-linux.org
Wed May 28 07:38:55 CEST 2025


commit 9294f513fa8496dfa1ce46b02066d04a25659959
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed May 28 06:16:24 2025 +0200

    - added fix for intersphinx mapping

 attrs-intersphinx.patch | 11 +++++++++++
 python-attrs.spec       |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/python-attrs.spec b/python-attrs.spec
index 1411a06..fee4dfb 100644
--- a/python-attrs.spec
+++ b/python-attrs.spec
@@ -16,6 +16,7 @@ Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/attrs/
 Source0:	https://files.pythonhosted.org/packages/source/a/attrs/attrs-%{version}.tar.gz
 # Source0-md5:	5a9b5e9ceebc380a13fb93235b11bbda
+Patch0:		attrs-intersphinx.patch
 URL:		https://pypi.org/project/attrs/
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
@@ -92,6 +93,7 @@ Dokumentacja API modułu Pythona attrs.
 
 %prep
 %setup -q -n attrs-%{version}
+%patch -P0 -p1
 
 %build
 %if %{with python2}
diff --git a/attrs-intersphinx.patch b/attrs-intersphinx.patch
new file mode 100644
index 0000000..d6ad101
--- /dev/null
+++ b/attrs-intersphinx.patch
@@ -0,0 +1,11 @@
+--- attrs-21.4.0/docs/conf.py.orig	2021-12-28 06:47:37.000000000 +0100
++++ attrs-21.4.0/docs/conf.py	2025-05-28 06:12:33.270528093 +0200
+@@ -148,7 +148,7 @@ texinfo_documents = [
+ epub_description = "Python Clases Without Boilerplate"
+ 
+ intersphinx_mapping = {
+-    "https://docs.python.org/3": None,
++    "https://docs.python.org/3": ("python", None),
+ }
+ 
+ # Allow non-local URIs so we can have images in CHANGELOG etc.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-attrs.git/commitdiff/9294f513fa8496dfa1ce46b02066d04a25659959



More information about the pld-cvs-commit mailing list