python3-asgiref: 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>
This commit is contained in:
Derek Straka
2025-01-31 01:39:35 +00:00
committed by Khem Raj
parent 0b7b1e2526
commit e5abb3281a
2 changed files with 2 additions and 13 deletions

View File

@@ -1,3 +0,0 @@
#!/bin/sh
pytest --automake

View File

@@ -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"