mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
pythonn3-rpds-py: enable ptest
* Add RDEPENDS for ptest from tests/requirements.txt * Tests take ~14 seconds, so add to PTEST_FAST (From OE-Core rev: 6a1c551629defd3c241b30452496c580501dc781) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
09c7337ea2
commit
5dce3a34b0
3
meta/recipes-devtools/python/python3-rpds-py/run-ptest
Normal file
3
meta/recipes-devtools/python/python3-rpds-py/run-ptest
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest --automake
|
||||
@@ -4,12 +4,27 @@ HOMEPAGE = "https://pypi.org/project/rpds-py/"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=7767fa537c4596c54141f32882c4a984"
|
||||
|
||||
SRC_URI += "file://run-ptest"
|
||||
|
||||
SRC_URI[sha256sum] = "dc48b479d540770c811fbd1eb9ba2bb66951863e448efec2e2c102625328e92f"
|
||||
|
||||
require ${BPN}-crates.inc
|
||||
|
||||
inherit pypi cargo-update-recipe-crates python_maturin
|
||||
inherit pypi cargo-update-recipe-crates python_maturin ptest
|
||||
|
||||
PYPI_PACKAGE = "rpds_py"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
python3-iniconfig \
|
||||
python3-packaging \
|
||||
python3-pluggy \
|
||||
python3-pytest \
|
||||
python3-unittest-automake-output \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
Reference in New Issue
Block a user