diff options
author | Tim Orling <ticotimo@gmail.com> | 2023-10-27 09:12:12 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-30 08:50:09 +0000 |
commit | d99b4883b4fee82bc588fd235ba90fedf1550cb8 (patch) | |
tree | 5d12ba2067d6ffc3acc60da053e532050bf7cc6e /scripts | |
parent | c10d0bb542b23fbdc14d76dfa8e5885aa4d33083 (diff) | |
download | openembedded-core-contrib-d99b4883b4fee82bc588fd235ba90fedf1550cb8.tar.gz |
recipetool: add python_hatchling support
One of the newer PEP-517 backends to be added was python_hatchling.bbclass
but it was not included in the recent improvements.
Add selftest for 'jsonschema' pypi package.
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/recipetool/create_buildsys_python.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py index 9e7f22c0db..9312e4abf1 100644 --- a/scripts/lib/recipetool/create_buildsys_python.py +++ b/scripts/lib/recipetool/create_buildsys_python.py @@ -662,11 +662,12 @@ class PythonPyprojectTomlRecipeHandler(PythonRecipeHandler): PEP517 https://peps.python.org/pep-0517/#source-trees PEP518 https://peps.python.org/pep-0518/#build-system-table """ - # bitbake currently support the 3 following backends + # bitbake currently supports the 4 following backends build_backend_map = { "setuptools.build_meta": "python_setuptools_build_meta", "poetry.core.masonry.api": "python_poetry_core", "flit_core.buildapi": "python_flit_core", + "hatchling.build": "python_hatchling", } # setuptools.build_meta and flit declare project metadata into the "project" section of pyproject.toml @@ -716,6 +717,8 @@ class PythonPyprojectTomlRecipeHandler(PythonRecipeHandler): "poetry-core": "python3-poetry-core", "flit_core": "python3-flit-core", "setuptools-scm": "python3-setuptools-scm", + "hatchling": "python3-hatchling", + "hatch-vcs": "python3-hatch-vcs", } def __init__(self): @@ -776,6 +779,7 @@ class PythonPyprojectTomlRecipeHandler(PythonRecipeHandler): if field == "license": # For setuptools.build_meta and flit, licence is a table # but for poetry licence is a string + # for hatchling, both table (jsonschema) and string (iniconfig) have been used if build_backend == "poetry.core.masonry.api": value = values else: |