diff options
| author | Tim Orling <tim.orling@konsulko.com> | 2024-05-23 19:51:40 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-28 09:38:24 +0100 |
| commit | 5dce3a34b040367e9fdadbd1eed928a5c82cb519 (patch) | |
| tree | 6aadfc7212a2e957d9bb9b96c32f2d871a749f2e /meta/recipes-devtools/python | |
| parent | 09c7337ea2917f657bb2d923294480803812ec88 (diff) | |
| download | poky-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-ptest | 3 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-rpds-py_0.18.1.bb | 17 |
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 | |||
| 3 | pytest --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/" | |||
| 4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=7767fa537c4596c54141f32882c4a984" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=7767fa537c4596c54141f32882c4a984" |
| 6 | 6 | ||
| 7 | SRC_URI += "file://run-ptest" | ||
| 8 | |||
| 7 | SRC_URI[sha256sum] = "dc48b479d540770c811fbd1eb9ba2bb66951863e448efec2e2c102625328e92f" | 9 | SRC_URI[sha256sum] = "dc48b479d540770c811fbd1eb9ba2bb66951863e448efec2e2c102625328e92f" |
| 8 | 10 | ||
| 9 | require ${BPN}-crates.inc | 11 | require ${BPN}-crates.inc |
| 10 | 12 | ||
| 11 | inherit pypi cargo-update-recipe-crates python_maturin | 13 | inherit pypi cargo-update-recipe-crates python_maturin ptest |
| 12 | 14 | ||
| 13 | PYPI_PACKAGE = "rpds_py" | 15 | PYPI_PACKAGE = "rpds_py" |
| 14 | 16 | ||
| 17 | RDEPENDS:${PN}-ptest += " \ | ||
| 18 | python3-iniconfig \ | ||
| 19 | python3-packaging \ | ||
| 20 | python3-pluggy \ | ||
| 21 | python3-pytest \ | ||
| 22 | python3-unittest-automake-output \ | ||
| 23 | " | ||
| 24 | |||
| 25 | do_install_ptest() { | ||
| 26 | install -d ${D}${PTEST_PATH}/tests | ||
| 27 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 28 | } | ||
| 29 | |||
| 15 | BBCLASSEXTEND = "native nativesdk" | 30 | BBCLASSEXTEND = "native nativesdk" |
