python3-tzdata: 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-10 20:08:20 +00:00 committed by Khem Raj
parent 9d3ffd74b9
commit d61a246a55
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 2 additions and 12 deletions

View File

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

View File

@ -6,20 +6,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=fca9fd5c15a28eb874ba38577a585d48 \
SRC_URI[sha256sum] = "7d85cc416e9382e69095b7bdf4afd9e3880418a2413feec7069d533d6b4e31cc"
inherit pypi python_setuptools_build_meta
inherit ptest
SRC_URI += "file://run-ptest"
inherit pypi python_setuptools_build_meta ptest-python-pytest
RDEPENDS:${PN}-ptest += "\
python3-attrs \
python3-pytest \
python3-pytest-subtests \
python3-unittest-automake-output \
"
do_install_ptest() {
cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
do_install_ptest:append() {
install ${S}/VERSION ${D}${PTEST_PATH}/
}