From 7e4947d0b019f33e73cdb18ce0ac5662d7e2184e Mon Sep 17 00:00:00 2001 From: Ever ATILANO Date: Fri, 24 Mar 2023 15:41:48 +0100 Subject: meta-python: python3-path: Add ptest Signed-off-by: Ever ATILANO Signed-off-by: Yoann Congal Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-path/run-ptest | 3 +++ .../recipes-devtools/python/python3-path_16.6.0.bb | 21 ++++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-path/run-ptest 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 @@ +#!/bin/sh + +pytest --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" SRC_URI[sha256sum] = "bea3816e1d54f4e33aac78d2031a0b0ed2f95e69db85b45d51f17df97071da69" -inherit pypi python_setuptools_build_meta +SRC_URI += "\ + file://run-ptest \ +" + +inherit pypi python_setuptools_build_meta ptest DEPENDS += "python3-setuptools-scm-native" +RDEPENDS:${PN} += " \ + ${PYTHON_PN}-appdirs \ +" +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-unittest-automake-output \ +" + BBCLASSEXTEND = "nativesdk native" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/test + cp -rf ${S}/test_* ${D}${PTEST_PATH}/test/ + install -d ${D}${PTEST_PATH}/path + cp -rf ${S}/path/* ${D}${PTEST_PATH}/path/ +} -- cgit v1.2.3-54-g00ecf