mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-11 04:49:58 +00:00
python3-simpleeval: 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
|
|
||||||
@@ -5,21 +5,14 @@ LIC_FILES_CHKSUM = "file://LICENCE;md5=83843c8f0f3beb18af2f282faecbdebe"
|
|||||||
|
|
||||||
SRC_URI[sha256sum] = "67bbf246040ac3b57c29cf048657b9cf31d4e7b9d6659684daa08ca8f1e45829"
|
SRC_URI[sha256sum] = "67bbf246040ac3b57c29cf048657b9cf31d4e7b9d6659684daa08ca8f1e45829"
|
||||||
|
|
||||||
inherit pypi python_setuptools_build_meta python_hatchling ptest
|
inherit pypi python_setuptools_build_meta python_hatchling ptest-python-pytest
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
BBCLASSEXTEND = "native nativesdk"
|
||||||
|
|
||||||
SRC_URI += "file://run-ptest"
|
|
||||||
|
|
||||||
RDEPENDS:${PN} += " \
|
RDEPENDS:${PN} += " \
|
||||||
python3-math \
|
python3-math \
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPENDS:${PN}-ptest += " \
|
do_install_ptest:append() {
|
||||||
python3-pytest \
|
|
||||||
python3-unittest-automake-output \
|
|
||||||
"
|
|
||||||
|
|
||||||
do_install_ptest() {
|
|
||||||
cp -f ${S}/test_simpleeval.py ${D}${PTEST_PATH}/
|
cp -f ${S}/test_simpleeval.py ${D}${PTEST_PATH}/
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user