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-pyyaml_6.0.2.bb | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb') diff --git a/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb b/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb index 6ea342eae3..7ebe3f7d9f 100644 --- a/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb +++ b/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb @@ -8,28 +8,17 @@ SRC_URI[sha256sum] = "d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff SRC_URI += "\ https://raw.githubusercontent.com/yaml/pyyaml/a98fd6088e81d7aca571220c966bbfe2ac43c335/tests/test_dump_load.py;name=test \ - file://run-ptest \ " SRC_URI[test.sha256sum] = "b6a8a2825d89fdc8aee226560f66b8196e872012a0ea7118cbef1a832359434a" -inherit pypi python_setuptools_build_meta ptest cython +inherit pypi python_setuptools_build_meta ptest-python-pytest cython PACKAGECONFIG ?= "libyaml" PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml" -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${UNPACKDIR}/test_dump_load.py ${D}${PTEST_PATH}/tests/ -} - RDEPENDS:${PN} += "\ python3-datetime \ python3-netclient \ " -RDEPENDS:${PN}-ptest += " \ - python3-pytest \ - python3-unittest-automake-output \ -" - BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf