Re: [PATCH v8 13/13] docs: parser_yaml.py: fix backward compatibility with old docutils
From: Akira Yokosawa
Date: Fri Jun 27 2025 - 04:37:35 EST
[Dropping most CCs, +CC: Matthew]
Hi Mauro,
On Fri, 27 Jun 2025 08:48:14 +0200, Mauro Carvalho Chehab wrote:
> Hi Akira,
>
> Em Fri, 27 Jun 2025 08:59:16 +0900
> Akira Yokosawa <akiyks@xxxxxxxxx> escreveu:
[...]
>>
>> opensuse/leap:15.6's Sphinx 4.2.0 has docutils 0.16 with it, but it is
>> python 3.6 base and it does't work with the ynl integration.
>> As opensuse/leap:15.6 provides Sphinx 7.2.6 (on top of python 3.11) as
>> an alternative, obsoleting it should be acceptable.
>
> Thank you for the tests! At changes.rst we updated the minimum
> python requirement to:
>
> Python (optional) 3.9.x python3 --version
>
> So, I guess we can keep this way.
>
> The 3.9 requirement reflects the needs of most scripts. Still, for doc build,
> the min requirement was to support f-string, so Python 3.6.
>
Sorry, I was barking up the wrong tree.
An example of messages from opensuse/leap:15.6's Sphinx looks like this:
WARNING: kernel-doc './scripts/kernel-doc.py -rst -enable-lineno -export ./fs/pstore/blk.c' processing failed with: AttributeError("'str' object has no attribute 'removesuffix'",)
The "removesuffix" is already there in scripts/lib/kdoc/kdoc_parser.py at
current docs-next. It was added by commit 27ad33b6b349 ("kernel-doc: Fix
symbol matching for dropped suffixes") submitted by Matthew.
But I have to ask, do we really want the compatibility with python <3.9
restored?
Thanks, Akira