python3-semver: 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 18:59:35 +00:00 committed by Khem Raj
parent 67d94fecb0
commit 1f3fae9374
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

@ -6,21 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d9da679db3bdce30a1b4328d5c474f98"
SRC_URI[sha256sum] = "6253adb39c70f6e51afed2fa7152bcd414c411286088fb4b9effb133885ab4cc"
inherit pypi python_setuptools_build_meta ptest
inherit pypi python_setuptools_build_meta ptest-python-pytest
BBCLASSEXTEND = "native nativesdk"
SRC_URI += " \
file://run-ptest \
"
DEPENDS += " python3-setuptools-scm-native"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
"
do_install_ptest() {
cp -rf ${S}/tests ${D}${PTEST_PATH}/
}