From 6cc9954c6bac9e3c19b2b0f26a69b629a8ee7273 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Sun, 17 Oct 2021 01:41:20 +0000 Subject: python3-tomli: add recipe for 1.2.1 A lil' TOML parser This is a runtime dependency for setuptools-scm upgrade as well as for several other Python Packaging Authority (pypa) tools that will be replacing distutils and setuptools in the future. Upstream does not have a setup.py, but rather relies on flit_core to build. This introduces a circular dependency, as flit_core has a runtime dependency on tomli. Borrow a setup.py from Gentoo until a better solution is found by upstream Python Packaging Authority (pypa). (From OE-Core rev: 86430833b463d606ffc345ad6b7e51840dc9f9ba) Signed-off-by: Tim Orling Signed-off-by: Richard Purdie --- meta/conf/distro/include/maintainers.inc | 1 + meta/recipes-devtools/python/python3-tomli_1.2.1.bb | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-tomli_1.2.1.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 3ffb065804..baec2bef4d 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -637,6 +637,7 @@ RECIPE_MAINTAINER:pn-python3-sortedcontainers = "Tim Orling ${S}/setup.py <<-EOF +from setuptools import setup +setup(name="tomli", version="${PV}", packages=["tomli"], package_data={"": ["*"]}) +EOF +} + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf