summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-python/recipes-devtools/python/python3-portion_2.6.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-portion_2.6.0.bb')
-rw-r--r--meta-openembedded/meta-python/recipes-devtools/python/python3-portion_2.6.0.bb19
1 files changed, 4 insertions, 15 deletions
diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-portion_2.6.0.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-portion_2.6.0.bb
index 31c6f07316..2c2e67579e 100644
--- a/meta-openembedded/meta-python/recipes-devtools/python/python3-portion_2.6.0.bb
+++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-portion_2.6.0.bb
@@ -5,28 +5,17 @@ SECTION = "devel/python"
LICENSE = "LGPL-3.0-only"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3000208d539ec061b899bce1d9ce9404"
-inherit pypi python_setuptools_build_meta ptest
+inherit pypi python_setuptools_build_meta ptest-python-pytest
SRC_URI[sha256sum] = "6fb538b57a92058f0edd360667694448aa3fc028ab97e41e3091359d14ba4dd5"
-SRC_URI += " \
- file://run-ptest \
-"
-
RDEPENDS:${PN} += "\
python3-sortedcontainers \
"
-RDEPENDS:${PN}-ptest += " \
- python3-pytest \
- python3-unittest-automake-output \
-"
-
-do_install_ptest() {
- install -d ${D}${PTEST_PATH}/tests
- # This file tests README.md and deleted as redundant.
- rm -f ${S}/tests/test_doc.py
- cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+do_install_ptest:append () {
+ # test_doc.py tests README.md.
+ install -Dm 0644 ${S}/README.md ${D}${PTEST_PATH}/README.md
}
BBCLASSEXTEND = "native"