python3-covdefaults: Add initial recipe 2.3.0

Dependency for python3-platformdirs 3.6.0 ptest

Signed-off-by: Jasper Orschulko <jasper@fancydomain.eu>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Jasper Orschulko
2023-06-25 23:39:58 +02:00
committed by Khem Raj
parent fcdd12028b
commit effad10973
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
SUMMARY = "A coverage plugin to provide sensible default settings"
HOMEPAGE = "https://github.com/asottile/covdefaults"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a3da826da635201a80d2fb40f3034929"
# Use GitHub SRC_URI, as pypi package does not include tests
SRC_URI += " \
git://github.com/asottile/covdefaults.git;branch=main;protocol=https \
file://run-ptest \
"
SRCREV = "007f5aff5d1c817883385a5f61f742dd11776dc6"
S = "${WORKDIR}/git"
inherit setuptools3 ptest
RDEPENDS:${PN} += " \
${PYTHON_PN}-coverage \
"
RDEPENDS:${PN}-ptest += " \
${PYTHON_PN}-pytest \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}
cp -rf ${S}/tests ${D}${PTEST_PATH}
}
BBCLASSEXTEND = "native nativesdk"