python3-python-multipart: 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-17 18:59:42 +00:00 committed by Khem Raj
parent dc556825e9
commit 90ab0bc4fe
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,22 +4,12 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3d98f0d58b28321924a89ab60c82410e"
SRC_URI[sha256sum] = "8dd0cab45b8e23064ae09147625994d090fa46f5b0d1e13af944c331a7fa9d13"
inherit pypi python_hatchling ptest
inherit pypi python_hatchling ptest-python-pytest
PYPI_PACKAGE = "python_multipart"
UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-pyyaml \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}