python3-cachetools: 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:31 +00:00
committed by Khem Raj
parent 18bd0aade7
commit 34f3776250
2 changed files with 1 additions and 18 deletions

View File

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

View File

@@ -8,26 +8,12 @@ SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=539275e657c6b7af026bb908356f7541"
inherit pypi python_setuptools_build_meta ptest
SRC_URI += " \
file://run-ptest \
"
inherit pypi python_setuptools_build_meta ptest-python-pytest
RDEPENDS:${PN} += " \
python3-math \
"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}
SRC_URI[sha256sum] = "70f238fbba50383ef62e55c6aff6d9673175fe59f7c6782c7a0b9e38f4a9df95"
BBCLASSEXTEND = "native nativesdk"