summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/conf/distro/include/ptest-packagelists.inc1
-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
3 files changed, 20 insertions, 1 deletions
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index 5975db25cc..da6fa6ee97 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -69,6 +69,7 @@ PTESTS_FAST = "\
69 python3-pyasn1 \ 69 python3-pyasn1 \
70 python3-pytz \ 70 python3-pytz \
71 python3-pyyaml \ 71 python3-pyyaml \
72 python3-rpds-py \
72 python3-trove-classifiers \ 73 python3-trove-classifiers \
73 python3-wcwidth \ 74 python3-wcwidth \
74 python3-webcolors \ 75 python3-webcolors \
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"