diff mbox series

[meta-python,2/3] python3-tomli-w: update recipe to use the ptest-python-pytest class

Message ID 20250110205729.4088028-2-derek@asterius.io
State Accepted
Headers show
Series [meta-python,1/3] python3-tomlkit: update recipe to use the ptest-python-pytest class | expand

Commit Message

Derek Straka Jan. 10, 2025, 8:57 p.m. UTC
Signed-off-by: Derek Straka <derek@asterius.io>
---
 .../python/python3-tomli-w/run-ptest                 |  3 ---
 .../recipes-devtools/python/python3-tomli-w_1.1.0.bb | 12 ++----------
 2 files changed, 2 insertions(+), 13 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-tomli-w/run-ptest
diff mbox series

Patch

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 8d2017d39..000000000
--- a/meta-python/recipes-devtools/python/python3-tomli-w/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!/bin/sh
-
-pytest --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 dded2cbf4..94ea20049 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"
 SRCREV = "179105660c367874818f2cdd1e06ed98eea668f1"
 PYPI_SRC_URI = "git://github.com/hukkin/tomli-w.git;protocol=https;branch=master"
 
-inherit pypi python_flit_core ptest
+inherit pypi python_flit_core ptest-python-pytest
 
 S = "${WORKDIR}/git"
 
-SRC_URI += " \
-        file://run-ptest \
-"
-
 RDEPENDS:${PN}-ptest += " \
-        python3-pytest \
         python3-tomli \
-        python3-unittest-automake-output \
 "
 
-do_install_ptest() {
-        install -d ${D}${PTEST_PATH}/tests
+do_install_ptest:append() {
         install -d ${D}${PTEST_PATH}/benchmark
-        cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
         cp -rf ${S}/benchmark/* ${D}${PTEST_PATH}/benchmark/
 }