From 4085ac5975f21874012b38c6952ab75af5deea58 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 9 Apr 2025 15:01:13 -0700 Subject: 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 --- .../conf/include/ptest-packagelists-meta-python.inc | 1 + .../python3-gpt-image/python3-gpt-image/run-ptest | 3 --- .../python3-gpt-image/python3-gpt-image_0.9.0.bb | 15 +-------------- 3 files changed, 2 insertions(+), 17 deletions(-) delete mode 100755 meta-python/recipes-extended/python3-gpt-image/python3-gpt-image/run-ptest (limited to 'meta-python') diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index bdb4482dc5..03b4d685f1 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc @@ -31,6 +31,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-geojson \ python3-google-auth-oauthlib \ python3-gpiod \ + python3-gpt-image \ python3-gunicorn \ python3-html2text \ python3-httptools \ diff --git a/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image/run-ptest b/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image/run-ptest deleted file mode 100755 index b63c4de0d9..0000000000 --- a/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image/run-ptest +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' diff --git a/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image_0.9.0.bb b/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image_0.9.0.bb index 01e8091f6f..941d92f55b 100644 --- a/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image_0.9.0.bb +++ b/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image_0.9.0.bb @@ -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__ -- cgit v1.2.3-54-g00ecf