forked from pool/python314
- Fix python314:doc package build with docutils 0.22. Remove the
"SPHINXERRORHANDLING = --fail-on-warning" from Doc/Makefile using the gh139257-Support-docutils-0.22.patch. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python314?expand=0&rev=105
This commit is contained in:
@@ -7,11 +7,11 @@ Subject: [PATCH 1/2] gh-139257: Support docutils >= 0.22
|
||||
Doc/tools/extensions/pyspecific.py | 12 +++++++++++-
|
||||
1 file changed, 11 insertions(+), 1 deletion(-)
|
||||
|
||||
Index: Python-3.14.0rc3/Doc/tools/extensions/pyspecific.py
|
||||
Index: Python-3.14.0/Doc/tools/extensions/pyspecific.py
|
||||
===================================================================
|
||||
--- Python-3.14.0rc3.orig/Doc/tools/extensions/pyspecific.py 2025-09-18 10:45:38.000000000 +0200
|
||||
+++ Python-3.14.0rc3/Doc/tools/extensions/pyspecific.py 2025-09-30 18:13:24.014518239 +0200
|
||||
@@ -25,11 +25,21 @@
|
||||
--- Python-3.14.0.orig/Doc/tools/extensions/pyspecific.py
|
||||
+++ Python-3.14.0/Doc/tools/extensions/pyspecific.py
|
||||
@@ -25,11 +25,21 @@ from sphinx.util.docutils import SphinxD
|
||||
SOURCE_URI = 'https://github.com/python/cpython/tree/3.14/%s'
|
||||
|
||||
# monkey-patch reST parser to disable alphabetic and roman enumerated lists
|
||||
@@ -34,3 +34,20 @@ Index: Python-3.14.0rc3/Doc/tools/extensions/pyspecific.py
|
||||
|
||||
|
||||
class PyAwaitableMixin(object):
|
||||
Index: Python-3.14.0/Doc/Makefile
|
||||
===================================================================
|
||||
--- Python-3.14.0.orig/Doc/Makefile
|
||||
+++ Python-3.14.0/Doc/Makefile
|
||||
@@ -14,7 +14,11 @@ PAPER =
|
||||
SOURCES =
|
||||
DISTVERSION = $(shell $(PYTHON) tools/extensions/patchlevel.py)
|
||||
REQUIREMENTS = requirements.txt
|
||||
-SPHINXERRORHANDLING = --fail-on-warning
|
||||
+# docutils 0.22 produces the following warning for all the faq pages:
|
||||
+# ERROR: The "contents" directive may not be used within topics or
|
||||
+# body elements. [docutils]
|
||||
+# SPHINXERRORHANDLING = --fail-on-warning
|
||||
+SPHINXERRORHANDLING =
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = --define latex_elements.papersize=a4paper
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 9 09:10:23 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Fix python314:doc package build with docutils 0.22. Remove the
|
||||
"SPHINXERRORHANDLING = --fail-on-warning" from Doc/Makefile using
|
||||
the gh139257-Support-docutils-0.22.patch.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 8 08:55:51 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user