From patchwork Sun Jun 25 21:39:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jasper Orschulko X-Patchwork-Id: 26388 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 EDDDFEB64DC for ; Sun, 25 Jun 2023 21:42:37 +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.20820.1687729304464154127 for ; Sun, 25 Jun 2023 14:41:45 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@fancydomain.eu header.s=mail header.b=OTeJCYzw; 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=1687729300; bh=ve13/I/TT3cfPLNQsl2h2cCyv/1wCMTUCUAEs7kKP9s=; h=From:To:Cc:Subject; b=OTeJCYzwnu2i+IbP/RRH3REsN3NS8RKIMcN0dAk2A1Xg7EQgI7J/1BQRZ6bAfc16A ub/n6RJQg2iRoRiydKHsCBgYu/vPJUYFMRat+j+Zw0naMAoAdzJOKri5dhAFeLeetI BCJM69xQT3Mp2F23y6Nj+MDjBDTviaR1Hj7lpF/M/nz7P/EYklGuk4oxa/3ItOEPDt CFp1bNxHvmuhButZ22HMN6KwwmRVBZBkBVaSlEsWXVv8oOC0RwjNMCB2vFtBu9LrNK 7EreotFrE85bMuOBEd0+T9y8D48zHaLFUMpcputGcMl3wcKY0ZVNxXmogsKjFGMFEe ZX/a6J1VuIX8A== To: openembedded-devel@lists.openembedded.org Cc: Jasper Orschulko Subject: [meta-python][PATCH 1/3] python3-pytest-cov: Add initial recipe 4.1.0 Date: Sun, 25 Jun 2023 23:39:57 +0200 Message-ID: <20230625213959.2791472-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 ; Sun, 25 Jun 2023 21:42:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/103566 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 Sun Jun 25 21:39: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: 26390 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 ECD12C001B0 for ; Sun, 25 Jun 2023 21:42:37 +0000 (UTC) Received: from mx.walter.deinstapel.de (mx.walter.deinstapel.de [62.176.232.99]) by mx.groups.io with SMTP id smtpd.web11.20611.1687729307225217797 for ; Sun, 25 Jun 2023 14:41:49 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@fancydomain.eu header.s=mail header.b=Z1lKmEn1; 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=1687729304; bh=oCUQpAuEMv57O7SZ6MqQWHCCVAqmSAPBCimuE5JbFYo=; h=From:To:Cc:Subject:In-Reply-To:References; b=Z1lKmEn1JmTQjexOf2TGuFxH0lMDZI/XKad0VUisyfWFMLjXjk/IgJikMu3HBAKn8 8N4LQEqQ60EH7H7RE45RHuy61uBRZ8c1xczqKFpRFdwfH9be2EKvozs0GFevlpNb5n QHrOI4RXO2ZZSCkCk4nb6eq3Cc/ZJWcK0OcReW/TRZSdT3onMnYQXCniL7ut3giSMU gjVrMSY78zFODrmPoBMiKnLTQLieBxStEsu6vikJ0UssU4Uj9npU7xC0Op32tlneNe GA8stMS3CweTcPl16uoBZRMhh7XVohlWABp7FKiBiYz1Y98cZzHDRLr9R6xq9BJguh UR0CnmwgVJdRw== To: openembedded-devel@lists.openembedded.org Cc: Jasper Orschulko Subject: [meta-python][PATCH 2/3] python3-covdefaults: Add initial recipe 2.3.0 Date: Sun, 25 Jun 2023 23:39:58 +0200 Message-ID: <20230625213959.2791472-2-jasper@fancydomain.eu> In-Reply-To: <20230625213959.2791472-1-jasper@fancydomain.eu> References: <20230625213959.2791472-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 ; Sun, 25 Jun 2023 21:42:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/103567 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 Sun Jun 25 21:39: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: 26389 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 EBDE5EB64DD for ; Sun, 25 Jun 2023 21:42:37 +0000 (UTC) Received: from mx.walter.deinstapel.de (mx.walter.deinstapel.de [62.176.232.99]) by mx.groups.io with SMTP id smtpd.web11.20613.1687729311826769548 for ; Sun, 25 Jun 2023 14:41:52 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@fancydomain.eu header.s=mail header.b=b3y5TkQ5; 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=1687729310; bh=CQknQTQxmTO/Vzc+7AIA+dSKQ/t6XG9PT9xJ4vdX5XU=; h=From:To:Cc:Subject:In-Reply-To:References; b=b3y5TkQ5FkaSGPao8AM8jYOj1c13Z3b6m/Ru8Z9Nv05KNDzGiGE29hwk5fbv/6TIg UXrl5vzfQQeAxI6d38nKvw/LECbfubuTk92SsTxtVuuk0o7aZ5FmsS6wfE/JN/Qmcj zV/6EBuP2fhOweArafAqGx4CqYIx5ZFGn6BDx07JRdDY/IWT9JBq8BS8Cyma8i66pD ry/MvOuK7ExnYjpWBj67L/Cl6Sk521LN/onWvAzo8MYW3f06+/YCauIeUvKWOUOguy Q1Soi1yq4zpsCnZ/8YKBmufpK5hH6YA0bvfCsgDvctsXrkBkAzNH7fx773FTtK6FWh BDRdrFtoyhj4g== To: openembedded-devel@lists.openembedded.org Cc: Jasper Orschulko Subject: [meta-python][PATCH 3/3] python3-platformdirs: Fix recipe version 3.6.0 Date: Sun, 25 Jun 2023 23:39:59 +0200 Message-ID: <20230625213959.2791472-3-jasper@fancydomain.eu> In-Reply-To: <20230625213959.2791472-1-jasper@fancydomain.eu> References: <20230625213959.2791472-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 ; Sun, 25 Jun 2023 21:42:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/103568 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. --- .../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}/ }