summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-python/recipes-devtools/python/python-yappi.inc18
-rw-r--r--meta-python/recipes-devtools/python/python3-yappi/run-ptest3
2 files changed, 20 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python-yappi.inc b/meta-python/recipes-devtools/python/python-yappi.inc
index b3718d7d1..d6e9d4ed6 100644
--- a/meta-python/recipes-devtools/python/python-yappi.inc
+++ b/meta-python/recipes-devtools/python/python-yappi.inc
@@ -7,10 +7,26 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;md5=9a193c13f346884e597acdcac7fe9ac8"
7SRC_URI[md5sum] = "a545101aa8a435b0780f06f4723f58c8" 7SRC_URI[md5sum] = "a545101aa8a435b0780f06f4723f58c8"
8SRC_URI[sha256sum] = "7f814131515d51db62b1a3468bcb84de30499124752806a5a6e11caf0b4344bf" 8SRC_URI[sha256sum] = "7f814131515d51db62b1a3468bcb84de30499124752806a5a6e11caf0b4344bf"
9 9
10inherit pypi setuptools3 10SRC_URI += " \
11 file://run-ptest \
12"
13
14inherit pypi setuptools3 ptest
11 15
12RDEPENDS_${PN} += "\ 16RDEPENDS_${PN} += "\
13 ${PYTHON_PN}-datetime \ 17 ${PYTHON_PN}-datetime \
14 ${PYTHON_PN}-pickle \ 18 ${PYTHON_PN}-pickle \
15 ${PYTHON_PN}-threading \ 19 ${PYTHON_PN}-threading \
16 " 20 "
21
22RDEPENDS_${PN}-ptest += " \
23 ${PYTHON_PN}-pytest \
24 ${PYTHON_PN}-multiprocessing \
25 ${PYTHON_PN}-profile \
26"
27
28do_install_ptest() {
29 install -d ${D}${PTEST_PATH}/tests
30 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
31 cp -f ${S}/yappi.py ${D}/${PTEST_PATH}/
32}
diff --git a/meta-python/recipes-devtools/python/python3-yappi/run-ptest b/meta-python/recipes-devtools/python/python3-yappi/run-ptest
new file mode 100644
index 000000000..5cec71169
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-yappi/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest