[packages/python-atomicwrites] fix doc build wih recent sphinx

atler atler at pld-linux.org
Tue Mar 18 02:35:02 CET 2025


commit 80d2af9c47fac38ac4c58a07756e370e96b6a7fb
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Mar 18 00:43:32 2025 +0100

    fix doc build wih recent sphinx

 python-atomicwrites.spec | 2 ++
 sphinx.patch             | 8 ++++++++
 2 files changed, 10 insertions(+)
---
diff --git a/python-atomicwrites.spec b/python-atomicwrites.spec
index e204a9c..25e5aac 100644
--- a/python-atomicwrites.spec
+++ b/python-atomicwrites.spec
@@ -15,6 +15,7 @@ Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/atomicwrites/
 Source0:	https://files.pythonhosted.org/packages/source/a/atomicwrites/atomicwrites-%{version}.tar.gz
 # Source0-md5:	9ff8e556d0b4a411d0cebbdb3fb0c70d
+Patch0:		sphinx.patch
 URL:		https://github.com/untitaker/python-atomicwrites
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
@@ -68,6 +69,7 @@ Dokumentacja API modułu Pythona atomicwrites.
 
 %prep
 %setup -q -n atomicwrites-%{version}
+%patch -P0 -p1
 
 %build
 %if %{with python2}
diff --git a/sphinx.patch b/sphinx.patch
new file mode 100644
index 0000000..99052e4
--- /dev/null
+++ b/sphinx.patch
@@ -0,0 +1,8 @@
+--- atomicwrites-1.4.1/docs/conf.py.orig	2022-07-08 20:30:25.000000000 +0200
++++ atomicwrites-1.4.1/docs/conf.py	2025-03-18 00:41:39.700571714 +0100
+@@ -105,4 +105,4 @@
+ epub_exclude_files = ['search.html']
+ 
+ # Example configuration for intersphinx: refer to the Python standard library.
+-intersphinx_mapping = {'http://docs.python.org/': None}
++intersphinx_mapping = {'python': ('http://docs.python.org/', None)}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-atomicwrites.git/commitdiff/80d2af9c47fac38ac4c58a07756e370e96b6a7fb



More information about the pld-cvs-commit mailing list