From 31eec57a82fc1f4fa7ddc349d79ccdf95436d14ad28c0a54e0675439c48acefc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 9 Oct 2025 13:52:03 +0000 Subject: [PATCH] - 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 --- gh139257-Support-docutils-0.22.patch | 25 +++++++++++++++++++++---- python314.changes | 7 +++++++ 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/gh139257-Support-docutils-0.22.patch b/gh139257-Support-docutils-0.22.patch index 981929d..420abad 100644 --- a/gh139257-Support-docutils-0.22.patch +++ b/gh139257-Support-docutils-0.22.patch @@ -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 diff --git a/python314.changes b/python314.changes index 5b389c8..1e8d786 100644 --- a/python314.changes +++ b/python314.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Oct 9 09:10:23 UTC 2025 - Daniel Garcia + +- 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