mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-12 05:11:59 +00:00
python3-ujson: 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
|
|
||||||
|
|
||||||
FORCE_COLOR=1 pytest --automake --capture=no
|
|
||||||
@@ -6,17 +6,13 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e0039a83d8a99726b5
|
|||||||
|
|
||||||
SRC_URI[sha256sum] = "b3cd8f3c5d8c7738257f1018880444f7b7d9b66232c64649f562d7ba86ad4bc1"
|
SRC_URI[sha256sum] = "b3cd8f3c5d8c7738257f1018880444f7b7d9b66232c64649f562d7ba86ad4bc1"
|
||||||
|
|
||||||
inherit pypi ptest python_setuptools_build_meta
|
inherit pypi ptest-python-pytest python_setuptools_build_meta
|
||||||
|
|
||||||
# let OE do the strip operation
|
# let OE do the strip operation
|
||||||
export UJSON_BUILD_NO_STRIP = "1"
|
export UJSON_BUILD_NO_STRIP = "1"
|
||||||
|
|
||||||
DEPENDS += "python3-setuptools-scm-native"
|
DEPENDS += "python3-setuptools-scm-native"
|
||||||
|
|
||||||
SRC_URI += " \
|
|
||||||
file://run-ptest \
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPENDS:${PN} += "\
|
RDEPENDS:${PN} += "\
|
||||||
python3-datetime \
|
python3-datetime \
|
||||||
python3-numbers \
|
python3-numbers \
|
||||||
@@ -25,14 +21,7 @@ RDEPENDS:${PN} += "\
|
|||||||
RDEPENDS:${PN}-ptest += " \
|
RDEPENDS:${PN}-ptest += " \
|
||||||
python3-json \
|
python3-json \
|
||||||
python3-misc \
|
python3-misc \
|
||||||
python3-pytest \
|
|
||||||
python3-pytz \
|
python3-pytz \
|
||||||
python3-unittest-automake-output \
|
|
||||||
"
|
"
|
||||||
|
|
||||||
do_install_ptest() {
|
|
||||||
install -d ${D}${PTEST_PATH}/tests
|
|
||||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
|
||||||
}
|
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
BBCLASSEXTEND = "native nativesdk"
|
||||||
|
|||||||
Reference in New Issue
Block a user