diff options
author | Zang Ruochen <zangrc.fnst@cn.fujitsu.com> | 2020-03-20 10:23:01 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-03-20 07:44:29 -0700 |
commit | 64aa85936bb93b3f3670b13592402451bf7663d6 (patch) | |
tree | 3fb213b8705c5e2477e9c81c4a4519a4365dd063 /meta-python | |
parent | ddd3d75b88974de76da631498d2dc8818079a7a4 (diff) | |
download | meta-openembedded-64aa85936bb93b3f3670b13592402451bf7663d6.tar.gz |
python3-yarl: Enable ptest
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r-- | meta-python/recipes-devtools/python/python-yarl.inc | 15 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-yarl/run-ptest | 3 |
2 files changed, 17 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python-yarl.inc b/meta-python/recipes-devtools/python/python-yarl.inc index 98066d73b9..911c79d66f 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" | |||
6 | SRC_URI[md5sum] = "08ba0d6e18f460b44d9e5459f3d217ba" | 6 | SRC_URI[md5sum] = "08ba0d6e18f460b44d9e5459f3d217ba" |
7 | SRC_URI[sha256sum] = "58cd9c469eced558cd81aa3f484b2924e8897049e06889e8ff2510435b7ef74b" | 7 | SRC_URI[sha256sum] = "58cd9c469eced558cd81aa3f484b2924e8897049e06889e8ff2510435b7ef74b" |
8 | 8 | ||
9 | SRC_URI += " \ | ||
10 | file://run-ptest \ | ||
11 | " | ||
12 | |||
9 | PYPI_PACKAGE = "yarl" | 13 | PYPI_PACKAGE = "yarl" |
10 | inherit pypi | 14 | inherit pypi ptest |
11 | RDEPENDS_${PN} = "\ | 15 | RDEPENDS_${PN} = "\ |
12 | ${PYTHON_PN}-multidict \ | 16 | ${PYTHON_PN}-multidict \ |
13 | ${PYTHON_PN}-idna \ | 17 | ${PYTHON_PN}-idna \ |
14 | " | 18 | " |
19 | |||
20 | RDEPENDS_${PN}-ptest += " \ | ||
21 | ${PYTHON_PN}-pytest \ | ||
22 | " | ||
23 | |||
24 | do_install_ptest() { | ||
25 | install -d ${D}${PTEST_PATH}/tests | ||
26 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
27 | } | ||
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 0000000000..f82f6ea1b7 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-yarl/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest | ||