#1146361 python-readme-renderer: FTBFS against python 3.15rc1

#1146361#5
Date:
2026-08-31 19:02:47 UTC
From:
To:
Hi!

While rebuilding the python related packages against the Python 3.15rc1
version we found that python-readme-renderer fails to build from source
[1].

FAILED tests/test_cli.py::test_cli_package[readme_renderer-Readme
Renderer is a library that will safely render] FAILED
tests/test_cli.py::test_cli_package[docutils-Docutils is a modular
system for processing documentation]

The tests fail because there was a behavior change in importlib.metadata
when trying to access a directory without the metadata file [2]. I've
worked around this by checking the Description field first, as was
suggested in the upstream PR #361 [3].

I applied the fix in the sandbox [4] to be able to build the packages
that depend on python-readme-renderer, please consider applying the
patch to support the upcoming 3.15 version.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4434740/
[2]: https://docs.python.org/3.15/whatsnew/3.15.html#importlib-metadata
[3]: https://github.com/pypa/readme_renderer/pull/361
[4]: https://debusine.debian.net/debian/r-python-python3.15/