python3-configobj: 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:29 +00:00 committed by Khem Raj
parent 96c9661005
commit 00cb259fbd
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

@ -5,23 +5,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e2df3cb285297a24cd1097dfe6e96f95"
SRC_URI[sha256sum] = "03c881bbf23aa07bccf1b837005975993c4ab4427ba57f959afdd9d1a2386848" SRC_URI[sha256sum] = "03c881bbf23aa07bccf1b837005975993c4ab4427ba57f959afdd9d1a2386848"
inherit pypi python_setuptools_build_meta ptest inherit pypi python_setuptools_build_meta ptest-python-pytest
SRC_URI += " \ PTEST_PYTEST_DIR = "src/tests"
file://run-ptest \
"
RDEPENDS:${PN} += " \ RDEPENDS:${PN} += " \
python3-pprint \ python3-pprint \
python3-six \ python3-six \
" "
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/src/tests/* ${D}${PTEST_PATH}/tests/
}