]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
recipetool: support PEP639-variant of license key in pyproject.toml
authorQuentin Schulz <quentin.schulz@cherry.de>
Wed, 3 Dec 2025 11:24:36 +0000 (12:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Dec 2025 17:54:25 +0000 (17:54 +0000)
commit9d1a7bb5d8aa94b74cd66edcb88e323c926d299b
treef57b71c29655c7f26977fc781395ee29733bbfb5
parentad220a20af6fa8e53845f94ef96fa4081b1688ef
recipetool: support PEP639-variant of license key in pyproject.toml

Python modules using PEP639-variant of the license key[1] are currently
returning Unknown as LICENSE when using recipetool create on them
because we try to parse the key as a dict but it is now an SPDX license
expression.

This adds support for PEP639-variant of the license key, though it does
not handle the newly added license-files key[2] as I couldn't find a
dual-licensed recipe which uses that mechanism yet.

[1] https://peps.python.org/pep-0639/#add-string-value-to-license-key
[2] https://peps.python.org/pep-0639/#add-license-files-key

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/recipetool.py
scripts/lib/recipetool/create_buildsys_python.py