diff options
Diffstat (limited to 'meta-python')
-rw-r--r-- | meta-python/recipes-devtools/python/python-prettytable.inc | 13 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-prettytable/run-ptest | 3 |
2 files changed, 16 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-prettytable.inc b/meta-python/recipes-devtools/python/python-prettytable.inc index 07e896d2d1..09384dae17 100644 --- a/meta-python/recipes-devtools/python/python-prettytable.inc +++ b/meta-python/recipes-devtools/python/python-prettytable.inc | |||
@@ -23,3 +23,16 @@ UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/PrettyTable/" | |||
23 | UPSTREAM_CHECK_REGEX = "/PrettyTable/(?P<pver>(\d+[\.\-_]*)+)" | 23 | UPSTREAM_CHECK_REGEX = "/PrettyTable/(?P<pver>(\d+[\.\-_]*)+)" |
24 | 24 | ||
25 | BBCLASSEXTEND = "native nativesdk" | 25 | BBCLASSEXTEND = "native nativesdk" |
26 | inherit ptest | ||
27 | |||
28 | SRC_URI += " \ | ||
29 | file://run-ptest \ | ||
30 | " | ||
31 | |||
32 | RDEPENDS_${PN}-ptest += " \ | ||
33 | ${PYTHON_PN}-pytest \ | ||
34 | " | ||
35 | |||
36 | do_install_ptest() { | ||
37 | cp -f ${S}/prettytable_test.py ${D}${PTEST_PATH}/ | ||
38 | } | ||
diff --git a/meta-python/recipes-devtools/python/python3-prettytable/run-ptest b/meta-python/recipes-devtools/python/python3-prettytable/run-ptest new file mode 100644 index 0000000000..5cec711696 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-prettytable/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest | ||