[oe-commits] [meta-openembedded] 08/12: python3-yarl: Enable ptest

git at git.openembedded.org git at git.openembedded.org
Fri Mar 20 14:46:44 UTC 2020


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit 64aa85936bb93b3f3670b13592402451bf7663d6
Author: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
AuthorDate: Fri Mar 20 10:23:01 2020 +0800

    python3-yarl: Enable ptest
    
    Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-python/recipes-devtools/python/python-yarl.inc       | 15 ++++++++++++++-
 .../recipes-devtools/python/python3-yarl/run-ptest        |  3 +++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/meta-python/recipes-devtools/python/python-yarl.inc b/meta-python/recipes-devtools/python/python-yarl.inc
index 98066d7..911c79d 100644
--- a/meta-python/recipes-devtools/python/python-yarl.inc
+++ b/meta-python/recipes-devtools/python/python-yarl.inc
@@ -6,9 +6,22 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b334fc90d45983db318f54fd5bf6c90b"
 SRC_URI[md5sum] = "08ba0d6e18f460b44d9e5459f3d217ba"
 SRC_URI[sha256sum] = "58cd9c469eced558cd81aa3f484b2924e8897049e06889e8ff2510435b7ef74b"
 
+SRC_URI += " \
+	file://run-ptest \
+"
+
 PYPI_PACKAGE = "yarl"
-inherit pypi
+inherit pypi ptest
 RDEPENDS_${PN} = "\
     ${PYTHON_PN}-multidict \
     ${PYTHON_PN}-idna \
 "
+
+RDEPENDS_${PN}-ptest += " \
+	${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+	install -d ${D}${PTEST_PATH}/tests
+	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
diff --git a/meta-python/recipes-devtools/python/python3-yarl/run-ptest b/meta-python/recipes-devtools/python/python3-yarl/run-ptest
new file mode 100644
index 0000000..f82f6ea
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-yarl/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list