python3-gpt-image: Use PEP-517 build backend

Switch to using ptest-python-pytest and add it to PTESTS_FAST_META_PYTHON

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2025-04-09 15:01:13 -07:00
parent cbe22302df
commit 4085ac5975
3 changed files with 2 additions and 17 deletions

View File

@@ -5,25 +5,12 @@ SUMMARY = "GPT Image (pure python)"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=db5f8de88d13d0917db21293d0e82e1d"
SRC_URI += "\
file://run-ptest \
"
DEPENDS += "python3-pip"
PYPI_PACKAGE = "gpt_image"
SRC_URI[sha256sum] = "c06d8efc7cf8d6f3954c1c3d8544f494aa95da37fe04e38a9699ad3f57455f7e"
inherit pypi setuptools3 python3native ptest
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}
RDEPENDS:${PN}-ptest += " \
python3-pytest \
"
inherit pypi python3native python_setuptools_build_meta ptest-python-pytest
do_install:append() {
rm -fr ${D}${libdir}/python*/site-packages/gpt-image/__pycache__