summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorTim Orling <tim.orling@konsulko.com>2024-05-23 19:51:40 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-28 09:38:24 +0100
commit5dce3a34b040367e9fdadbd1eed928a5c82cb519 (patch)
tree6aadfc7212a2e957d9bb9b96c32f2d871a749f2e /meta/recipes-devtools/python
parent09c7337ea2917f657bb2d923294480803812ec88 (diff)
downloadpoky-5dce3a34b040367e9fdadbd1eed928a5c82cb519.tar.gz
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>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3-rpds-py/run-ptest3
-rw-r--r--meta/recipes-devtools/python/python3-rpds-py_0.18.1.bb17
2 files changed, 19 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-rpds-py/run-ptest b/meta/recipes-devtools/python/python3-rpds-py/run-ptest
new file mode 100644
index 0000000000..8d2017d39c
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-rpds-py/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake
diff --git a/meta/recipes-devtools/python/python3-rpds-py_0.18.1.bb b/meta/recipes-devtools/python/python3-rpds-py_0.18.1.bb
index c6e88d88d7..f46df1115c 100644
--- a/meta/recipes-devtools/python/python3-rpds-py_0.18.1.bb
+++ b/meta/recipes-devtools/python/python3-rpds-py_0.18.1.bb
@@ -4,12 +4,27 @@ HOMEPAGE = "https://pypi.org/project/rpds-py/"
4LICENSE = "MIT" 4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=7767fa537c4596c54141f32882c4a984" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=7767fa537c4596c54141f32882c4a984"
6 6
7SRC_URI += "file://run-ptest"
8
7SRC_URI[sha256sum] = "dc48b479d540770c811fbd1eb9ba2bb66951863e448efec2e2c102625328e92f" 9SRC_URI[sha256sum] = "dc48b479d540770c811fbd1eb9ba2bb66951863e448efec2e2c102625328e92f"
8 10
9require ${BPN}-crates.inc 11require ${BPN}-crates.inc
10 12
11inherit pypi cargo-update-recipe-crates python_maturin 13inherit pypi cargo-update-recipe-crates python_maturin ptest
12 14
13PYPI_PACKAGE = "rpds_py" 15PYPI_PACKAGE = "rpds_py"
14 16
17RDEPENDS:${PN}-ptest += " \
18 python3-iniconfig \
19 python3-packaging \
20 python3-pluggy \
21 python3-pytest \
22 python3-unittest-automake-output \
23 "
24
25do_install_ptest() {
26 install -d ${D}${PTEST_PATH}/tests
27 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
28}
29
15BBCLASSEXTEND = "native nativesdk" 30BBCLASSEXTEND = "native nativesdk"