meta-openembedded/meta-python/recipes-devtools/python/python3-yappi_1.3.2.bb
Trevor Gamblin f342637131 python3-yappi: fix ptests
- Add a patch to fix imports in unit tests
- Add python3-gevent and python3-zopeinterface to ptest RDEPENDS
- Sort ptest RDEPENDS alphabetically

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-06-09 08:45:24 -07:00

35 lines
832 B
BlitzBasic

SUMMARY = "Yet Another Python Profiler"
HOMEPAGE = "https://github.com/sumerc/yappi"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=71c208c9a4fd864385eb69ad4caa3bee"
SRC_URI[sha256sum] = "a51d3e6e5563cc74b5bb82ed6e7bd44a9c1a7eae3d97e4d52e9465edb3a8da8d"
SRC_URI += " \
file://run-ptest \
file://0001-Fix-imports-for-ptests.patch \
"
inherit pypi setuptools3 ptest
RDEPENDS_${PN} += "\
${PYTHON_PN}-datetime \
${PYTHON_PN}-pickle \
${PYTHON_PN}-threading \
"
RDEPENDS_${PN}-ptest += " \
${PYTHON_PN}-gevent \
${PYTHON_PN}-multiprocessing \
${PYTHON_PN}-pytest \
${PYTHON_PN}-profile \
${PYTHON_PN}-zopeinterface \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
cp -f ${S}/yappi/yappi.py ${D}/${PTEST_PATH}/
}