python3-appdirs: 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:34 +00:00 committed by Khem Raj
parent dc2c314826
commit 0b7b1e2526
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 2 additions and 17 deletions

View File

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

View File

@ -2,22 +2,10 @@ SUMMARY = "A small Python module for determining appropriate + platform-specific
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=31625363c45eb0c67c630a2f73e438e4"
SRC_URI += " \
file://run-ptest \
"
SRC_URI[sha256sum] = "7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"
inherit pypi setuptools3 ptest
inherit pypi setuptools3 ptest-python-pytest
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/test
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
}
PTEST_PYTEST_DIR = "test"
BBCLASSEXTEND = "native nativesdk"