summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/python/python3-attrs/run-ptest3
-rw-r--r--meta/recipes-devtools/python/python3-attrs_23.2.0.bb18
2 files changed, 20 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-attrs/run-ptest b/meta/recipes-devtools/python/python3-attrs/run-ptest
new file mode 100644
index 0000000000..8d2017d39c
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-attrs/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake
diff --git a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
index e00e152015..7b6a6bd94c 100644
--- a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
+++ b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
@@ -5,7 +5,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5e55731824cf9205cfabeab9a0600887"
5 5
6SRC_URI[sha256sum] = "935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30" 6SRC_URI[sha256sum] = "935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30"
7 7
8inherit pypi python_hatchling 8inherit pypi ptest python_hatchling
9
10SRC_URI += " \
11 file://run-ptest \
12"
9 13
10DEPENDS += " \ 14DEPENDS += " \
11 python3-hatch-vcs-native \ 15 python3-hatch-vcs-native \
@@ -18,4 +22,16 @@ RDEPENDS:${PN}+= " \
18 python3-crypt \ 22 python3-crypt \
19" 23"
20 24
25RDEPENDS:${PN}-ptest += " \
26 ${PYTHON_PN}-hypothesis \
27 ${PYTHON_PN}-pytest \
28 ${PYTHON_PN}-unittest-automake-output \
29"
30
31do_install_ptest() {
32 install -d ${D}${PTEST_PATH}/tests
33 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
34 install ${S}/conftest.py ${D}${PTEST_PATH}/
35}
36
21BBCLASSEXTEND = "native nativesdk" 37BBCLASSEXTEND = "native nativesdk"