Re: [OE-core] [PATCH v3 0/4] devtool/recipetool: add support of PEP-517
Le mer. 25 oct. 2023 à 16:11, Richard Purdie a écrit : > > On Tue, 2023-10-24 at 16:40 +0200, Julien Stephan wrote: > > 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 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 > > This patch series still doesn't seem to apply against master. Could you > check your rebase is ok or if there is a patch missing or something? Hi Richard, Yes, I forgot the first patch of the series. Just sent a v4 fixing this. Thank you Cheers Julien > > Cheers, > > Richard -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#189688): https://lists.openembedded.org/g/openembedded-core/message/189688 Mute This Topic: https://lists.openembedded.org/mt/102158953/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [OE-core] [PATCH v3 0/4] devtool/recipetool: add support of PEP-517
On Tue, 2023-10-24 at 16:40 +0200, Julien Stephan wrote: > 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 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 This patch series still doesn't seem to apply against master. Could you check your rebase is ok or if there is a patch missing or something? Cheers, Richard -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#189679): https://lists.openembedded.org/g/openembedded-core/message/189679 Mute This Topic: https://lists.openembedded.org/mt/102158953/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[OE-core] [PATCH v3 0/4] 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 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 (4): 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 | 1017 +++-- 2 files changed, 759 insertions(+), 364 deletions(-) -- 2.42.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#189648): https://lists.openembedded.org/g/openembedded-core/message/189648 Mute This Topic: https://lists.openembedded.org/mt/102158953/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-