From 393ed2a056f26a2dd674dcff20be4d1a30c22113 Mon Sep 17 00:00:00 2001 From: Zheng Ruoqin Date: Tue, 16 Jun 2020 01:31:41 +0800 Subject: python3-dnspython: Enable ptest Signed-off-by: Zheng Ruoqin Acked-by: Trevor Gamblin Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-dnspython_1.16.0.bb | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'meta-python/recipes-devtools/python/python3-dnspython_1.16.0.bb') diff --git a/meta-python/recipes-devtools/python/python3-dnspython_1.16.0.bb b/meta-python/recipes-devtools/python/python3-dnspython_1.16.0.bb index cb255442f4..66cd883632 100644 --- a/meta-python/recipes-devtools/python/python3-dnspython_1.16.0.bb +++ b/meta-python/recipes-devtools/python/python3-dnspython_1.16.0.bb @@ -8,7 +8,20 @@ SRC_URI[sha256sum] = "36c5e8e38d4369a08b6780b7f27d790a292b2b08eea01607865bf0936c PYPI_PACKAGE_EXT = "zip" -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} += " \ ${PYTHON_PN}-crypt \ -- cgit v1.2.3-54-g00ecf