diff mbox series

[meta-python,05/11] python3-configobj: update recipe to use the ptest-python-pytest class

Message ID 20250131013935.3714521-5-derek@asterius.io
State Accepted
Headers show
Series [meta-python,01/11] python3-dasbus: update recipe to use the ptest-python-pytest class | expand

Commit Message

Derek Straka Jan. 31, 2025, 1:39 a.m. UTC
Signed-off-by: Derek Straka <derek@asterius.io>
---
 .../python/python3-configobj/run-ptest           |  3 ---
 .../python/python3-configobj_5.0.9.bb            | 16 ++--------------
 2 files changed, 2 insertions(+), 17 deletions(-)
 delete mode 100755 meta-python/recipes-devtools/python/python3-configobj/run-ptest
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-configobj/run-ptest b/meta-python/recipes-devtools/python/python3-configobj/run-ptest
deleted file mode 100755
index 8d2017d39c..0000000000
--- a/meta-python/recipes-devtools/python/python3-configobj/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!/bin/sh
-
-pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb b/meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb
index d41d71a4ea..bd4764f4de 100644
--- a/meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb
+++ b/meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb
@@ -5,23 +5,11 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=e2df3cb285297a24cd1097dfe6e96f95"
 
 SRC_URI[sha256sum] = "03c881bbf23aa07bccf1b837005975993c4ab4427ba57f959afdd9d1a2386848"
 
-inherit pypi python_setuptools_build_meta ptest
+inherit pypi python_setuptools_build_meta ptest-python-pytest
 
-SRC_URI += " \
-	file://run-ptest \
-"
+PTEST_PYTEST_DIR = "src/tests"
 
 RDEPENDS:${PN} += " \
 	python3-pprint \
 	python3-six \
 "
-
-RDEPENDS:${PN}-ptest += " \
-	python3-pytest \
-	python3-unittest-automake-output \
-"
-
-do_install_ptest() {
-	install -d ${D}${PTEST_PATH}/tests
-	cp -rf ${S}/src/tests/* ${D}${PTEST_PATH}/tests/
-}