From 9b318ba90bcce48f4a87a71a4e05df14d5b6294b Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Mon, 15 Jun 2020 22:39:09 +0800 Subject: python3-iso3166: Enable ptest -Consolidate into a single file. Signed-off-by: Zang Ruochen Acked-by: Trevor Gamblin Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-iso3166_1.0.1.bb | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'meta-python/recipes-devtools/python/python3-iso3166_1.0.1.bb') diff --git a/meta-python/recipes-devtools/python/python3-iso3166_1.0.1.bb b/meta-python/recipes-devtools/python/python3-iso3166_1.0.1.bb index 23fc4eb75c..36f9c911b8 100644 --- a/meta-python/recipes-devtools/python/python3-iso3166_1.0.1.bb +++ b/meta-python/recipes-devtools/python/python3-iso3166_1.0.1.bb @@ -6,7 +6,20 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5e2f4edc7e7408a82e4a1d05f229b695" SRC_URI[md5sum] = "53c313c7ae8721e40ddd5e7a01bbcb7e" SRC_URI[sha256sum] = "b1e58dbcf50fbb2c9c418ec7a6057f0cdb30b8f822ac852f72e71ba769dae8c5" -inherit pypi setuptools3 +inherit pypi setuptools3 ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} RDEPENDS_${PN} += "python3-numbers" -- cgit v1.2.3-54-g00ecf