diff mbox series

[meta-python,2/5] python3-simpleeval: update recipe to use the ptest-python-pytest class

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

Commit Message

Derek Straka Jan. 10, 2025, 10:31 p.m. UTC
Signed-off-by: Derek Straka <derek@asterius.io>
---
 .../python/python3-simpleeval/run-ptest               |  3 ---
 .../python/python3-simpleeval_1.0.3.bb                | 11 ++---------
 2 files changed, 2 insertions(+), 12 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-simpleeval/run-ptest
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-simpleeval/run-ptest b/meta-python/recipes-devtools/python/python3-simpleeval/run-ptest
deleted file mode 100644
index 8d2017d39..000000000
--- a/meta-python/recipes-devtools/python/python3-simpleeval/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!/bin/sh
-
-pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-simpleeval_1.0.3.bb b/meta-python/recipes-devtools/python/python3-simpleeval_1.0.3.bb
index 4537645c7..b4dc82bfb 100644
--- a/meta-python/recipes-devtools/python/python3-simpleeval_1.0.3.bb
+++ b/meta-python/recipes-devtools/python/python3-simpleeval_1.0.3.bb
@@ -5,21 +5,14 @@  LIC_FILES_CHKSUM = "file://LICENCE;md5=83843c8f0f3beb18af2f282faecbdebe"
 
 SRC_URI[sha256sum] = "67bbf246040ac3b57c29cf048657b9cf31d4e7b9d6659684daa08ca8f1e45829"
 
-inherit pypi python_setuptools_build_meta python_hatchling ptest
+inherit pypi python_setuptools_build_meta python_hatchling ptest-python-pytest
 
 BBCLASSEXTEND = "native nativesdk"
 
-SRC_URI += "file://run-ptest"
-
 RDEPENDS:${PN} += " \
 	python3-math \
 "
 
-RDEPENDS:${PN}-ptest += " \
-    python3-pytest \
-    python3-unittest-automake-output \
-"
-
-do_install_ptest() {
+do_install_ptest:append() {
 	cp -f ${S}/test_simpleeval.py ${D}${PTEST_PATH}/
 }