mbox series

[meta-python,00/26] allow building with flit_core 4

Message ID 20261129192919.14731-1-tim.orling@konsulko.com
Headers show
Series allow building with flit_core 4 | expand

Message

Tim Orling Nov. 29, 2026, 7:28 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.

These recipes pin flit_core <4 in their build requires, so they fail
to build once python3-flit-core is upgraded to 4.2.0. This series
depends on the oe-core series "python3-flit-core: upgrade to 4.2.0, fix
recipes that pin flit_core <4", which also explains the approach.

Where upstream already has a fix it is backported; otherwise the patch
only raises the upper bound to <5, or moves the metadata to the
[project] table where the recipe still used [tool.flit.metadata], and
the Upstream-Status says whether it was submitted or declined upstream.
The recipe fixes also build with flit-core 3.12.0.

It includes Khem's python3-marshmallow 4.4.0 upgrade from master-next,
since 4.4.0 requires flit_core >=4.

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-arrow, python3-blinker, python3-flask, python3-marshmallow,
python3-ordered-set, python3-ptyprocess, python3-tomli-w and tomcli pass
on qemux86-64.

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.

Khem Raj (1):
  python3-marshmallow: Upgrade 4.3.1 -> 4.4.0

Tim Orling (25):
  python3-argh: allow building with flit_core 4
  python3-arrow: allow building with flit_core 4
  python3-asyncinotify: allow building with flit_core 4
  python3-backcall: allow building with flit_core 4
  python3-blinker: allow building with flit_core 4
  python3-flask-mail: allow building with flit_core 4
  python3-flask-marshmallow: allow building with flit_core 4
  python3-flask-sqlalchemy: allow building with flit_core 4
  python3-flask: allow building with flit_core 4
  python3-itsdangerous: allow building with flit_core 4
  python3-mdit-py-plugins: allow building with flit_core 4
  python3-mdurl: allow building with flit_core 4
  python3-ordered-set: allow building with flit_core 4
  python3-ptyprocess: allow building with flit_core 4
  python3-pytest-freezer: allow building with flit_core 4
  python3-python-xmp-toolkit: allow building with flit_core 4
  python3-socksio: allow building with flit_core 4
  python3-tinycss2: allow building with flit_core 4
  python3-tomli-w: allow building with flit_core 4
  python3-twitter: allow building with flit_core 4
  python3-webargs: allow building with flit_core 4
  tomcli: allow building with flit_core 4
  python3-cairocffi: allow building with flit_core 4
  python3-gspread: allow building with flit_core 4
  python3-truststore: allow building with flit_core 4

 ...toml-allow-building-with-flit_core-4.patch | 23 ++++++++++
 .../python/python3-argh_0.31.3.bb             |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 23 ++++++++++
 .../python/python3-arrow_1.4.0.bb             |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 22 +++++++++
 .../python/python3-asyncinotify_4.4.4.bb      |  1 +
 ...use-PEP-621-metadata-for-flit_core-4.patch | 43 +++++++++++++++++
 .../python/python3-backcall_0.2.0.bb          |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 25 ++++++++++
 .../python/python3-blinker_1.9.0.bb           |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 25 ++++++++++
 .../python/python3-flask-mail_0.10.0.bb       |  1 +
 .../0001-Update-all-dependencies.patch        | 22 +++++++++
 .../python/python3-flask-marshmallow_1.5.0.bb |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 25 ++++++++++
 .../python/python3-flask-sqlalchemy_3.1.1.bb  |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 25 ++++++++++
 .../python/python3-flask_3.1.3.bb             |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 25 ++++++++++
 .../python/python3-itsdangerous_2.2.0.bb      |  1 +
 ..._4.3.1.bb => python3-marshmallow_4.4.0.bb} |  2 +-
 ...toml-allow-building-with-flit_core-4.patch | 23 ++++++++++
 .../python/python3-mdit-py-plugins_0.7.0.bb   |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 23 ++++++++++
 .../python/python3-mdurl_0.1.2.bb             |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 23 ++++++++++
 .../python/python3-ordered-set_4.1.0.bb       |  1 +
 ...data-to-fix-flit-core-4-compatibilit.patch | 41 +++++++++++++++++
 .../python/python3-ptyprocess_0.7.0.bb        |  5 +-
 ...toml-allow-building-with-flit_core-4.patch | 23 ++++++++++
 .../python/python3-pytest-freezer_0.4.9.bb    |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 25 ++++++++++
 .../python3-python-xmp-toolkit_2.1.0.bb       |  1 +
 .../0001-Unpin-flit-core-dependency.patch     |  2 +-
 ...adata-to-fix-building-with-flit-core.patch | 46 +++++++++++++++++++
 .../python/python3-socksio_1.0.0.bb           |  5 +-
 ...001-Permit-building-with-flit-core-4.patch | 18 ++++++++
 .../python/python3-tinycss2_1.5.1.bb          |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 23 ++++++++++
 .../python/python3-tomli-w_1.2.0.bb           |  2 +
 ...001-Lock-deployment-dependencies-241.patch | 21 +++++++++
 .../python/python3-truststore_0.10.5.bb       |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 24 ++++++++++
 .../python/python3-twitter_4.17.0.bb          |  1 +
 ...01-Update-dependency-flit_core-to-v4.patch | 22 +++++++++
 .../python/python3-webargs_8.7.1.bb           |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 25 ++++++++++
 .../recipes-devtools/python/tomcli_0.10.1.bb  |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 23 ++++++++++
 .../python3-cairocffi_1.7.1.bb                |  1 +
 ...toml-allow-building-with-flit_core-4.patch | 23 ++++++++++
 .../python3-gspread/python3-gspread_6.2.1.bb  |  1 +
 52 files changed, 675 insertions(+), 4 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-argh/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-arrow/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-asyncinotify/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-backcall/0001-pyproject.toml-use-PEP-621-metadata-for-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-blinker/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-flask-mail/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-flask-marshmallow/0001-Update-all-dependencies.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-flask-sqlalchemy/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-flask/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-itsdangerous/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 rename meta-python/recipes-devtools/python/{python3-marshmallow_4.3.1.bb => python3-marshmallow_4.4.0.bb} (91%)
 create mode 100644 meta-python/recipes-devtools/python/python3-mdit-py-plugins/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-mdurl/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-ordered-set/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-ptyprocess/0001-Use-PEP-621-metadata-to-fix-flit-core-4-compatibilit.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-pytest-freezer/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-python-xmp-toolkit/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-socksio/0002-Use-PEP-621-metadata-to-fix-building-with-flit-core.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-tinycss2/0001-Permit-building-with-flit-core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-tomli-w/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-truststore/0001-Lock-deployment-dependencies-241.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-twitter/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-webargs/0001-Update-dependency-flit_core-to-v4.patch
 create mode 100644 meta-python/recipes-devtools/python/tomcli/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python3-cairocffi/python3-cairocffi/0001-pyproject.toml-allow-building-with-flit_core-4.patch
 create mode 100644 meta-python/recipes-devtools/python3-gspread/python3-gspread/0001-pyproject.toml-allow-building-with-flit_core-4.patch