diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2023-05-02 12:50:02 -0400 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-05-09 16:22:00 -0700 |
commit | 430ed94067724a7adf1d36c8306f8c1c6d0234b8 (patch) | |
tree | 902d39e20d72380322e638a944d164df889cd556 /meta-python | |
parent | 204dea23c57376871a8c95fc2c55ee63a03d36da (diff) | |
download | meta-openembedded-430ed94067724a7adf1d36c8306f8c1c6d0234b8.tar.gz |
python3-tomlkit: Add recipe
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-tomlkit/run-ptest | 3 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb | 23 |
2 files changed, 26 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-tomlkit/run-ptest b/meta-python/recipes-devtools/python/python3-tomlkit/run-ptest new file mode 100644 index 0000000000..b63c4de0d9 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-tomlkit/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-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb b/meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb new file mode 100644 index 0000000000..71a43c4551 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | SUMMARY = "Style preserving TOML library" | ||
2 | HOMEPAGE = "https://pypi.org/project/tomlkit/" | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=31aac0dbc1babd278d5386dadb7f8e82" | ||
5 | |||
6 | SRC_URI[sha256sum] = "9330fc7faa1db67b541b28e62018c17d20be733177d290a13b24c62d1614e0c3" | ||
7 | |||
8 | inherit pypi python_poetry_core ptest | ||
9 | |||
10 | SRC_URI += " \ | ||
11 | file://run-ptest \ | ||
12 | " | ||
13 | |||
14 | RDEPENDS:${PN}-ptest += " \ | ||
15 | ${PYTHON_PN}-poetry-core \ | ||
16 | ${PYTHON_PN}-pytest \ | ||
17 | ${PYTHON_PN}-pyyaml \ | ||
18 | " | ||
19 | |||
20 | do_install_ptest() { | ||
21 | install -d ${D}${PTEST_PATH}/tests | ||
22 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
23 | } | ||