summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
diff options
context:
space:
mode:
authorDerek Straka <derek@asterius.io>2025-01-10 20:57:28 +0000
committerKhem Raj <raj.khem@gmail.com>2025-01-10 16:53:46 -0800
commit5dd9806ac226fa689cb5b68c13f922058f39b4f1 (patch)
tree07648e23b96ff58ce49d2299f53a17be289ade25 /meta-python/recipes-devtools/python
parent9bcd41e7b08fbcf59f7679e05a03f911cadcafd4 (diff)
downloadmeta-openembedded-5dd9806ac226fa689cb5b68c13f922058f39b4f1.tar.gz
python3-tomli-w: update recipe to use the ptest-python-pytest class
Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r--meta-python/recipes-devtools/python/python3-tomli-w/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-tomli-w_1.1.0.bb12
2 files changed, 2 insertions, 13 deletions
diff --git a/meta-python/recipes-devtools/python/python3-tomli-w/run-ptest b/meta-python/recipes-devtools/python/python3-tomli-w/run-ptest
deleted file mode 100644
index 8d2017d39c..0000000000
--- a/meta-python/recipes-devtools/python/python3-tomli-w/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@
1#!/bin/sh
2
3pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-tomli-w_1.1.0.bb b/meta-python/recipes-devtools/python/python3-tomli-w_1.1.0.bb
index dded2cbf42..94ea20049f 100644
--- a/meta-python/recipes-devtools/python/python3-tomli-w_1.1.0.bb
+++ b/meta-python/recipes-devtools/python/python3-tomli-w_1.1.0.bb
@@ -6,24 +6,16 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=aaaaf0879d17df0110d1aa8c8c9f46f5"
6SRCREV = "179105660c367874818f2cdd1e06ed98eea668f1" 6SRCREV = "179105660c367874818f2cdd1e06ed98eea668f1"
7PYPI_SRC_URI = "git://github.com/hukkin/tomli-w.git;protocol=https;branch=master" 7PYPI_SRC_URI = "git://github.com/hukkin/tomli-w.git;protocol=https;branch=master"
8 8
9inherit pypi python_flit_core ptest 9inherit pypi python_flit_core ptest-python-pytest
10 10
11S = "${WORKDIR}/git" 11S = "${WORKDIR}/git"
12 12
13SRC_URI += " \
14 file://run-ptest \
15"
16
17RDEPENDS:${PN}-ptest += " \ 13RDEPENDS:${PN}-ptest += " \
18 python3-pytest \
19 python3-tomli \ 14 python3-tomli \
20 python3-unittest-automake-output \
21" 15"
22 16
23do_install_ptest() { 17do_install_ptest:append() {
24 install -d ${D}${PTEST_PATH}/tests
25 install -d ${D}${PTEST_PATH}/benchmark 18 install -d ${D}${PTEST_PATH}/benchmark
26 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
27 cp -rf ${S}/benchmark/* ${D}${PTEST_PATH}/benchmark/ 19 cp -rf ${S}/benchmark/* ${D}${PTEST_PATH}/benchmark/
28} 20}
29 21