14
0

Accepting request 1199070 from home:mathletic:branches:devel:languages:python

- Add patch intersphinx.patch for compatibility with recent
  version of Sphinx

OBS-URL: https://build.opensuse.org/request/show/1199070
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.event?expand=0&rev=37
This commit is contained in:
2024-09-06 09:41:26 +00:00
committed by Git OBS Bridge
parent 5527f4da07
commit 94c17553db
3 changed files with 37 additions and 1 deletions

27
intersphinx.patch Normal file
View File

@@ -0,0 +1,27 @@
From cfcb34ea5c61d71c77529cbf2400738473e25bac Mon Sep 17 00:00:00 2001
From: Michael Howitz <icemac@gmx.net>
Date: Fri, 9 Aug 2024 18:29:08 +0200
Subject: Add support for Python 3.12. - Drop support for Python 3.7
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -36,7 +36,7 @@
templates_path = ['_templates']
# The suffix of source filenames.
-source_suffix = '.rst'
+source_suffix = {'.rst': 'restructuredtext'}
# The encoding of source files.
#source_encoding = 'utf-8'
@@ -203,9 +203,7 @@
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {
- 'https://docs.python.org/': None
-}
+intersphinx_mapping = {'python': ('https://docs.python.org/', None)}
autodoc_default_flags = ['members', 'show-inheritance']
autodoc_member_order = 'bysource'