Skip to content

devtool/recipetool: add support of PEP-517

Julien Stephan openembedded-core 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 0 repliesNew
  2. v34 patches 2 repliesSuperseded

Changes in v4 from the cover letter

- add missing patch

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5scripts:recipetool:create_buildsys_python: fix license notescripts/lib/recipetool/create_buildsys_python.py+1 -10 replies
2/5scripts:recipetool:create_buildsys_python: prefix created recipes with python3-meta/lib/oeqa/selftest/cases/recipetool.py scripts/lib/recipetool/create_buildsys_python.py+7 -20 replies
3/5scripts:recipetool:create_buildsys_python: refactor code for futur PEP517 additionscripts/lib/recipetool/create_buildsys_python.py+385 -3630 replies
4/5scripts:recipetool:create_buildsys_python: add PEP517 supportscripts/lib/recipetool/create_buildsys_python.py+267 -10 replies
5/5oeqa/selftest/recipetool: add selftest for PEP-517 recipe creationmeta/lib/oeqa/selftest/cases/recipetool.py+102 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/5] devtool/recipetool: add support of PEP-517

Hello all,

This series adds basic support for PEP-517 in recipetool/devtool, plus somes others fixes.

Recipetool/devtool selftest passed locally

Missing features:
- extra or optionnal dependencies are not handled
- version number for dependencies are not handled (issue already present for the legacy setuptool)
- some projects can declare a minimal pyproject.toml file, and put all the metadata in setup.py/setup.cfg/requirements.txt .. theses cases are not handled. If a pyproject.toml file is found, assumes it has all necessary metadata.

Changes from v3
- add missing patch

Changes from v2:
- try to use tomllib from python core (since 3.11) and if not available, try to import tomli (instead of toml, as tomllib and tomli have both the same api)
- improve support for poetry: poetry looks for metadata into the "tools.poetry" section instead of the "project" section
- add the selftests for the 3 supported backends. Skip the tests if tomliib (python > 3.11) or tomli is not installed
- fix self test failing with the new "python3-" prefix added to recipetool for python recipes

Julien Stephan (5):
scripts:recipetool:create_buildsys_python: fix license note scripts:recipetool:create_buildsys_python: prefix created recipes with
python3-
scripts:recipetool:create_buildsys_python: refactor code for futur
PEP517 addition
scripts:recipetool:create_buildsys_python: add PEP517 support oeqa/selftest/recipetool: add selftest for PEP-517 recipe creation

 meta/lib/oeqa/selftest/cases/recipetool.py    |  106 +-
 .../lib/recipetool/create_buildsys_python.py  | 1019 +++++++++++------
 2 files changed, 760 insertions(+), 365 deletions(-)
Signature · 1 line
2.42.0