python3-ptyprocess: 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-17 20:30:26 +00:00 committed by Khem Raj
parent 57d6a4ea1f
commit 569cffbd06
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 1 additions and 16 deletions

View File

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

View File

@ -9,7 +9,7 @@ SRCNAME = "ptyprocess"
SRC_URI += "file://a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch"
SRC_URI[sha256sum] = "5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220"
inherit pypi python_flit_core
inherit pypi python_flit_core ptest-python-pytest
S = "${WORKDIR}/${SRCNAME}-${PV}"
@ -22,22 +22,10 @@ RDEPENDS:${PN} = "\
BBCLASSEXTEND = "native nativesdk"
inherit ptest
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
bash \
python3-fcntl \
python3-pytest \
python3-resource \
python3-terminal \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}