mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +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
@@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/erocarrera/pefile"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=e34c75178086aca0a17551ffbacaca53"
|
||||
|
||||
inherit setuptools3 ptest
|
||||
inherit setuptools3 ptest-python-pytest
|
||||
SRCREV = "4b3b1e2e568a88d4f1897d694d684f23d9e270c4"
|
||||
SRC_URI = "git://github.com/erocarrera/pefile;branch=master;protocol=https \
|
||||
file://run-ptest"
|
||||
@@ -12,17 +12,8 @@ S = "${WORKDIR}/git"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-mmap \
|
||||
python3-netclient \
|
||||
python3-stringold \
|
||||
"
|
||||
RDEPENDS:${PN}-ptest += "\
|
||||
python3-pytest \
|
||||
python3-unittest-automake-output \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user