diff options
author | Samantha Jalabert <samantha.jalabert@syslinbit.com> | 2023-09-22 14:46:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-27 11:47:42 +0100 |
commit | 082a85aa7b9cda2366c420b24b968f0db6838b2e (patch) | |
tree | b486153352bebcea7f04d226d45d8bc72ddccd6e | |
parent | b6d216ac1a2b5e8513937e762e9b4bffe26849b2 (diff) | |
download | poky-082a85aa7b9cda2366c420b24b968f0db6838b2e.tar.gz |
python3-click: Copy recipe from meta-python
commit: 1a14a28f132a10e9db7b3e5bb2b5361c4679946e
(From OE-Core rev: 05eb1b2feff36ab7d1525febf644316bd57a1299)
Signed-off-by: Marta Rybczynska <mrybczynska@syslinbit.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/python/python3-click/run-ptest | 3 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-click_8.1.7.bb | 39 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-click/run-ptest b/meta/recipes-devtools/python/python3-click/run-ptest new file mode 100644 index 0000000000..b63c4de0d9 --- /dev/null +++ b/meta/recipes-devtools/python/python3-click/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' | ||
diff --git a/meta/recipes-devtools/python/python3-click_8.1.7.bb b/meta/recipes-devtools/python/python3-click_8.1.7.bb new file mode 100644 index 0000000000..a4ec6cd1ef --- /dev/null +++ b/meta/recipes-devtools/python/python3-click_8.1.7.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | SUMMARY = "A simple wrapper around optparse for powerful command line utilities." | ||
2 | DESCRIPTION = "\ | ||
3 | Click is a Python package for creating beautiful command line interfaces \ | ||
4 | in a composable way with as little code as necessary. It's the "Command \ | ||
5 | Line Interface Creation Kit". It's highly configurable but comes with \ | ||
6 | sensible defaults out of the box." | ||
7 | HOMEPAGE = "http://click.pocoo.org/" | ||
8 | LICENSE = "BSD-3-Clause" | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=1fa98232fd645608937a0fdc82e999b8" | ||
10 | |||
11 | SRC_URI[sha256sum] = "ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de" | ||
12 | |||
13 | inherit pypi setuptools3 ptest | ||
14 | |||
15 | SRC_URI += "file://run-ptest" | ||
16 | |||
17 | RDEPENDS:${PN}-ptest += " \ | ||
18 | ${PYTHON_PN}-pytest \ | ||
19 | ${PYTHON_PN}-terminal \ | ||
20 | ${PYTHON_PN}-unixadmin \ | ||
21 | " | ||
22 | |||
23 | do_install_ptest() { | ||
24 | install -d ${D}${PTEST_PATH}/tests | ||
25 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
26 | cp -rf ${S}/setup.cfg ${D}${PTEST_PATH}/ | ||
27 | cp -rf ${S}/docs ${D}${PTEST_PATH}/ | ||
28 | } | ||
29 | |||
30 | UPSTREAM_CHECK_REGEX = "click/(?P<pver>\d+(\.\d+)+)/" | ||
31 | |||
32 | CLEANBROKEN = "1" | ||
33 | |||
34 | RDEPENDS:${PN} += "\ | ||
35 | ${PYTHON_PN}-io \ | ||
36 | ${PYTHON_PN}-threading \ | ||
37 | " | ||
38 | |||
39 | BBCLASSEXTEND = "native nativesdk" | ||