mbox series

[00/11] python3-flit-core: upgrade to 4.2.0, fix recipes that pin flit_core <4

Message ID 20261129192114.12997-1-tim.orling@konsulko.com
Headers show
Series python3-flit-core: upgrade to 4.2.0, fix recipes that pin flit_core <4 | expand

Message

Tim Orling Nov. 29, 2026, 7:21 p.m. UTC
We have been talking about the python3-flit-core move to 4.x.y since
August. I have been working on this patch series for a month.

flit_core 4 drops the [tool.flit.metadata] table, the --setup-py option
and VCS-based sdists. Many projects that already use the standard
[project] table still pin flit_core <4 in their build requires, so
pyproject-build rejects them once flit-core 4 is in the sysroot.

This series fixes those recipes one at a time, as suggested in the review
of the class-wide approach [1], then upgrades flit-core and
more-itertools (11.2.x requires flit_core >=4). Where upstream already
has a fix it is backported; otherwise the patch only raises the upper
bound to <5, as the flit 4.0 release notes suggest [2], and the
Upstream-Status says whether it was submitted or declined upstream. The
recipe fixes also build with flit-core 3.12.0, so they do not depend on
the upgrade.

Earlier attempts to upgrade flit-core on its own, to 4.1.0 [3] and to
4.2.0 [4], failed on the AutoBuilder because python3-typing-extensions,
python3-pip, python3-docutils, python3-jinja2 and others pinned
flit_core <4. Khem then proposed dropping the upper bound in the
python_flit_core class [5], along with the 4.2.0 upgrade [6]. Alexander
objected that flit_core 4 has incompatible changes and that the pins
should be fixed per recipe and upstream, and Khem agreed [1]. This series
takes that approach and replaces both of Khem's patches (same flit-core
version and checksum). The meta-python recipes are fixed in a separate
series to openembedded-devel, which depends on this one.

Testing: all 118 python_flit_core targets in oe-core and meta-python
(target and native) build with flit-core 4.2.0. The ptests of
python3-click, python3-jinja2 and python3-more-itertools pass on
qemux86-64, as do those of the meta-python recipes in the companion
series.

I do not personally intend to send the fixes upstream. There are simply
too many of them and some of the projects are openly hostile to AI
submissions. I have zero interest in fighting upstream. If we do find
issues in these recipes that are proven to be caused by the flit-core >4
change I will do my best to help. If someone else wants to track down
patches from other distros or submit them upstream, please feel free to
send follow up patches for these recipes to change the Upstream-Status.
Otherwise, my hope is that upstreams will either upgrade to flit-core >4
or will move on to other PEP-517 backends and avoid the problem
entirely.

[1] https://lore.kernel.org/all/CANNYZj88T40VtCacwAGP6_=RoyHhC1E5OV7aQCZaoguZM_h-Kg@mail.gmail.com/
[2] https://flit.pypa.io/en/stable/history.html#version-4-0
[3] https://lore.kernel.org/all/20261014153344.81727-1-jaipaul.cheernam@est.tech/
[4] https://lore.kernel.org/all/20261028070350.13243-6-jaipaul.cheernam@est.tech/
[5] https://lore.kernel.org/all/20261129070552.3072212-1-khem.raj@oss.qualcomm.com/
[6] https://lore.kernel.org/all/20261129073235.3077566-1-khem.raj@oss.qualcomm.com/

Tim Orling (11):
  python3-click: allow building with flit_core 4
  python3-coherent-licensed: allow building with flit_core 4
  python3-docutils: allow building with flit_core 4
  python3-jinja2: allow building with flit_core 4
  python3-roman-numerals: allow building with flit_core 4
  python3-sphinx-argparse: allow building with flit_core 4
  python3-typing-extensions: allow building with flit_core 4
  python3-unittest-automake-output: allow building with flit_core 4
  python3-sphinx-tags: allow building with flit_core 4
  python3-flit-core: upgrade 3.12.0 -> 4.2.0
  python3-more-itertools: upgrade 11.1.0 -> 11.2.1

 ...toml-allow-building-with-flit_core-4.patch | 29 +++++++++++++++++++
 .../python/python3-click_8.5.1.bb             |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 23 +++++++++++++++
 .../python/python3-coherent-licensed_0.5.2.bb |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 25 ++++++++++++++++
 .../python/python3-docutils_0.23.bb           |  1 +
 ...e_3.12.0.bb => python3-flit-core_4.2.0.bb} |  2 +-
 ...toml-allow-building-with-flit_core-4.patch | 25 ++++++++++++++++
 .../python/python3-jinja2_3.1.6.bb            |  1 +
 ....0.bb => python3-more-itertools_11.2.1.bb} | 11 +++----
 ...toml-allow-building-with-flit_core-4.patch | 25 ++++++++++++++++
 .../python/python3-roman-numerals_4.1.0.bb    |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 23 +++++++++++++++
 .../python/python3-sphinx-argparse_0.6.1.bb   |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 23 +++++++++++++++
 .../python/python3-sphinx-tags_0.4.bb         |  1 +
 ...ng-this-package-with-flit-core-4-787.patch | 19 ++++++++++++
 .../python3-typing-extensions_4.16.0.bb       |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 23 +++++++++++++++
 .../python3-unittest-automake-output_0.4.bb   |  1 +
 20 files changed, 231 insertions(+), 6 deletions(-)
 create mode 100644 meta/recipes-devtools/python/python3-click/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta/recipes-devtools/python/python3-coherent-licensed/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta/recipes-devtools/python/python3-docutils/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 rename meta/recipes-devtools/python/{python3-flit-core_3.12.0.bb => python3-flit-core_4.2.0.bb} (90%)
 create mode 100644 meta/recipes-devtools/python/python3-jinja2/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 rename meta/recipes-devtools/python/{python3-more-itertools_11.1.0.bb => python3-more-itertools_11.2.1.bb} (71%)
 create mode 100644 meta/recipes-devtools/python/python3-roman-numerals/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta/recipes-devtools/python/python3-sphinx-argparse/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta/recipes-devtools/python/python3-sphinx-tags/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta/recipes-devtools/python/python3-typing-extensions/0001-Allow-building-this-package-with-flit-core-4-787.patch
 create mode 100644 meta/recipes-devtools/python/python3-unittest-automake-output/0002-pyproject.toml-allow-building-with-flit_core-4.patch