Files
python314/gh139257-Support-docutils-0.22.patch
Matej Cepl dc71fadfa7 - New development of new major version, update to 3.15.0~a1:
- Tools/Demos
    - gh-139330: SBOM generation tool didn’t cross-check
      the version and checksum values against the
      Modules/expat/refresh.sh script, leading to the values
      becoming out-of-date during routine updates.
    - gh-132006: XCframeworks now include privacy manifests to
      satisfy Apple App Store submission requirements.
    - gh-138171: A script for building an iOS XCframework was
      added. As part of this change, the top level iOS folder has
      been moved to be a subdirectory of the Apple folder.
    - gh-137873: The iOS test runner has been simplified,
      resolving some issues that have been observed using
      the runner in GitHub Actions and Azure Pipelines test
      environments.
    - gh-137484: Have Tools/wasm/wasi put the build Python into a
      directory named after the build triple instead of “build”.
    - gh-137025: The wasm_build.py script has been removed.
      Tools/wasm/emscripten and Tools/wasm/wasi should be used
      instead, as described in the Dev Guide.
    - gh-137248: Add a --logdir option to Tools/wasm/wasi for
      specifying where to write log files.
    - gh-137243: Have Tools/wasm/wasi detect a WASI SDK install
      in /opt when it was directly extracted from a release
      tarball.
    - gh-136251: Fixes and usability improvements for
      Tools/wasm/emscripten/web_example
    - gh-135968: Stubs for strip are now provided as part of an
      iOS install.
    - gh-135379: The cases generator no longer accepts type

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python314?expand=0&rev=109
2025-11-06 23:09:00 +01:00

37 lines
1.4 KiB
Diff

From 19b61747df3d62c822285c488753d6fbdf91e3ac Mon Sep 17 00:00:00 2001
From: Daniel Garcia Moreno <daniel.garcia@suse.com>
Date: Tue, 23 Sep 2025 10:20:16 +0200
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.15.0a1/Doc/tools/extensions/pyspecific.py
===================================================================
--- Python-3.15.0a1.orig/Doc/tools/extensions/pyspecific.py 2025-10-14 12:46:08.000000000 +0200
+++ Python-3.15.0a1/Doc/tools/extensions/pyspecific.py 2025-10-24 23:55:02.700550007 +0200
@@ -25,11 +25,21 @@
SOURCE_URI = 'https://github.com/python/cpython/tree/main/%s'
# monkey-patch reST parser to disable alphabetic and roman enumerated lists
+def _disable_alphabetic_and_roman(text):
+ try:
+ # docutils >= 0.22
+ from docutils.parsers.rst.states import InvalidRomanNumeralError
+ raise InvalidRomanNumeralError(text)
+ except ImportError:
+ # docutils < 0.22
+ return None
+
+
from docutils.parsers.rst.states import Body
Body.enum.converters['loweralpha'] = \
Body.enum.converters['upperalpha'] = \
Body.enum.converters['lowerroman'] = \
- Body.enum.converters['upperroman'] = lambda x: None
+ Body.enum.converters['upperroman'] = _disable_alphabetic_and_roman
class PyAwaitableMixin(object):