From patchwork Mon Jun 26 12:08:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jasper Orschulko X-Patchwork-Id: 26411 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95BF8EB64DD for ; Mon, 26 Jun 2023 12:11:13 +0000 (UTC) Received: from mx.walter.deinstapel.de (mx.walter.deinstapel.de [62.176.232.99]) by mx.groups.io with SMTP id smtpd.web10.6086.1687781411168218490 for ; Mon, 26 Jun 2023 05:10:11 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@fancydomain.eu header.s=mail header.b=SGVmQy5g; spf=pass (domain: fancydomain.eu, ip: 62.176.232.99, mailfrom: jasper@fancydomain.eu) From: "Jasper Orschulko" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fancydomain.eu; s=mail; t=1687781408; bh=ve13/I/TT3cfPLNQsl2h2cCyv/1wCMTUCUAEs7kKP9s=; h=From:To:Cc:Subject; b=SGVmQy5g18EBFbm2AW2gBYtVXD1vTGJUA0+xsi27ymcrV9/+3V6jtxcknII3J5LZ1 n0eWjURja4cGJPVXZrWRF3hUuRWTGY4q44ULtExx9TEHltKhwGmfIm2VkIFSdDW4I8 c7Sk3iPfgNeEaX+W0IuCfoSA64SrHOnE1IiF2SJOlGLIGuYoSZGqWypfNCLxjJVAk9 XuY9wbRP9LKzSpU26AjwEsqt1EtfZLJHZfc3Z5njOAnNXX87PHa5PtEFMyvxZE3z8q mDlHcjs+gC3OsRHrSENRmht+OC3+tZssk7dC94evK98Fb2HOp8Bua/5/yOvYEwxlIX N74mE1+1ZioNw== To: openembedded-devel@lists.openembedded.org Cc: Jasper Orschulko Subject: [meta-python][PATCH v2 1/3] python3-pytest-cov: Add initial recipe 4.1.0 Date: Mon, 26 Jun 2023 14:08:58 +0200 Message-ID: <20230626120900.224602-1-jasper@fancydomain.eu> Mime-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 26 Jun 2023 12:11:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/103581 Dependency for python3-platformdirs 3.6.0 ptest Signed-off-by: Jasper Orschulko --- .../python/python3-pytest-cov_4.1.0.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-cov_4.1.0.bb diff --git a/meta-python/recipes-devtools/python/python3-pytest-cov_4.1.0.bb b/meta-python/recipes-devtools/python/python3-pytest-cov_4.1.0.bb new file mode 100644 index 0000000000..1ff3e75cbe --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-cov_4.1.0.bb @@ -0,0 +1,14 @@ +SUMMARY = "Pytest plugin for measuring coverage." +HOMEPAGE = "https://github.com/pytest-dev/pytest-cov" +LICENSE = "MIT" +LIC_FILES_CHKSUM = " \ + file://LICENSE;md5=cbc4e25353c748c817db2daffe605e43 \ +" + +SRC_URI[sha256sum] = "3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6" + +inherit pypi setuptools3 + +DEPENDS += "${PYTHON_PN}-setuptools-scm-native" + +BBCLASSEXTEND = "native nativesdk" From patchwork Mon Jun 26 12:08:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jasper Orschulko X-Patchwork-Id: 26410 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E754EB64DA for ; Mon, 26 Jun 2023 12:11:13 +0000 (UTC) Received: from mx.walter.deinstapel.de (mx.walter.deinstapel.de [62.176.232.99]) by mx.groups.io with SMTP id smtpd.web10.6087.1687781411171362806 for ; Mon, 26 Jun 2023 05:10:11 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@fancydomain.eu header.s=mail header.b=bIp8Kovo; spf=pass (domain: fancydomain.eu, ip: 62.176.232.99, mailfrom: jasper@fancydomain.eu) From: "Jasper Orschulko" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fancydomain.eu; s=mail; t=1687781409; bh=oCUQpAuEMv57O7SZ6MqQWHCCVAqmSAPBCimuE5JbFYo=; h=From:To:Cc:Subject:In-Reply-To:References; b=bIp8Kovo+YEQyt18Lg/NUDfbGwMt1sEw0Mtc4eSJDc57zktLYd1SbaI8Uu96bvBYb NHbfp2G/DfM4psvoa5ZqyJNGUkrC/OkOOvIHkNMI4kXXKmn53NneaWSn69Rp2RgVms LLmkcJSHncM4V28rLUZpv0NcXjjuHgu+AmV2c2+yQE78efTiiySk9xZm5tJFc5iPju Al7ziaUsk1OsjqGXMeomFf6qBdVQivki3xgfTGE6iOTts/I5Wda4JILfP/mFFUz1aL rjs+mXoG6FybfEl3nVzdsUnYJwofoYNGDEANzX0E55ACL5tIgPI4rQ84JRxgrHVikK pAudVtXlwYXdw== To: openembedded-devel@lists.openembedded.org Cc: Jasper Orschulko Subject: [meta-python][PATCH v2 2/3] python3-covdefaults: Add initial recipe 2.3.0 Date: Mon, 26 Jun 2023 14:08:59 +0200 Message-ID: <20230626120900.224602-2-jasper@fancydomain.eu> In-Reply-To: <20230626120900.224602-1-jasper@fancydomain.eu> References: <20230626120900.224602-1-jasper@fancydomain.eu> Mime-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 26 Jun 2023 12:11:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/103582 Dependency for python3-platformdirs 3.6.0 ptest Signed-off-by: Jasper Orschulko --- .../python/python3-covdefaults/run-ptest | 3 ++ .../python/python3-covdefaults_2.3.0.bb | 31 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-covdefaults/run-ptest create mode 100644 meta-python/recipes-devtools/python/python3-covdefaults_2.3.0.bb diff --git a/meta-python/recipes-devtools/python/python3-covdefaults/run-ptest b/meta-python/recipes-devtools/python/python3-covdefaults/run-ptest new file mode 100644 index 0000000000..3385d68939 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-covdefaults/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +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/SKIPED/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-covdefaults_2.3.0.bb b/meta-python/recipes-devtools/python/python3-covdefaults_2.3.0.bb new file mode 100644 index 0000000000..b7709aa1ca --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-covdefaults_2.3.0.bb @@ -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" From patchwork Mon Jun 26 12:09:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jasper Orschulko X-Patchwork-Id: 26409 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D973EB64D7 for ; Mon, 26 Jun 2023 12:11:13 +0000 (UTC) Received: from mx.walter.deinstapel.de (mx.walter.deinstapel.de [62.176.232.99]) by mx.groups.io with SMTP id smtpd.web10.6085.1687781411167970895 for ; Mon, 26 Jun 2023 05:10:11 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@fancydomain.eu header.s=mail header.b=VRuLbGHp; spf=pass (domain: fancydomain.eu, ip: 62.176.232.99, mailfrom: jasper@fancydomain.eu) From: "Jasper Orschulko" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fancydomain.eu; s=mail; t=1687781409; bh=K/vsSOY4DfVpE9aqlRIIRWFwwl7jOTll3ggCMjrEVXU=; h=From:To:Cc:Subject:In-Reply-To:References; b=VRuLbGHps/lqUpE8nn+hTGfw99fewxV1J4/JlFbAsHcUZHT88O4Ly3xsF4srNX7TW ZZcp0w0nni2i/A8IlmM3hxw8VQi9HYPNljyMx++vx9IbDlDnE8WnLSSPspMOtItswG ItVyPOeDOyBy95iyvUCTWzIGUknvrZjB21vmWNBN9iDalR7qKwAvblHkqCs7vhiFHW b7onWCkU6trVVJzcbOh+WVzU2JIt/29rR6UTHojDW+97Gn/3a5OY7PjPlSZwaT8aa2 CB/ZPrUz+jFsfGUGkrDBpBg0UD1LUc43GtVWBFsnoNSfuELm5kbmS63onTPFP3f591 CB2gQkUcapOYg== To: openembedded-devel@lists.openembedded.org Cc: Jasper Orschulko Subject: [meta-python][PATCH v2 3/3] python3-platformdirs: Fix recipe version 3.6.0 Date: Mon, 26 Jun 2023 14:09:00 +0200 Message-ID: <20230626120900.224602-3-jasper@fancydomain.eu> In-Reply-To: <20230626120900.224602-1-jasper@fancydomain.eu> References: <20230626120900.224602-1-jasper@fancydomain.eu> Mime-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 26 Jun 2023 12:11:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/103583 python3-platformdirs version 3.6.0 requires hatchling build system. Before this fix it would previously build without issue but throw error when used in the final image. Additionally, fixing the ptest which now requires two additional dependencies. Signed-off-by: Jasper Orschulko --- .../python/python3-platformdirs_3.6.0.bb | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/meta-python/recipes-devtools/python/python3-platformdirs_3.6.0.bb b/meta-python/recipes-devtools/python/python3-platformdirs_3.6.0.bb index 20b3299ac7..6444fde7ea 100644 --- a/meta-python/recipes-devtools/python/python3-platformdirs_3.6.0.bb +++ b/meta-python/recipes-devtools/python/python3-platformdirs_3.6.0.bb @@ -3,32 +3,28 @@ HOMEPAGE = "https://github.com/platformdirs/platformdirs" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a" -SRC_URI = " \ - git://github.com/platformdirs/platformdirs.git;branch=main;protocol=https \ +SRC_URI += " \ file://run-ptest \ " -SRCREV ?= "85b0b67eb33a835b797c1d52dab4a06c5554b7ee" -SRC_URI[sha256sum] = "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335" +SRC_URI[sha256sum] = "57e28820ca8094678b807ff529196506d7a21e17156cb1cddb3e74cebce54640" -inherit python_setuptools_build_meta ptest +inherit pypi python_hatchling ptest DEPENDS += " \ - python3-hatch-vcs-native \ - python3-setuptools-scm-native \ - python3-toml-native \ + ${PYTHON_PN}-hatch-vcs-native \ " -S = "${WORKDIR}/git" - RDEPENDS:${PN}-ptest += " \ ${PYTHON_PN}-appdirs \ + ${PYTHON_PN}-covdefaults \ ${PYTHON_PN}-pytest \ ${PYTHON_PN}-pytest-mock \ + ${PYTHON_PN}-pytest-cov \ " do_install_ptest() { - install -d ${D}${PTEST_PATH}/Tests + install -d ${D}${PTEST_PATH} cp -rf ${S}/tests ${D}${PTEST_PATH}/ }