diff options
-rw-r--r-- | meta/conf/distro/include/ptest-packagelists.inc | 1 | ||||
-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 |
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 | |||
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" |