diff mbox series

[meta-python,v3] python3-python-dotenv: Add missing rdep on click module and coreutils

Message ID 20251118175420.1699182-1-raj.khem@gmail.com
State New
Headers show
Series [meta-python,v3] python3-python-dotenv: Add missing rdep on click module and coreutils | expand

Commit Message

Khem Raj Nov. 18, 2025, 5:54 p.m. UTC
Needed for ptests to pass

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
v2: Add coreutils dep for printenv utility used in ptests
v3: Use PTEST_ENABLED for check instead of distro feature

 .../recipes-devtools/python/python3-python-dotenv_1.2.1.bb    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

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..22b976dd9c 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('PTEST_ENABLED', '1', ' cli', '', d)}"
 PACKAGECONFIG[cli] = ",,,python3-click"

 PYPI_PACKAGE = "python_dotenv"
 UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"

 RDEPENDS:${PN}-ptest += "\
+    coreutils \
     python3-sh \
 "