mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-17 22:48:28 +00:00
python3-semver: upgrade 2.13.0 -> 3.0.1
- Update to point at the proper license file with correct checksum. Previously it was pointing at a subset of a PKG-INFO file, which was a legacy output from distutils - Update build backend and include python3-setuptools-scm-native in DEPENDS - Modify ptest installation and run-ptest script since the tests have been moved into their own folder Changelog: https://github.com/python-semver/python-semver/releases Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
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}}'
|
||||
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}}'
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
DESCRIPTION = "Python module for Semantic Versioning"
|
||||
HOMEPAGE = "https://github.com/k-bx/python-semver"
|
||||
BUGTRACKER = "https://github.com/k-bx/python-semver/issues"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665b9a75d6afb7709"
|
||||
|
||||
SRC_URI[md5sum] = "e98b5fb283ea84daa5195087de83ebf1"
|
||||
SRC_URI[sha256sum] = "fa0fe2722ee1c3f57eac478820c3a5ae2f624af8264cbdf9000c980ff7f75e3f"
|
||||
|
||||
inherit pypi setuptools3 ptest
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
cp -f ${S}/test_semver.py ${D}${PTEST_PATH}/
|
||||
}
|
||||
26
meta-python/recipes-devtools/python/python3-semver_3.0.1.bb
Normal file
26
meta-python/recipes-devtools/python/python3-semver_3.0.1.bb
Normal file
@@ -0,0 +1,26 @@
|
||||
DESCRIPTION = "Python module for Semantic Versioning"
|
||||
HOMEPAGE = "https://github.com/python-semver/python-semver"
|
||||
BUGTRACKER = "https://github.com/python-semver/python-semver"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d9da679db3bdce30a1b4328d5c474f98"
|
||||
|
||||
SRC_URI[md5sum] = "b7502c12ce325ffffeab694fed52f6f5"
|
||||
SRC_URI[sha256sum] = "9ec78c5447883c67b97f98c3b6212796708191d22e4ad30f4570f840171cbce1"
|
||||
|
||||
inherit pypi python_setuptools_build_meta ptest
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
DEPENDS += " python3-setuptools-scm-native"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
cp -rf ${S}/tests ${D}${PTEST_PATH}/
|
||||
}
|
||||
Reference in New Issue
Block a user