From patchwork Mon Sep 14 21:45:48 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 98242 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 81103C88E77 for ; Mon, 14 Sep 2026 21:46:00 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9449.1789422355896749131 for ; Mon, 14 Sep 2026 14:45:56 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=QsPlhon4; 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 93A701570 for ; Mon, 14 Sep 2026 14:45:51 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.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 CBAD43F882 for ; Mon, 14 Sep 2026 14:45:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1789422355; bh=neaBkDK1KtO+EhRXcaHShtLuXVEtpLp2jNDue0HZDlg=; h=From:To:Subject:Date:From; b=QsPlhon4uszDICM4pvsZf+FtgRuzdZTpaFZfZMVNxLg1JksJKvXu6e8/Pn7T6Mu3y KVre3MMha8wCWKelXXN7/NjNRC25gRKH0bX+BGq87Yu+ugn8/LqGtcvJkdL8wEuicI NTsmpHoI23FmAYrtv2qKSuLnPcv2+P8s3cBLN0O0= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/3] python3-rfc3339-validator: remove usage of six Date: Mon, 14 Sep 2026 22:45:48 +0100 Message-ID: <20260914214550.376236-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 14 Sep 2026 21:46:00 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245796 Six is only needed to support Python 2 and 3 in a single script, but Py2 was EOL six years ago now. Patch out the need for six, and drop it as a dependency. Also remove a redundant FILESEXTRAPATHS from when there were python- and python3- versions of the recipe. Signed-off-by: Ross Burton --- .../0001-Remove-usage-of-six.patch | 62 +++++++++++++++++++ .../python/python3-rfc3339-validator_0.1.4.bb | 3 +- 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-devtools/python/python3-rfc3339-validator/0001-Remove-usage-of-six.patch diff --git a/meta/recipes-devtools/python/python3-rfc3339-validator/0001-Remove-usage-of-six.patch b/meta/recipes-devtools/python/python3-rfc3339-validator/0001-Remove-usage-of-six.patch new file mode 100644 index 00000000000..ad34b21edb1 --- /dev/null +++ b/meta/recipes-devtools/python/python3-rfc3339-validator/0001-Remove-usage-of-six.patch @@ -0,0 +1,62 @@ +From 9e74298b018d61f93768061800fa670de8e34dfe Mon Sep 17 00:00:00 2001 +From: Ross Burton +Date: Mon, 14 Sep 2026 22:27:29 +0100 +Subject: [PATCH] Remove usage of six + +The last release of Python 2 was 2.7.18, released in April 2020. Python +was officially end-of-life in 2020. I think it's time to stop catering +for people using Python 2, so drop the usage of six. + +Closes #11. + +Upstream-Status: Submitted [https://github.com/naimetti/rfc3339-validator/pull/14] +Signed-off-by: Ross Burton +--- + rfc3339_validator.py | 7 +------ + setup.py | 4 +--- + tests/test_rfc3339_validator.py | 9 +-------- + 3 files changed, 3 insertions(+), 17 deletions(-) + +diff --git a/rfc3339_validator.py b/rfc3339_validator.py +index 4be5e87..efc9b7d 100644 +--- a/rfc3339_validator.py ++++ b/rfc3339_validator.py +@@ -6,11 +6,6 @@ __version__ = '0.1.4' + + import re + import calendar +-import six +- +-RFC3339_REGEX_FLAGS = 0 +-if six.PY3: +- RFC3339_REGEX_FLAGS |= re.ASCII + + RFC3339_REGEX = re.compile(r""" + ^ +@@ -30,7 +25,7 @@ RFC3339_REGEX = re.compile(r""" + | [+-](?:[01]\d|2[0123]):[0-5]\d # Offset + ) + $ +-""", re.VERBOSE | RFC3339_REGEX_FLAGS) ++""", re.VERBOSE | re.ASCII) + + + def validate_rfc3339(date_string): +diff --git a/setup.py b/setup.py +index 73186bd..b9936b0 100644 +--- a/setup.py ++++ b/setup.py +@@ -8,9 +8,7 @@ from setuptools import setup, find_packages + with open('README.md') as readme_file: + readme = readme_file.read() + +-requirements = [ +- 'six', +-] ++requirements = [] + + setup_requirements = [] + +-- +2.43.0 + diff --git a/meta/recipes-devtools/python/python3-rfc3339-validator_0.1.4.bb b/meta/recipes-devtools/python/python3-rfc3339-validator_0.1.4.bb index 242176dd757..06eb833f7a9 100644 --- a/meta/recipes-devtools/python/python3-rfc3339-validator_0.1.4.bb +++ b/meta/recipes-devtools/python/python3-rfc3339-validator_0.1.4.bb @@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/naimetti/rfc3339-validator" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=a21b13b5a996f08f7e0b088aa38ce9c6" -FILESEXTRAPATHS:prepend := "${THISDIR}/python-rfc3339-validator:" +SRC_URI += "file://0001-Remove-usage-of-six.patch" SRC_URI[sha256sum] = "138a2abdf93304ad60530167e51d2dfb9549521a836871b88d7f4695d0022f6b" @@ -14,7 +14,6 @@ inherit pypi setuptools3 RDEPENDS:${PN} += "\ python3-core \ python3-datetime \ - python3-six \ " BBCLASSEXTEND = "native nativesdk" From patchwork Mon Sep 14 21:45:49 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 98244 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 98864C88E72 for ; Mon, 14 Sep 2026 21:46:00 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9450.1789422356754584788 for ; Mon, 14 Sep 2026 14:45:56 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=Pp24ct50; 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 510251595 for ; Mon, 14 Sep 2026 14:45:52 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.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 812D53F882 for ; Mon, 14 Sep 2026 14:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1789422355; bh=41wcw/N4+MGF+JzYr+ZVQjnTpb4KXlBfea8HnGGEyyY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Pp24ct50v9IvbqTRC7wy4F/3Z7cmZV6HrB9/6lMPqZEWVVNS7qvkzk9VTQCuxcBH8 h5cP7U/0rsjwFAzLJMTi8JVEnDvjmP26O2Er9P2IbxzSDLL2HGfRK9rO2rUHOPe9CV Zs35kEzObApkBs3rGDvyQJ9AQPTMWW8jd5fxNBMQ= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/3] python3-testtools: remove obsolete dependencies Date: Mon, 14 Sep 2026 22:45:49 +0100 Message-ID: <20260914214550.376236-2-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260914214550.376236-1-ross.burton@arm.com> References: <20260914214550.376236-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 14 Sep 2026 21:46:00 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245797 The use of the extras module was removed in 2.6.0[1], and the use of six was removed in 2.5.0[2]. [1] testtools 5d3b595 ("Drop extras of extras; fixtures no longer uses it") [2] testtools 8e8bf52 ("Remove six") Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python3-testtools_2.9.1.bb | 2 -- 1 file changed, 2 deletions(-) diff --git a/meta/recipes-devtools/python/python3-testtools_2.9.1.bb b/meta/recipes-devtools/python/python3-testtools_2.9.1.bb index 0c7f6221781..31809fe1edd 100644 --- a/meta/recipes-devtools/python/python3-testtools_2.9.1.bb +++ b/meta/recipes-devtools/python/python3-testtools_2.9.1.bb @@ -13,9 +13,7 @@ SRC_URI[sha256sum] = "39ad9eb9e1b935d6838f4b3aee4d6e72db65df5602f6feda998dbb4fe8 RDEPENDS:${PN} += "\ python3-compression \ python3-doctest \ - python3-extras \ python3-json \ - python3-six \ " BBCLASSEXTEND = "nativesdk" From patchwork Mon Sep 14 21:45:50 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 98243 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 7F8FFC88E73 for ; Mon, 14 Sep 2026 21:46:00 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.9255.1789422357115834396 for ; Mon, 14 Sep 2026 14:45:57 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=F4MJp9hp; 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 069401688 for ; Mon, 14 Sep 2026 14:45:53 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.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 402223F882 for ; Mon, 14 Sep 2026 14:45:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1789422356; bh=HAZbDDAOzeLNaGQYudyVKm+od/aQp6iGv7pRjkuxx4I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=F4MJp9hp71vNq5oDo7wJZWsREagu/RxTetEZD8Prk8RF1t4YEMV+aYNvue+yrPX3X 37f7mkBVCUp1KkaebMi/mT6+XmlyNx/g0IcH7aGjz7jQ5x9WHAVAdRAxoc4fCdGjiB 0UdtFloVJ+dZ2NIM8zEhsjnCutvsjqAiA2baCIAc= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 3/3] python3-six: remove obsolete package Date: Mon, 14 Sep 2026 22:45:50 +0100 Message-ID: <20260914214550.376236-3-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260914214550.376236-1-ross.burton@arm.com> References: <20260914214550.376236-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 14 Sep 2026 21:46:00 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245798 Python 2 was end-of-lifed six years ago now, so I think it's time to retire the six module from core and move it to meta-python. A lot of recipes in meta-oe still claim to depend on it, but I expect the majority of those are redundant. Signed-off-by: Ross Burton --- meta/conf/distro/include/maintainers.inc | 1 - .../distro/include/ptest-packagelists.inc | 1 - .../python/python3-six_1.17.0.bb | 23 ------------------- 3 files changed, 25 deletions(-) delete mode 100644 meta/recipes-devtools/python/python3-six_1.17.0.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index bded4bf6c7d..a41f2488089 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -723,7 +723,6 @@ RECIPE_MAINTAINER:pn-python3-setuptools = "Trevor Gamblin