new file mode 100644
@@ -0,0 +1,43 @@
+From: Tim Orling <tim.orling@konsulko.com>
+Subject: [PATCH] pyproject.toml: use PEP 621 metadata for flit_core 4
+
+flit_core 4 no longer reads the [tool.flit.metadata] table, so move the
+metadata to the standard [project] table and allow flit_core <5, as
+upstream ptyprocess and cloudpickle did.
+
+Upstream-Status: Inactive-Upstream [lastcommit: 2020]
+AI-Generated: Uses Claude Code (Claude Opus 5.5)
+Signed-off-by: Tim Orling <tim.orling@konsulko.com>
+---
+diff --git a/pyproject.toml b/pyproject.toml
+index 21c0b58..550405e 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,16 +1,20 @@
+ [build-system]
+-requires = ["flit_core >=2,<4"]
++requires = ["flit_core >=3.2,<5"]
+ build-backend = "flit_core.buildapi"
+
+-[tool.flit.metadata]
+-module = "backcall"
+-author = "Thomas Kluyver"
+-author-email = "thomas@kluyver.me.uk"
+-home-page = "https://github.com/takluyver/backcall"
+-description-file = "README.rst"
++[project]
++name = "backcall"
++authors = [
++ { name = "Thomas Kluyver", email = "thomas@kluyver.me.uk" },
++]
++readme = "README.rst"
++dynamic = ["version", "description"]
+ classifiers = [
+ 'License :: OSI Approved :: BSD License',
+ 'Programming Language :: Python :: 2',
+ 'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Python :: 3',
+ ]
++
++[project.urls]
++Homepage = "https://github.com/takluyver/backcall"
@@ -4,6 +4,7 @@ LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=40e56b724d016484a7f790ec826d3ffc"
+SRC_URI += "file://0001-pyproject.toml-use-PEP-621-metadata-for-flit_core-4.patch"
SRC_URI[sha256sum] = "5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e"
inherit pypi python_flit_core
flit_core 4 no longer reads the [tool.flit.metadata] table, so move the metadata to the standard [project] table and allow flit_core <5. Upstream has been inactive since 2020. Tested by building with flit_core 3.12.0 and 4.2.0. AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Tim Orling <tim.orling@konsulko.com> --- ...use-PEP-621-metadata-for-flit_core-4.patch | 43 +++++++++++++++++++ .../python/python3-backcall_0.2.0.bb | 1 + 2 files changed, 44 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-backcall/0001-pyproject.toml-use-PEP-621-metadata-for-flit_core-4.patch