diff mbox series

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

Message ID 20250131013935.3714521-11-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-asgiref/run-ptest                 |  3 ---
 .../recipes-devtools/python/python3-asgiref_3.8.1.bb | 12 ++----------
 2 files changed, 2 insertions(+), 13 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-asgiref/run-ptest
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-asgiref/run-ptest b/meta-python/recipes-devtools/python/python3-asgiref/run-ptest
deleted file mode 100644
index 8d2017d39c..0000000000
--- a/meta-python/recipes-devtools/python/python3-asgiref/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!/bin/sh
-
-pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-asgiref_3.8.1.bb b/meta-python/recipes-devtools/python/python3-asgiref_3.8.1.bb
index 3b90eda5bb..5d68b3e3f9 100644
--- a/meta-python/recipes-devtools/python/python3-asgiref_3.8.1.bb
+++ b/meta-python/recipes-devtools/python/python3-asgiref_3.8.1.bb
@@ -4,27 +4,19 @@  SECTION = "devel/python"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f09eb47206614a4954c51db8a94840fa"
 
-SRC_URI += "file://run-ptest \
-	    "
 
 SRC_URI[sha256sum] = "c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590"
 
 export BUILD_SYS
 export HOST_SYS
 
-inherit pypi ptest setuptools3
+inherit pypi ptest-python-pytest setuptools3
 
 RDEPENDS:${PN}-ptest += " \
     python3-asyncio \
     python3-io \
     python3-multiprocessing \
-    python3-pytest \
-    python3-unittest-automake-output \
+    python3-pytest-asyncio \
 "
 
-do_install_ptest() {
-    install -d ${D}${PTEST_PATH}/tests
-    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
-}
-
 BBCLASSEXTEND = "native nativesdk"