From patchwork Wed Jul 24 17:19:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 46808 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 6842FC3DA63 for ; Wed, 24 Jul 2024 17:19:41 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.16300.1721841574480468960 for ; Wed, 24 Jul 2024 10:19:34 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8404FFEC for ; Wed, 24 Jul 2024 10:19:59 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.oss.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AB8823F766 for ; Wed, 24 Jul 2024 10:19:33 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/3] python3-unittest-automake-output: add dependency on unittest Date: Wed, 24 Jul 2024 18:19:24 +0100 Message-Id: <20240724171926.3724005-1-ross.burton@arm.com> X-Mailer: git-send-email 2.34.1 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 ; Wed, 24 Jul 2024 17:19:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/202471 This module can be used as a wrapper around unittest, so depend on that. Don't also depend on pytest as that's a much larger dependency, and in ptest images we want as little pulled in as possible. Signed-off-by: Ross Burton --- .../python/python3-unittest-automake-output_0.2.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-devtools/python/python3-unittest-automake-output_0.2.bb b/meta/recipes-devtools/python/python3-unittest-automake-output_0.2.bb index 1fc6180d0eb..fefd4654c72 100644 --- a/meta/recipes-devtools/python/python3-unittest-automake-output_0.2.bb +++ b/meta/recipes-devtools/python/python3-unittest-automake-output_0.2.bb @@ -10,4 +10,6 @@ S = "${WORKDIR}/git" inherit python_flit_core +RDEPENDS:${PN} += "python3-unittest" + BBCLASSEXTEND = "native nativesdk" From patchwork Wed Jul 24 17:19:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 46809 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 82747C3DA70 for ; Wed, 24 Jul 2024 17:19:41 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.16531.1721841575006931476 for ; Wed, 24 Jul 2024 10:19:35 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1A9FB1007 for ; Wed, 24 Jul 2024 10:20:00 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.oss.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 437A03F766 for ; Wed, 24 Jul 2024 10:19:34 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/3] python3-idna: generalise RDEPENDS Date: Wed, 24 Jul 2024 18:19:25 +0100 Message-Id: <20240724171926.3724005-2-ross.burton@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724171926.3724005-1-ross.burton@arm.com> References: <20240724171926.3724005-1-ross.burton@arm.com> 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 ; Wed, 24 Jul 2024 17:19:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/202472 Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python3-idna_3.7.bb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meta/recipes-devtools/python/python3-idna_3.7.bb b/meta/recipes-devtools/python/python3-idna_3.7.bb index 729aff1c462..20c92d65372 100644 --- a/meta/recipes-devtools/python/python3-idna_3.7.bb +++ b/meta/recipes-devtools/python/python3-idna_3.7.bb @@ -7,8 +7,6 @@ SRC_URI[sha256sum] = "028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285b inherit pypi python_flit_core -RDEPENDS:${PN}:class-target = "\ - python3-codecs \ -" +RDEPENDS:${PN} += "python3-codecs" BBCLASSEXTEND = "native nativesdk" From patchwork Wed Jul 24 17:19:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 46810 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 90294C3DA61 for ; Wed, 24 Jul 2024 17:19:41 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.16302.1721841575478322916 for ; Wed, 24 Jul 2024 10:19:35 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9DFEBFEC for ; Wed, 24 Jul 2024 10:20:00 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.oss.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CF39F3F766 for ; Wed, 24 Jul 2024 10:19:34 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 3/3] python3-idna: enable ptest Date: Wed, 24 Jul 2024 18:19:26 +0100 Message-Id: <20240724171926.3724005-3-ross.burton@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724171926.3724005-1-ross.burton@arm.com> References: <20240724171926.3724005-1-ross.burton@arm.com> 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 ; Wed, 24 Jul 2024 17:19:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/202473 Signed-off-by: Ross Burton --- meta/conf/distro/include/ptest-packagelists.inc | 1 + meta/recipes-devtools/python/python3-idna/run-ptest | 3 +++ meta/recipes-devtools/python/python3-idna_3.7.bb | 9 ++++++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-devtools/python/python3-idna/run-ptest diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index 7e9ec1c3aa6..5a9896cc211 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc @@ -61,6 +61,7 @@ PTESTS_FAST = "\ python3-beartype \ python3-calver \ python3-hypothesis \ + python3-idna \ python3-jinja2 \ python3-jsonpointer \ python3-license-expression \ diff --git a/meta/recipes-devtools/python/python3-idna/run-ptest b/meta/recipes-devtools/python/python3-idna/run-ptest new file mode 100644 index 00000000000..d9693bb30f8 --- /dev/null +++ b/meta/recipes-devtools/python/python3-idna/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +python3 -mputao.unittest discover --top-level-directory . --start-directory tests diff --git a/meta/recipes-devtools/python/python3-idna_3.7.bb b/meta/recipes-devtools/python/python3-idna_3.7.bb index 20c92d65372..713e803d038 100644 --- a/meta/recipes-devtools/python/python3-idna_3.7.bb +++ b/meta/recipes-devtools/python/python3-idna_3.7.bb @@ -5,8 +5,15 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=204c0612e40a4dd46012a78d02c80fb1" SRC_URI[sha256sum] = "028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc" -inherit pypi python_flit_core +SRC_URI += "file://run-ptest" + +inherit pypi python_flit_core ptest + +do_install_ptest() { + cp -r ${S}/tests ${D}${PTEST_PATH}/ +} RDEPENDS:${PN} += "python3-codecs" +RDEPENDS:${PN}-ptest += "python3-unittest-automake-output" BBCLASSEXTEND = "native nativesdk"