summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorDerek Straka <derek@asterius.io>2025-01-10 22:31:32 +0000
committerKhem Raj <raj.khem@gmail.com>2025-01-10 16:53:47 -0800
commitb30ddc2259a07e1a1d753ed569fced59a09603c5 (patch)
tree1731852000316df148fe24349fa3b809b9a0d887 /meta-python
parentaf70edb33aa1d31afea32231cd7802d83e2f868f (diff)
downloadmeta-openembedded-b30ddc2259a07e1a1d753ed569fced59a09603c5.tar.gz
python3-smpplib: 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')
-rw-r--r--meta-python/recipes-devtools/python/python3-smpplib/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-smpplib_2.2.3.bb11
2 files changed, 2 insertions, 12 deletions
diff --git a/meta-python/recipes-devtools/python/python3-smpplib/run-ptest b/meta-python/recipes-devtools/python/python3-smpplib/run-ptest
deleted file mode 100644
index 8d2017d39c..0000000000
--- a/meta-python/recipes-devtools/python/python3-smpplib/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@
1#!/bin/sh
2
3pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-smpplib_2.2.3.bb b/meta-python/recipes-devtools/python/python3-smpplib_2.2.3.bb
index 7979f04c5b..2fdd2a4634 100644
--- a/meta-python/recipes-devtools/python/python3-smpplib_2.2.3.bb
+++ b/meta-python/recipes-devtools/python/python3-smpplib_2.2.3.bb
@@ -6,11 +6,7 @@ LIC_FILES_CHKSUM = "file://README.md;md5=8b4e2ac8cf248f7b991784f88b630852"
6PYPI_PACKAGE = "smpplib" 6PYPI_PACKAGE = "smpplib"
7SRC_URI[sha256sum] = "5215a95b0538d26f189600e0982b31da8281f7453cd6e2862c5b21e3e1002331" 7SRC_URI[sha256sum] = "5215a95b0538d26f189600e0982b31da8281f7453cd6e2862c5b21e3e1002331"
8 8
9inherit pypi setuptools3 ptest 9inherit pypi setuptools3 ptest-python-pytest
10
11SRC_URI += " \
12 file://run-ptest \
13"
14 10
15RDEPENDS:${PN} += " \ 11RDEPENDS:${PN} += " \
16 python3-logging \ 12 python3-logging \
@@ -20,12 +16,9 @@ RDEPENDS:${PN} += " \
20RDEPENDS:${PN}-ptest += " \ 16RDEPENDS:${PN}-ptest += " \
21 python3-mock \ 17 python3-mock \
22 python3-profile \ 18 python3-profile \
23 python3-pytest \
24 python3-unittest \
25 python3-unittest-automake-output \
26" 19"
27 20
28do_install_ptest() { 21do_install_ptest:append() {
29 install -d ${D}${PTEST_PATH}/tests 22 install -d ${D}${PTEST_PATH}/tests
30 cp -rf ${S}/smpplib/tests/* ${D}${PTEST_PATH}/tests/ 23 cp -rf ${S}/smpplib/tests/* ${D}${PTEST_PATH}/tests/
31} 24}