mirror of
https://git.yoctoproject.org/poky
synced 2026-02-11 11:13:04 +01:00
python3-hypothesis: Update to use the new ptest-python-pytest class
(From OE-Core rev: e68ad590f9c0b4bcba94ad571553d81e2a7c6f50) Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4ac36e4b08
commit
a3a10a15c4
@@ -4,11 +4,11 @@ LICENSE = "MPL-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4ee62c16ebd0f4f99d906f36b7de8c3c"
|
||||
|
||||
PYPI_PACKAGE = "hypothesis"
|
||||
PTEST_PYTEST_DIR ?= "examples"
|
||||
|
||||
inherit pypi python_setuptools_build_meta ptest
|
||||
inherit pypi python_setuptools_build_meta ptest-python-pytest
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
file://test_binary_search.py \
|
||||
file://test_rle.py \
|
||||
"
|
||||
@@ -27,14 +27,10 @@ RDEPENDS:${PN} += " \
|
||||
python3-zoneinfo \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
python3-unittest-automake-output \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/examples
|
||||
install -m 0755 ${UNPACKDIR}/test_binary_search.py ${D}${PTEST_PATH}/examples/
|
||||
install -m 0755 ${UNPACKDIR}/test_rle.py ${D}${PTEST_PATH}/examples/
|
||||
do_install_ptest:append() {
|
||||
install -d ${D}${PTEST_PATH}/${PTEST_PYTEST_DIR}
|
||||
install -m 0755 ${UNPACKDIR}/test_binary_search.py ${D}${PTEST_PATH}/${PTEST_PYTEST_DIR}/
|
||||
install -m 0755 ${UNPACKDIR}/test_rle.py ${D}${PTEST_PATH}/${PTEST_PYTEST_DIR}/
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
Reference in New Issue
Block a user