summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEver ATILANO <ever.atilano@smile.fr>2023-03-24 15:41:48 +0100
committerKhem Raj <raj.khem@gmail.com>2023-04-05 15:57:09 -0700
commit7e4947d0b019f33e73cdb18ce0ac5662d7e2184e (patch)
tree8ef2266d172b69526f9eef5a9be9ae28172293d1
parent2e0a581bee7fc15a78f6e19ba1e596930edee414 (diff)
downloadmeta-openembedded-7e4947d0b019f33e73cdb18ce0ac5662d7e2184e.tar.gz
meta-python: python3-path: Add ptest
Signed-off-by: Ever ATILANO <ever.atilano@smile.fr> Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-python/recipes-devtools/python/python3-path/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-path_16.6.0.bb21
2 files changed, 23 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-path/run-ptest b/meta-python/recipes-devtools/python/python3-path/run-ptest
new file mode 100644
index 0000000000..8d2017d39c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-path/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-path_16.6.0.bb b/meta-python/recipes-devtools/python/python3-path_16.6.0.bb
index 41fe374619..479177ed78 100644
--- a/meta-python/recipes-devtools/python/python3-path_16.6.0.bb
+++ b/meta-python/recipes-devtools/python/python3-path_16.6.0.bb
@@ -4,8 +4,27 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6"
4 4
5SRC_URI[sha256sum] = "bea3816e1d54f4e33aac78d2031a0b0ed2f95e69db85b45d51f17df97071da69" 5SRC_URI[sha256sum] = "bea3816e1d54f4e33aac78d2031a0b0ed2f95e69db85b45d51f17df97071da69"
6 6
7inherit pypi python_setuptools_build_meta 7SRC_URI += "\
8 file://run-ptest \
9"
10
11inherit pypi python_setuptools_build_meta ptest
8 12
9DEPENDS += "python3-setuptools-scm-native" 13DEPENDS += "python3-setuptools-scm-native"
10 14
15RDEPENDS:${PN} += " \
16 ${PYTHON_PN}-appdirs \
17"
18RDEPENDS:${PN}-ptest += " \
19 ${PYTHON_PN}-pytest \
20 ${PYTHON_PN}-unittest-automake-output \
21"
22
11BBCLASSEXTEND = "nativesdk native" 23BBCLASSEXTEND = "nativesdk native"
24
25do_install_ptest() {
26 install -d ${D}${PTEST_PATH}/test
27 cp -rf ${S}/test_* ${D}${PTEST_PATH}/test/
28 install -d ${D}${PTEST_PATH}/path
29 cp -rf ${S}/path/* ${D}${PTEST_PATH}/path/
30}