python3-execnet: Add ptests

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
This commit is contained in:
Khem Raj
2021-06-22 20:41:46 -07:00
parent 0b19534f5e
commit 9e456c6908
2 changed files with 16 additions and 4 deletions

View File

@@ -6,13 +6,22 @@ HOMEPAGE = "https://execnet.readthedocs.io/en/latest/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=772fcdaca14b378878d05c7d857e6c3e"
SRC_URI[sha256sum] = "8f694f3ba9cc92cab508b152dcfe322153975c29bda272e2fd7f3f00f36e47c5"
DEPENDS += "python3-pip-native"
inherit pypi setuptools3
SRC_URI += "file://run-ptest \
"
SRC_URI[sha256sum] = "8f694f3ba9cc92cab508b152dcfe322153975c29bda272e2fd7f3f00f36e47c5"
PACKAGECONFIG[testing] = ",,,python3-pre-commit"
inherit ptest pypi setuptools3
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/testing/* ${D}${PTEST_PATH}/tests/
}
RDEPENDS_${PN}-ptest += "\
python3-pytest \
"
RDEPENDS_${PN} += "python3-core python3-crypt python3-ctypes python3-fcntl python3-io python3-shell python3-threading"