Skip to contentSkip to conversation

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

PATCH New Khem Raj 1 participant 1 message Nov 18, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v3 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
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(-)
meta-python/recipes-devtools/python/python3-python-dotenv_1.2.1.bb +3 -1
index 58784fcf2e..22b976dd9c 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('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 \
 "