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 --- meta/recipes-devtools/python/python3-pytz_2024.2.bb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'meta/recipes-devtools/python/python3-pytz_2024.2.bb') diff --git a/meta/recipes-devtools/python/python3-pytz_2024.2.bb b/meta/recipes-devtools/python/python3-pytz_2024.2.bb index 04bd1d632d..a379e19234 100644 --- a/meta/recipes-devtools/python/python3-pytz_2024.2.bb +++ b/meta/recipes-devtools/python/python3-pytz_2024.2.bb @@ -3,7 +3,9 @@ HOMEPAGE = "http://pythonhosted.org/pytz" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1a67fc46c1b596cce5d21209bbe75999" -inherit pypi setuptools3 ptest +inherit pypi setuptools3 ptest-python-pytest + +PTEST_PYTEST_DIR = "pytz/tests" SRC_URI[sha256sum] = "2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a" @@ -18,19 +20,11 @@ RDEPENDS:${PN}:class-target += "\ 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}/pytz - install -d ${D}${PTEST_PATH}/pytz/tests - cp -rf ${S}/pytz/tests/* ${D}${PTEST_PATH}/pytz/tests/ +do_install_ptest:append() { cp -f ${S}/README.rst ${D}${PTEST_PATH}/ - } -- cgit v1.2.3-54-g00ecf