[oe] [meta-python] [PATCH] python3-yarl: Enable ptest
Zang Ruochen
zangrc.fnst at cn.fujitsu.com
Fri Mar 20 02:23:01 UTC 2020
Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
---
.../recipes-devtools/python/python-yarl.inc | 15 ++++++++++++++-
.../python/python3-yarl/run-ptest | 3 +++
2 files changed, 17 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-yarl/run-ptest
diff --git a/meta-python/recipes-devtools/python/python-yarl.inc b/meta-python/recipes-devtools/python/python-yarl.inc
index 98066d73b..911c79d66 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 000000000..f82f6ea1b
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-yarl/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest
--
2.20.1
More information about the Openembedded-devel
mailing list