mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-02 13:59:59 +00:00
python3-tomli-w: update recipe to use the ptest-python-pytest class
Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
pytest --automake
|
|
||||||
@@ -6,24 +6,16 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=aaaaf0879d17df0110d1aa8c8c9f46f5"
|
|||||||
SRCREV = "179105660c367874818f2cdd1e06ed98eea668f1"
|
SRCREV = "179105660c367874818f2cdd1e06ed98eea668f1"
|
||||||
PYPI_SRC_URI = "git://github.com/hukkin/tomli-w.git;protocol=https;branch=master"
|
PYPI_SRC_URI = "git://github.com/hukkin/tomli-w.git;protocol=https;branch=master"
|
||||||
|
|
||||||
inherit pypi python_flit_core ptest
|
inherit pypi python_flit_core ptest-python-pytest
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
SRC_URI += " \
|
|
||||||
file://run-ptest \
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPENDS:${PN}-ptest += " \
|
RDEPENDS:${PN}-ptest += " \
|
||||||
python3-pytest \
|
|
||||||
python3-tomli \
|
python3-tomli \
|
||||||
python3-unittest-automake-output \
|
|
||||||
"
|
"
|
||||||
|
|
||||||
do_install_ptest() {
|
do_install_ptest:append() {
|
||||||
install -d ${D}${PTEST_PATH}/tests
|
|
||||||
install -d ${D}${PTEST_PATH}/benchmark
|
install -d ${D}${PTEST_PATH}/benchmark
|
||||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
|
||||||
cp -rf ${S}/benchmark/* ${D}${PTEST_PATH}/benchmark/
|
cp -rf ${S}/benchmark/* ${D}${PTEST_PATH}/benchmark/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user