Skip to contentSkip to conversation

python3-python-dotenv: Add missing rdep on click module and coreutils

PATCH Superseded Khem Raj 2 participants 3 messages Nov 18, 2025

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 python3-python-dotenv: Add missing rdep on click module and coreutils

Needed for ptests to pass

---
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(-)
meta-python/recipes-devtools/python/python3-python-dotenv_1.2.1.bb +3 -1
index 58784fcf2e..a63bd7ae28 100644
@@ -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 \
 "
#1 lore raw
Quoted 23 lines · Khem Raj via lists.openembedded.org

Needed for ptests to pass

---
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(-)
(quoted diff) +0 -0

python3-python-dotenv_1.2.1.bb b/meta-python/recipes-devtools/python/ python3-python-dotenv_1.2.1.bb
index 58784fcf2e..a63bd7ae28 100644

meta-python/recipes-devtools/python/python3-python-dotenv_1.2.1.bb +0 -0
@@ -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.

meta-python/recipes-devtools/python/python3-python-dotenv_1.2.1.bb +2 -1
-#PACKAGECONFIG ?= "cli"
+PACKAGECONFIG ?= ""
+PACKAGECONFIG:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest',
Quoted 2 lines

' cli', '', d)}"

Should this use PTEST_ENABLED instead in case there's a native version of this recipe in future?

author
#2 lore raw
Quoted 24 lines · Anuj Mittal
Quoted 19 lines · Khem Raj via lists.openembedded.org

Needed for ptests to pass

---
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(-)
(quoted diff) +0 -0

python3-python-dotenv_1.2.1.bb b/meta-python/recipes-devtools/python/ python3-python-dotenv_1.2.1.bb
index 58784fcf2e..a63bd7ae28 100644

meta-python/recipes-devtools/python/python3-python-dotenv_1.2.1.bb +0 -0
@@ -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

Quoted 10 lines
Quoted 6 lines

# Uncomment this line to enable all the optional features.

meta-python/recipes-devtools/python/python3-python-dotenv_1.2.1.bb +2 -1
-#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?

yes, that is a better check