| Message ID | 20251118072435.4104724-1-raj.khem@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-python,v2] python3-python-dotenv: Add missing rdep on click module and coreutils | expand |
On Tue, Nov 18, 2025 at 3:24 PM Khem Raj via lists.openembedded.org <raj.khem=gmail.com@lists.openembedded.org> wrote: > Needed for ptests to pass > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > --- > v2: Add coreutils dep for printenv utility used in ptests > > .../recipes-devtools/python/python3-python-dotenv_1.2.1.bb | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/meta-python/recipes-devtools/python/ > python3-python-dotenv_1.2.1.bb b/meta-python/recipes-devtools/python/ > python3-python-dotenv_1.2.1.bb > index 58784fcf2e..a63bd7ae28 100644 > --- a/meta-python/recipes-devtools/python/python3-python-dotenv_1.2.1.bb > +++ b/meta-python/recipes-devtools/python/python3-python-dotenv_1.2.1.bb > @@ -11,12 +11,14 @@ SRC_URI += > "file://0001-test_main.py-skip-two-test-when-running-as-root.patch" > inherit pypi python_setuptools_build_meta ptest-python-pytest > > # Uncomment this line to enable all the optional features. > -#PACKAGECONFIG ?= "cli" > +PACKAGECONFIG ?= "" > +PACKAGECONFIG:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', > ' cli', '', d)}" > Should this use PTEST_ENABLED instead in case there's a native version of this recipe in future?
diff --git a/meta-python/recipes-devtools/python/python3-python-dotenv_1.2.1.bb b/meta-python/recipes-devtools/python/python3-python-dotenv_1.2.1.bb index 58784fcf2e..a63bd7ae28 100644 --- a/meta-python/recipes-devtools/python/python3-python-dotenv_1.2.1.bb +++ b/meta-python/recipes-devtools/python/python3-python-dotenv_1.2.1.bb @@ -11,12 +11,14 @@ SRC_URI += "file://0001-test_main.py-skip-two-test-when-running-as-root.patch" inherit pypi python_setuptools_build_meta ptest-python-pytest # Uncomment this line to enable all the optional features. -#PACKAGECONFIG ?= "cli" +PACKAGECONFIG ?= "" +PACKAGECONFIG:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', ' cli', '', d)}" PACKAGECONFIG[cli] = ",,,python3-click" PYPI_PACKAGE = "python_dotenv" UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" RDEPENDS:${PN}-ptest += "\ + coreutils \ python3-sh \ "
Needed for ptests to pass Signed-off-by: Khem Raj <raj.khem@gmail.com> --- v2: Add coreutils dep for printenv utility used in ptests .../recipes-devtools/python/python3-python-dotenv_1.2.1.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)