diff options
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-platformdirs/run-ptest | 3 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb | 35 | 
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest new file mode 100644 index 0000000000..b63c4de0d9 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-platformdirs/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-platformdirs_3.5.0.bb b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb new file mode 100644 index 0000000000..b5ff369d04 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb  | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | SUMMARY = "A small Python module for determining appropriate platform-specific dirs" | ||
| 2 | HOMEPAGE = "https://github.com/platformdirs/platformdirs" | ||
| 3 | LICENSE = "BSD-3-Clause" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a" | ||
| 5 | |||
| 6 | SRC_URI = " \ | ||
| 7 | git://github.com/platformdirs/platformdirs.git;branch=main;protocol=https \ | ||
| 8 | file://run-ptest \ | ||
| 9 | " | ||
| 10 | |||
| 11 | SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f" | ||
| 12 | SRC_URI[sha256sum] = "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335" | ||
| 13 | |||
| 14 | inherit python_setuptools_build_meta ptest | ||
| 15 | |||
| 16 | DEPENDS += " \ | ||
| 17 | python3-hatch-vcs-native \ | ||
| 18 | python3-setuptools-scm-native \ | ||
| 19 | python3-toml-native \ | ||
| 20 | " | ||
| 21 | |||
| 22 | S = "${WORKDIR}/git" | ||
| 23 | |||
| 24 | RDEPENDS:${PN}-ptest += " \ | ||
| 25 | ${PYTHON_PN}-appdirs \ | ||
| 26 | ${PYTHON_PN}-pytest \ | ||
| 27 | ${PYTHON_PN}-pytest-mock \ | ||
| 28 | " | ||
| 29 | |||
| 30 | do_install_ptest() { | ||
| 31 | install -d ${D}${PTEST_PATH}/Tests | ||
| 32 | cp -rf ${S}/tests ${D}${PTEST_PATH}/ | ||
| 33 | } | ||
| 34 | |||
| 35 | BBCLASSEXTEND = "native" | ||
