diff options
| author | Tim Orling <ticotimo@gmail.com> | 2021-10-17 01:41:20 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-18 13:48:17 +0100 |
| commit | 6cc9954c6bac9e3c19b2b0f26a69b629a8ee7273 (patch) | |
| tree | dea18a2173249ce4e2f449e600a430bfe3cc2dc3 | |
| parent | 836ab3c757d4a231f5ac50a9434dbdb91ec03bf4 (diff) | |
| download | poky-6cc9954c6bac9e3c19b2b0f26a69b629a8ee7273.tar.gz | |
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 <timothy.t.orling@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/conf/distro/include/maintainers.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-tomli_1.2.1.bb | 20 |
2 files changed, 21 insertions, 0 deletions
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 <timothy.t.orling@in | |||
| 637 | RECIPE_MAINTAINER:pn-python3-subunit = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" | 637 | RECIPE_MAINTAINER:pn-python3-subunit = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" |
| 638 | RECIPE_MAINTAINER:pn-python3-testtools = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" | 638 | RECIPE_MAINTAINER:pn-python3-testtools = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" |
| 639 | RECIPE_MAINTAINER:pn-python3-toml = "Tim Orling <timothy.t.orling@intel.com>" | 639 | RECIPE_MAINTAINER:pn-python3-toml = "Tim Orling <timothy.t.orling@intel.com>" |
| 640 | RECIPE_MAINTAINER:pn-python3-tomli = "Tim Orling <timothy.t.orling@intel.com>" | ||
| 640 | RECIPE_MAINTAINER:pn-python3-typogrify = "Alexander Kanavin <alex.kanavin@gmail.com>" | 641 | RECIPE_MAINTAINER:pn-python3-typogrify = "Alexander Kanavin <alex.kanavin@gmail.com>" |
| 641 | RECIPE_MAINTAINER:pn-python3-wcwidth = "Tim Orling <timothy.t.orling@intel.com>" | 642 | RECIPE_MAINTAINER:pn-python3-wcwidth = "Tim Orling <timothy.t.orling@intel.com>" |
| 642 | RECIPE_MAINTAINER:pn-python3-zipp = "Tim Orling <timothy.t.orling@intel.com>" | 643 | RECIPE_MAINTAINER:pn-python3-zipp = "Tim Orling <timothy.t.orling@intel.com>" |
diff --git a/meta/recipes-devtools/python/python3-tomli_1.2.1.bb b/meta/recipes-devtools/python/python3-tomli_1.2.1.bb new file mode 100644 index 0000000000..f62690ff2d --- /dev/null +++ b/meta/recipes-devtools/python/python3-tomli_1.2.1.bb | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | SUMMARY = "A lil' TOML parser" | ||
| 2 | DESCRIPTION = "Tomli is a Python library for parsing TOML. Tomli is fully \ | ||
| 3 | compatible with TOML v1.0.0." | ||
| 4 | HOMEPAGE = "https://github.com/hukkin/tomli" | ||
| 5 | BUGTRACKER = "https://github.com/hukkin/tomli/issues" | ||
| 6 | LICENSE = "MIT" | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=aaaaf0879d17df0110d1aa8c8c9f46f5" | ||
| 8 | |||
| 9 | inherit pypi setuptools3 | ||
| 10 | |||
| 11 | SRC_URI[sha256sum] = "a5b75cb6f3968abb47af1b40c1819dc519ea82bcc065776a866e8d74c5ca9442" | ||
| 12 | |||
| 13 | do_configure:prepend() { | ||
| 14 | cat > ${S}/setup.py <<-EOF | ||
| 15 | from setuptools import setup | ||
| 16 | setup(name="tomli", version="${PV}", packages=["tomli"], package_data={"": ["*"]}) | ||
| 17 | EOF | ||
| 18 | } | ||
| 19 | |||
| 20 | BBCLASSEXTEND = "native nativesdk" | ||
