python3-lz4: 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-30 21:57:23 +00:00
committed by Khem Raj
parent 25a4213b12
commit 23d5e7b0bb
2 changed files with 2 additions and 10 deletions

View File

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

View File

@@ -9,24 +9,19 @@ DEPENDS += " \
python3-pkgconfig-native \
"
SRC_URI += "file://run-ptest"
SRC_URI[sha256sum] = "01fe674ef2889dbb9899d8a67361e0c4a2c833af5aeb37dd505727cf5d2a131e"
inherit pkgconfig pypi python_setuptools_build_meta ptest
inherit pkgconfig pypi python_setuptools_build_meta ptest-python-pytest
RDEPENDS:${PN}-ptest += "\
python3-coverage \
python3-pytest \
python3-pytest-cov \
python3-pytest-runner \
python3-multiprocessing \
python3-psutil \
python3-unittest-automake-output \
"
do_install_ptest() {
cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
do_install_ptest:append () {
# The stream API is experimental and not enabled yet, so don't ship the test suite
rm -rf ${D}${PTEST_PATH}/tests/stream
}