diff options
3 files changed, 21 insertions, 4 deletions
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index 196ff6a734..07ae469088 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc | |||
| @@ -16,6 +16,7 @@ PTESTS_FAST_META_PYTHON = "\ | |||
| 16 | python3-blinker \ | 16 | python3-blinker \ |
| 17 | python3-cachetools \ | 17 | python3-cachetools \ |
| 18 | python3-cbor2 \ | 18 | python3-cbor2 \ |
| 19 | python3-configobj \ | ||
| 19 | python3-click \ | 20 | python3-click \ |
| 20 | python3-dasbus \ | 21 | python3-dasbus \ |
| 21 | python3-dominate \ | 22 | python3-dominate \ |
diff --git a/meta-python/recipes-devtools/python/python3-configobj/run-ptest b/meta-python/recipes-devtools/python/python3-configobj/run-ptest new file mode 100755 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-configobj/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | pytest --automake | ||
diff --git a/meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb b/meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb index 2f6572af5c..d41d71a4ea 100644 --- a/meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb +++ b/meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb | |||
| @@ -3,12 +3,25 @@ SECTION = "devel/python" | |||
| 3 | LICENSE = "BSD-3-Clause" | 3 | LICENSE = "BSD-3-Clause" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e2df3cb285297a24cd1097dfe6e96f95" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e2df3cb285297a24cd1097dfe6e96f95" |
| 5 | 5 | ||
| 6 | PYPI_PACKAGE = "configobj" | ||
| 7 | SRC_URI[sha256sum] = "03c881bbf23aa07bccf1b837005975993c4ab4427ba57f959afdd9d1a2386848" | 6 | SRC_URI[sha256sum] = "03c881bbf23aa07bccf1b837005975993c4ab4427ba57f959afdd9d1a2386848" |
| 8 | 7 | ||
| 9 | inherit pypi python_setuptools_build_meta | 8 | inherit pypi python_setuptools_build_meta ptest |
| 9 | |||
| 10 | SRC_URI += " \ | ||
| 11 | file://run-ptest \ | ||
| 12 | " | ||
| 10 | 13 | ||
| 11 | RDEPENDS:${PN} += " \ | 14 | RDEPENDS:${PN} += " \ |
| 12 | python3-pprint \ | 15 | python3-pprint \ |
| 13 | python3-six \ | 16 | python3-six \ |
| 14 | " | 17 | " |
| 18 | |||
| 19 | RDEPENDS:${PN}-ptest += " \ | ||
| 20 | python3-pytest \ | ||
| 21 | python3-unittest-automake-output \ | ||
| 22 | " | ||
| 23 | |||
| 24 | do_install_ptest() { | ||
| 25 | install -d ${D}${PTEST_PATH}/tests | ||
| 26 | cp -rf ${S}/src/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 27 | } | ||
