From 9e3ab586bd611c017e6e99767f2458cdf262e2ef Mon Sep 17 00:00:00 2001 From: Derek Straka Date: Fri, 17 Jan 2025 20:30:30 +0000 Subject: python3-portion: update recipe to use the ptest-python-pytest class Signed-off-by: Derek Straka Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-portion/run-ptest | 3 --- .../recipes-devtools/python/python3-portion_2.6.0.bb | 17 +++-------------- 2 files changed, 3 insertions(+), 17 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-portion/run-ptest (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-portion/run-ptest b/meta-python/recipes-devtools/python/python3-portion/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta-python/recipes-devtools/python/python3-portion/run-ptest +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -pytest --automake diff --git a/meta-python/recipes-devtools/python/python3-portion_2.6.0.bb b/meta-python/recipes-devtools/python/python3-portion_2.6.0.bb index 31c6f07316..8bdbc032cf 100644 --- a/meta-python/recipes-devtools/python/python3-portion_2.6.0.bb +++ b/meta-python/recipes-devtools/python/python3-portion_2.6.0.bb @@ -5,28 +5,17 @@ SECTION = "devel/python" LICENSE = "LGPL-3.0-only" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3000208d539ec061b899bce1d9ce9404" -inherit pypi python_setuptools_build_meta ptest +inherit pypi python_setuptools_build_meta ptest-python-pytest SRC_URI[sha256sum] = "6fb538b57a92058f0edd360667694448aa3fc028ab97e41e3091359d14ba4dd5" -SRC_URI += " \ - file://run-ptest \ -" - RDEPENDS:${PN} += "\ python3-sortedcontainers \ " -RDEPENDS:${PN}-ptest += " \ - python3-pytest \ - python3-unittest-automake-output \ -" - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests +do_install_ptest:append () { # This file tests README.md and deleted as redundant. - rm -f ${S}/tests/test_doc.py - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ + rm -f ${D}/tests/test_doc.py } BBCLASSEXTEND = "native" -- cgit v1.2.3-54-g00ecf