From cf6b12e5c95d0593970f945aa6930c818f7a819f Mon Sep 17 00:00:00 2001 From: Derek Straka Date: Wed, 18 Dec 2024 18:05:48 +0000 Subject: python3-*: Update recipes with pytest ptests to use the new ptest-python-pytest class The newly added ptest-python-pytest removes duplication for: 1. Copying pytest files to the ptest directory 2. Adding standard pytest dependencies 3. Adding a common run-ptest script using pytest (From OE-Core rev: 8d84d9e19b9292b1863921611924714d77c41d21) Signed-off-by: Derek Straka Signed-off-by: Richard Purdie --- .../python/python3-license-expression_30.4.0.bb | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'meta/recipes-devtools/python/python3-license-expression_30.4.0.bb') diff --git a/meta/recipes-devtools/python/python3-license-expression_30.4.0.bb b/meta/recipes-devtools/python/python3-license-expression_30.4.0.bb index fc92026c79..3af739bed4 100644 --- a/meta/recipes-devtools/python/python3-license-expression_30.4.0.bb +++ b/meta/recipes-devtools/python/python3-license-expression_30.4.0.bb @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://apache-2.0.LICENSE;md5=86d3f3a95c324c9479bd8986968f43 SRC_URI[sha256sum] = "6464397f8ed4353cc778999caec43b099f8d8d5b335f282e26a9eb9435522f05" -inherit pypi ptest python_setuptools_build_meta +inherit pypi ptest-python-pytest python_setuptools_build_meta PYPI_PACKAGE = "license_expression" UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" @@ -22,19 +22,8 @@ RDEPENDS:${PN} += "\ BBCLASSEXTEND = "native nativesdk" -SRC_URI += " \ - file://run-ptest \ -" - -RDEPENDS:${PN}-ptest += " \ - python3-pytest \ - python3-unittest-automake-output \ -" - do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests install -d ${D}${PTEST_PATH}/src - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ cp -rf ${S}/src/* ${D}${PTEST_PATH}/src/ cp -rf ${S}/setup.cfg ${D}${PTEST_PATH}/ } -- cgit v1.2.3-54-g00ecf