[packages/sphinx-pdg] - fixed docutils DeprecationWarnings; release 2

qboosh qboosh at pld-linux.org
Sat Jan 7 20:12:11 CET 2023


commit 9c33d389f650a640b71e508b73ef785ea4aacca5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jan 7 20:13:14 2023 +0100

    - fixed docutils DeprecationWarnings; release 2

 Sphinx-docutils.patch | 22 ++++++++++++++++++++++
 sphinx-pdg.spec       |  2 +-
 2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/sphinx-pdg.spec b/sphinx-pdg.spec
index aeb4c7b..7d01d5b 100644
--- a/sphinx-pdg.spec
+++ b/sphinx-pdg.spec
@@ -12,7 +12,7 @@ Summary:	Sphinx - Python documentation generator
 Summary(pl.UTF-8):	Sphinx - narzędzie do tworzenia dokumentacji dla Pythona
 Name:		sphinx-pdg
 Version:	4.5.0
-Release:	1
+Release:	2
 License:	BSD
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.org/simple/Sphinx/
diff --git a/Sphinx-docutils.patch b/Sphinx-docutils.patch
index 8f2fb55..0093263 100644
--- a/Sphinx-docutils.patch
+++ b/Sphinx-docutils.patch
@@ -9,3 +9,25 @@
      'snowballstemmer>=1.1',
      'babel>=1.3',
      'alabaster>=0.7,<0.8',
+--- Sphinx-4.5.0/sphinx/ext/intersphinx.py.orig	2022-03-27 17:06:38.000000000 +0200
++++ Sphinx-4.5.0/sphinx/ext/intersphinx.py	2023-01-07 19:56:37.663002393 +0100
+@@ -572,7 +572,7 @@ class IntersphinxRoleResolver(References
+     default_priority = ReferencesResolver.default_priority - 1
+ 
+     def run(self, **kwargs: Any) -> None:
+-        for node in self.document.traverse(pending_xref):
++        for node in self.document.findall(pending_xref):
+             if 'intersphinx' not in node:
+                 continue
+             contnode = cast(nodes.TextElement, node[0].deepcopy())
+--- Sphinx-4.5.0/sphinx/environment/__init__.py.orig	2022-03-27 17:06:38.000000000 +0200
++++ Sphinx-4.5.0/sphinx/environment/__init__.py	2023-01-07 19:57:37.722677021 +0100
+@@ -38,7 +38,7 @@ logger = logging.getLogger(__name__)
+ 
+ default_settings: Dict[str, Any] = {
+     'auto_id_prefix': 'id',
+-    'embed_images': False,
++    'image_loading': 'link',
+     'embed_stylesheet': False,
+     'cloak_email_addresses': True,
+     'pep_base_url': 'https://peps.python.org/',
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sphinx-pdg.git/commitdiff/9c33d389f650a640b71e508b73ef785ea4aacca5



More information about the pld-cvs-commit mailing list