From patchwork Sun Nov 29 19:28:58 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 106299 Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.18376.1795980607103750786 for ; Sun, 29 Nov 2026 11:30:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=lsmiNi7N; spf=pass (domain: konsulko.com, ip: 209.85.215.173, mailfrom: tim.orling@konsulko.com) Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-cddc597d062so5864450a12.3 for ; Sun, 29 Nov 2026 11:30:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795980606; x=1796585406; darn=lists.openembedded.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=uwzRsUN0r+xVUxp6XO2mkMPuIoQsIXGEO3VvNqKS41U=; b=lsmiNi7NefwljWx5Kq/RLSeu72k1JfFYOUzOrbswUgLZWiFzCykTguCEmCVzHRhpzO OiaV3EObpUizjIRzLODXumGK0jTpA6EGRWa//St36Ukc7G3CWGYywg6NZBBetD3VQQVj 2LUYYO5NoogOjBsfNNygludQ8GmjcpFcoT7hY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795980606; x=1796585406; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uwzRsUN0r+xVUxp6XO2mkMPuIoQsIXGEO3VvNqKS41U=; b=pXwsi9r1csbN13HhkWEz1t7YHxGbVdY6snRQDmA2nBk0ccqMqjt+IrPdiIkdovlp/2 Ld4zIMWKCfqZ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5OfG19ia9PLLpW o41Tyjvark+f0sA94lO2G2jGfPr+tfvyaQGg2CTumH/VgPjtsFSUHXQtGJ96gzlS4RQ== X-Received: by 2002:a17:90b:17cd:b0:3ab:3384:1a44 with SMTP id 98e67ed59e1d1-3b41c8fed6cmr30375009a91.12.1795980606472; Sun, 29 Nov 2026 11:30:06 -0800 (PST) Return-Path: Received: from localhost (c-24-20-171-118.hsd1.or.comcast.net. [24.20.171.118]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b41abb2076sm49487392a91.2.2026.11.29.11.30.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 11:30:06 -0800 (PST) From: Tim Orling To: openembedded-devel@lists.openembedded.org Cc: Tim Orling Subject: [meta-python][PATCH 15/26] python3-ptyprocess: allow building with flit_core 4 Date: Sun, 29 Nov 2026 11:28:58 -0800 Message-ID: <20261129192919.14731-16-tim.orling@konsulko.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261129192919.14731-1-tim.orling@konsulko.com> References: <20261129192919.14731-1-tim.orling@konsulko.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Sun, 29 Nov 2026 19:30:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133415 flit_core 4 no longer reads the [tool.flit.metadata] table, so move the metadata to the standard [project] table and allow flit_core <5. This backports the upstream change. Tested by building with flit_core 3.12.0 and 4.2.0. AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Tim Orling --- ...data-to-fix-flit-core-4-compatibilit.patch | 41 +++++++++++++++++++ .../python/python3-ptyprocess_0.7.0.bb | 5 ++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-ptyprocess/0001-Use-PEP-621-metadata-to-fix-flit-core-4-compatibilit.patch diff --git a/meta-python/recipes-devtools/python/python3-ptyprocess/0001-Use-PEP-621-metadata-to-fix-flit-core-4-compatibilit.patch b/meta-python/recipes-devtools/python/python3-ptyprocess/0001-Use-PEP-621-metadata-to-fix-flit-core-4-compatibilit.patch new file mode 100644 index 0000000000..f4c4bfffc7 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-ptyprocess/0001-Use-PEP-621-metadata-to-fix-flit-core-4-compatibilit.patch @@ -0,0 +1,41 @@ +From: Michał Górny +Date: Fri, 7 Aug 2026 17:10:13 +0200 +Subject: [PATCH] Use PEP 621 metadata to fix flit-core-4 compatibility + +[Adapted to the 0.7.0 release, which has no requires-python.] + +Upstream-Status: Backport [https://github.com/pexpect/ptyprocess/commit/c7fcf9ea8414c2815f7f1b1ae8baf92b1cad9ef4] +Signed-off-by: Tim Orling +--- +diff --git a/pyproject.toml b/pyproject.toml +index 5228534..c8d7d3a 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,13 +1,14 @@ + [build-system] +-requires = ["flit_core >=2,<4"] ++requires = ["flit_core >=2,<5"] + build-backend = "flit_core.buildapi" + +-[tool.flit.metadata] +-module = "ptyprocess" +-author = "Thomas Kluyver" +-author-email = "thomas@kluyver.me.uk" +-home-page = "https://github.com/pexpect/ptyprocess" +-description-file = "README.rst" ++[project] ++name = "ptyprocess" ++authors = [ ++ { name = "Thomas Kluyver", email = "thomas@kluyver.me.uk" }, ++] ++readme = "README.rst" ++dynamic = ["version", "description"] + classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", +@@ -22,3 +23,5 @@ classifiers = [ + "Topic :: Terminals" + ] + ++[project.urls] ++Homepage = "https://github.com/pexpect/ptyprocess" diff --git a/meta-python/recipes-devtools/python/python3-ptyprocess_0.7.0.bb b/meta-python/recipes-devtools/python/python3-ptyprocess_0.7.0.bb index 1f372d49ba..693869758a 100644 --- a/meta-python/recipes-devtools/python/python3-ptyprocess_0.7.0.bb +++ b/meta-python/recipes-devtools/python/python3-ptyprocess_0.7.0.bb @@ -6,7 +6,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cfdcd51fa7d5808da4e74346ee394490" SRCNAME = "ptyprocess" -SRC_URI += "file://a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch" +SRC_URI += "\ + file://a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch \ + file://0001-Use-PEP-621-metadata-to-fix-flit-core-4-compatibilit.patch \ +" SRC_URI[sha256sum] = "5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220" inherit pypi python_flit_core ptest-python-pytest