python3-cbor2: 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:32 +00:00 committed by Khem Raj
parent 34f3776250
commit 217c9d3d1d
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 1 additions and 14 deletions

View File

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

View File

@ -4,21 +4,11 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a79e64179819c7ce293372c059f1dbd8"
DEPENDS += "python3-setuptools-scm-native"
SRC_URI[sha256sum] = "b682820677ee1dbba45f7da11898d2720f92e06be36acec290867d5ebf3d7e09"
SRC_URI += " \
file://run-ptest \
"
inherit pypi python_setuptools_build_meta ptest
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}
inherit pypi python_setuptools_build_meta ptest-python-pytest
RDEPENDS:${PN}-ptest += " \
python3-hypothesis \
python3-pytest \
python3-unittest-automake-output \
python3-unixadmin \
"
RDEPENDS:${PN} += " \