From patchwork Fri Jan 5 18:14:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 37399 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 C3DDEC3DA6E for ; Fri, 5 Jan 2024 18:17:47 +0000 (UTC) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mx.groups.io with SMTP id smtpd.web11.30610.1704478659808520051 for ; Fri, 05 Jan 2024 10:17:39 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UiUFbxq8; spf=pass (domain: gmail.com, ip: 209.85.210.173, mailfrom: ticotimo@gmail.com) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6d99980b2e0so1349871b3a.2 for ; Fri, 05 Jan 2024 10:17:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704478659; x=1705083459; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KeE7Lac6P2wLS0apxNqfLy3CEmFpgGDjSPbK2HExIYQ=; b=UiUFbxq8Eg3ziUKLDIe0VEXhDY92Oedn/XXf7NbbikHoF85kptX32GGR2hkxZbr+Fx Dly7ouxNw2qAH9SV3oqVeW2zRphAXHvrX7fWE6Uy8j202PkLHLB0SbJAnJi78U0gMKus sueUuEfjKB6MtTLXxdaMDBD9yWb2ACaGiMLpchKPGho+rquBaBqnWLYwKvWPBSZilqx8 /YmNCXBc8OpXGGfou+uVrl5eTVERWzYFxP7FIE7lGjsFB3M32PN4BUkq87n4Soa3tvMv Kb67V/zl3qkd5H3mur30+3iIG4Rv04dPqk8DeMvDcFPpWj41wzjCC3CxnFpGdRj1pUmb i/Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704478659; x=1705083459; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KeE7Lac6P2wLS0apxNqfLy3CEmFpgGDjSPbK2HExIYQ=; b=G5bfeX7jXoIEBm7vZ8t/M37uqrPpkhZsFikTS2Rrrrc2PbySkxq7i7AXvN9kUa9RJL xE6PWIpeHfxV8X3SZX2AjWFa6D/1u5WnuvDWBHrDq8ZrYPhTTULeGgsELrClYMukR8nG ENqU/nt/KZS08AG4efo39kDOy8XFuhQf12bxat+NF800h9TSKvrDtelsuYfcT7gzCFLi /VTY9SlwzjVsHhUdzFH853SD5EoqzmsxpzyzNIxn40ogXbMWsYVK7XWrz4cH36xGHjvl K9Y3g3C/8kZFh7K2KbCXOSarEEhuusLoGTYegXDsaE7J7qCXscgBh4F4zwrOZPMVWaZA vi+A== X-Gm-Message-State: AOJu0YynhQX1yspgmRUx7z2R58xmGOL53SAetBtTp1UFvdgXbvVDMm6z lLCFB7rENOiE0pfZ/lyY2Epu1v4YgYM= X-Google-Smtp-Source: AGHT+IE8Ouq4W+WayGNpRIov8PmowAmlUNmvHKiyMP3z1kvm37QWuUAfXdGYUFN4toH4S5yqBKaBRw== X-Received: by 2002:aa7:9846:0:b0:6d9:a1d0:180a with SMTP id n6-20020aa79846000000b006d9a1d0180amr2395258pfq.58.1704478658880; Fri, 05 Jan 2024 10:17:38 -0800 (PST) Received: from chiron.hsd1.or.comcast.net ([2601:1c0:ca00:cea0:1ef8:e4e3:e071:1cf1]) by smtp.gmail.com with ESMTPSA id o128-20020a62cd86000000b006da3b35bef3sm1752318pfg.54.2024.01.05.10.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 10:17:38 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Cc: Tim Orling Subject: [PATCH 1/2] python3-attrs: upgrade 23.1.0 -> 23.2.0 Date: Fri, 5 Jan 2024 10:14:53 -0800 Message-Id: <20240105181452.1488396-1-tim.orling@konsulko.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 ; Fri, 05 Jan 2024 18:17:47 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/193377 https://www.attrs.org/en/stable/changelog.html 23.2.0 - 2023-12-31 Changes * The type annotation for attrs.resolve_types() is now correct. #1141 * Type stubs now use typing.dataclass_transform to decorate dataclass-like decorators, instead of the non-standard __dataclass_transform__ special form, which is only supported by Pyright. #1158 * Fixed serialization of namedtuple fields using attrs.asdict/astuple() with retain_collection_types=True. #1165 * attrs.AttrsInstance is now a typing.Protocol in both type hints and code. This allows you to subclass it along with another Protocol. #1172 * If attrs detects that __attrs_pre_init__ accepts more than just self, it will call it with the same arguments as __init__ was called. This allows you to, for example, pass arguments to super().__init__(). #1187 * Slotted classes now transform functools.cached_property decorated methods to support equivalent semantics. #1200 * Added class_body argument to attrs.make_class() to provide additional attributes for newly created classes. It is, for example, now possible to attach methods. #1203 Signed-off-by: Tim Orling --- Requires python3-hatch-fancy-pypi-readme upgrade beyond 23.1.0 https://patchwork.yoctoproject.org/project/oe-core/patch/1704180223-8624-1-git-send-email-wangmy@fujitsu.com/ .../python/{python3-attrs_23.1.0.bb => python3-attrs_23.2.0.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-devtools/python/{python3-attrs_23.1.0.bb => python3-attrs_23.2.0.bb} (82%) diff --git a/meta/recipes-devtools/python/python3-attrs_23.1.0.bb b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb similarity index 82% rename from meta/recipes-devtools/python/python3-attrs_23.1.0.bb rename to meta/recipes-devtools/python/python3-attrs_23.2.0.bb index 314053de081..e00e1520156 100644 --- a/meta/recipes-devtools/python/python3-attrs_23.1.0.bb +++ b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb @@ -3,7 +3,7 @@ HOMEPAGE = "http://www.attrs.org/" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=5e55731824cf9205cfabeab9a0600887" -SRC_URI[sha256sum] = "6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015" +SRC_URI[sha256sum] = "935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30" inherit pypi python_hatchling From patchwork Fri Jan 5 18:14:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 37400 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 BB58AC3DA6E for ; Fri, 5 Jan 2024 18:20:07 +0000 (UTC) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mx.groups.io with SMTP id smtpd.web11.30668.1704478799767061481 for ; Fri, 05 Jan 2024 10:19:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OYX9PN2I; spf=pass (domain: gmail.com, ip: 209.85.210.171, mailfrom: ticotimo@gmail.com) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-6da6b0eb2d4so1206344b3a.1 for ; Fri, 05 Jan 2024 10:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704478799; x=1705083599; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IXPJGMyspm7KclCXSvfZrOm+2bt9GYzDXaXD4UuS83w=; b=OYX9PN2IaKa8WDoFc2ZuYIIyKZl8zBCgfqSUtu4t0Yue5rUi2/7TH1Ab1H1GmM47vu 5juCoQV4h+LYDezrHnE470GSr/cD5cdkfmy7+Z/ldv7lQumTo++SAuUOmQHa8RKsuaox ZvpMfWYmYOydsjTzJ+l2Uhvtv+44aXydbzKbMWsmrcVIcfGPOhVGvkarw3K/Zu9NzCWp HtHnMQBO+4dIrzHBJl1yaaqVvP7Nw0WcN8CDSiuuUuhncBSR6jrWP+AExYVXywcafdYL geiU+8Yowp9OgFfwUfKHwkRuNjxh+k94jCtSQRpIj+yQhrCfCqx3lIBNvPVjoESoHJF2 egzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704478799; x=1705083599; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IXPJGMyspm7KclCXSvfZrOm+2bt9GYzDXaXD4UuS83w=; b=kjmZx9YBbnzPG+Y9kpMZ80CqfiNxyvUBlliVA1mAyzZtrLEZEPkOu7CCNRrAPBOLW6 CScxmf58sDdnJ+lSTGHlMVwlGdfCjn/EX+STYCs4FzFIc+k3DM/Xmcg0L5rDT+ATU5qR LiosyAzUduADP5J8jH/Z0T5+BbPyAlQYyoa+8vcxd6fGLBW0qbLHjdLHlxSMOEcqpoJm XoNz+pwvUoZswzbUOTkVDomNCkzJx918iX0jWd0T83Y7YuhLE+Imd58xmTxI4w/EpED2 L/3Q+7IgAS6K2pc+/GT8VrJOahNNDV0DkvtlT8JmqJayNj6k7rzrBFS94CtzUfonm1lB Gj2Q== X-Gm-Message-State: AOJu0Yz1Yp3vdOQbtxvSysjR2m9sArt3jvNf3RrprvkM/V2Hgh3j8SoS oYK+8q8ZFDBXko4i/m/bFput/ti9zsA= X-Google-Smtp-Source: AGHT+IHME/cd5KtPbd1Jej5VmRXCs4m/g9H8lo2O+t50pRwhKZaUDWjEprM617pv/oc8KbuVDSzi9g== X-Received: by 2002:a05:6a00:22ce:b0:6da:2ee0:50bd with SMTP id f14-20020a056a0022ce00b006da2ee050bdmr2994639pfj.53.1704478798855; Fri, 05 Jan 2024 10:19:58 -0800 (PST) Received: from chiron.hsd1.or.comcast.net ([2601:1c0:ca00:cea0:1ef8:e4e3:e071:1cf1]) by smtp.gmail.com with ESMTPSA id o128-20020a62cd86000000b006da3b35bef3sm1752318pfg.54.2024.01.05.10.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 10:19:58 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Cc: Tim Orling Subject: [PATCH 2/2] python3-attrs: enable ptest Date: Fri, 5 Jan 2024 10:14:55 -0800 Message-Id: <20240105181452.1488396-2-tim.orling@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240105181452.1488396-1-tim.orling@konsulko.com> References: <20240105181452.1488396-1-tim.orling@konsulko.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 ; Fri, 05 Jan 2024 18:20:07 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/193378 The conftest.py file is needed to define the "slots" and "frozen" fixtures for pytest Signed-off-by: Tim Orling --- All ptests passed on core-image-ptest-python3-attrs in about 19 seconds on qemux86-64 .../conf/distro/include/ptest-packagelists.inc | 1 + .../python/python3-attrs/run-ptest | 3 +++ .../python/python3-attrs_23.2.0.bb | 18 +++++++++++++++++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-devtools/python/python3-attrs/run-ptest diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index 9057c12b091..ef6f471e7bd 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc @@ -57,6 +57,7 @@ PTESTS_FAST = "\ pango \ popt \ python3-atomicwrites \ + python3-attrs \ python3-bcrypt \ python3-calver \ python3-hypothesis \ diff --git a/meta/recipes-devtools/python/python3-attrs/run-ptest b/meta/recipes-devtools/python/python3-attrs/run-ptest new file mode 100644 index 00000000000..8d2017d39ce --- /dev/null +++ b/meta/recipes-devtools/python/python3-attrs/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb index e00e1520156..7b6a6bd94c9 100644 --- a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb +++ b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb @@ -5,7 +5,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5e55731824cf9205cfabeab9a0600887" SRC_URI[sha256sum] = "935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30" -inherit pypi python_hatchling +inherit pypi ptest python_hatchling + +SRC_URI += " \ + file://run-ptest \ +" DEPENDS += " \ python3-hatch-vcs-native \ @@ -18,4 +22,16 @@ RDEPENDS:${PN}+= " \ python3-crypt \ " +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-hypothesis \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ + install ${S}/conftest.py ${D}${PTEST_PATH}/ +} + BBCLASSEXTEND = "native nativesdk"