diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
3 files changed, 27 insertions, 25 deletions
diff --git a/meta-python/recipes-devtools/python/python3-semver/run-ptest b/meta-python/recipes-devtools/python/python3-semver/run-ptest index 43c03b594b..cd2bc8537c 100644 --- a/meta-python/recipes-devtools/python/python3-semver/run-ptest +++ b/meta-python/recipes-devtools/python/python3-semver/run-ptest | |||
| @@ -1,3 +1,3 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | pytest -o log_cli=true -o log_cli_level=INFO test_semver.py --disable-warnings| 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}}' | 3 | pytest -o log_cli=true -o log_cli_level=INFO tests/test_semver.py --disable-warnings| 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-semver_2.13.0.bb b/meta-python/recipes-devtools/python/python3-semver_2.13.0.bb deleted file mode 100644 index b47bcae008..0000000000 --- a/meta-python/recipes-devtools/python/python3-semver_2.13.0.bb +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | DESCRIPTION = "Python module for Semantic Versioning" | ||
| 2 | HOMEPAGE = "https://github.com/k-bx/python-semver" | ||
| 3 | BUGTRACKER = "https://github.com/k-bx/python-semver/issues" | ||
| 4 | LICENSE = "BSD-3-Clause" | ||
| 5 | LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665b9a75d6afb7709" | ||
| 6 | |||
| 7 | SRC_URI[md5sum] = "e98b5fb283ea84daa5195087de83ebf1" | ||
| 8 | SRC_URI[sha256sum] = "fa0fe2722ee1c3f57eac478820c3a5ae2f624af8264cbdf9000c980ff7f75e3f" | ||
| 9 | |||
| 10 | inherit pypi setuptools3 ptest | ||
| 11 | |||
| 12 | BBCLASSEXTEND = "native nativesdk" | ||
| 13 | |||
| 14 | SRC_URI += " \ | ||
| 15 | file://run-ptest \ | ||
| 16 | " | ||
| 17 | |||
| 18 | RDEPENDS:${PN}-ptest += " \ | ||
| 19 | ${PYTHON_PN}-pytest \ | ||
| 20 | " | ||
| 21 | |||
| 22 | do_install_ptest() { | ||
| 23 | cp -f ${S}/test_semver.py ${D}${PTEST_PATH}/ | ||
| 24 | } | ||
diff --git a/meta-python/recipes-devtools/python/python3-semver_3.0.1.bb b/meta-python/recipes-devtools/python/python3-semver_3.0.1.bb new file mode 100644 index 0000000000..2d85d789c7 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-semver_3.0.1.bb | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | DESCRIPTION = "Python module for Semantic Versioning" | ||
| 2 | HOMEPAGE = "https://github.com/python-semver/python-semver" | ||
| 3 | BUGTRACKER = "https://github.com/python-semver/python-semver" | ||
| 4 | LICENSE = "BSD-3-Clause" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d9da679db3bdce30a1b4328d5c474f98" | ||
| 6 | |||
| 7 | SRC_URI[md5sum] = "b7502c12ce325ffffeab694fed52f6f5" | ||
| 8 | SRC_URI[sha256sum] = "9ec78c5447883c67b97f98c3b6212796708191d22e4ad30f4570f840171cbce1" | ||
| 9 | |||
| 10 | inherit pypi python_setuptools_build_meta ptest | ||
| 11 | |||
| 12 | BBCLASSEXTEND = "native nativesdk" | ||
| 13 | |||
| 14 | SRC_URI += " \ | ||
| 15 | file://run-ptest \ | ||
| 16 | " | ||
| 17 | |||
| 18 | DEPENDS += " python3-setuptools-scm-native" | ||
| 19 | |||
| 20 | RDEPENDS:${PN}-ptest += " \ | ||
| 21 | ${PYTHON_PN}-pytest \ | ||
| 22 | " | ||
| 23 | |||
| 24 | do_install_ptest() { | ||
| 25 | cp -rf ${S}/tests ${D}${PTEST_PATH}/ | ||
| 26 | } | ||
