mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 14:02:21 +02:00
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 <derek@asterius.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
095beae008
commit
cf6b12e5c9
@@ -6,11 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=d0995d6f7ba3f186a03118f244e88f57"
|
||||
|
||||
PYPI_PACKAGE = "mako"
|
||||
|
||||
inherit pypi python_setuptools_build_meta ptest
|
||||
inherit pypi python_setuptools_build_meta ptest-python-pytest
|
||||
|
||||
|
||||
SRC_URI:append = " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "577b97e414580d3e088d47c2dbbe9594aa7a5146ed2875d4dfa9075af2dd3cc8"
|
||||
|
||||
@@ -22,15 +20,10 @@ RDEPENDS:${PN} = "python3-html \
|
||||
python3-threading \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += "\
|
||||
python3-pytest \
|
||||
python3-unittest-automake-output \
|
||||
"
|
||||
PTEST_PYTEST_DIR = "test"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/test
|
||||
do_install_ptest:append() {
|
||||
install -m 0644 ${S}/setup.cfg ${D}${PTEST_PATH}/
|
||||
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
Reference in New Issue
Block a user