@@ -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 \
"
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(-)