mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-09 05:49:23 +00:00
python3-portion: 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,28 +5,17 @@ SECTION = "devel/python"
|
|||||||
LICENSE = "LGPL-3.0-only"
|
LICENSE = "LGPL-3.0-only"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3000208d539ec061b899bce1d9ce9404"
|
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3000208d539ec061b899bce1d9ce9404"
|
||||||
|
|
||||||
inherit pypi python_setuptools_build_meta ptest
|
inherit pypi python_setuptools_build_meta ptest-python-pytest
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "6fb538b57a92058f0edd360667694448aa3fc028ab97e41e3091359d14ba4dd5"
|
SRC_URI[sha256sum] = "6fb538b57a92058f0edd360667694448aa3fc028ab97e41e3091359d14ba4dd5"
|
||||||
|
|
||||||
SRC_URI += " \
|
|
||||||
file://run-ptest \
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPENDS:${PN} += "\
|
RDEPENDS:${PN} += "\
|
||||||
python3-sortedcontainers \
|
python3-sortedcontainers \
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPENDS:${PN}-ptest += " \
|
do_install_ptest:append () {
|
||||||
python3-pytest \
|
|
||||||
python3-unittest-automake-output \
|
|
||||||
"
|
|
||||||
|
|
||||||
do_install_ptest() {
|
|
||||||
install -d ${D}${PTEST_PATH}/tests
|
|
||||||
# This file tests README.md and deleted as redundant.
|
# This file tests README.md and deleted as redundant.
|
||||||
rm -f ${S}/tests/test_doc.py
|
rm -f ${D}/tests/test_doc.py
|
||||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
|
|||||||
Reference in New Issue
Block a user