From patchwork Sat Oct 26 16:08:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 51356 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 D5106D10BFF for ; Sat, 26 Oct 2024 16:08:46 +0000 (UTC) Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by mx.groups.io with SMTP id smtpd.web11.13492.1729958921390749651 for ; Sat, 26 Oct 2024 09:08:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EHihOJdh; spf=pass (domain: gmail.com, ip: 209.85.215.180, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-7eab7622b61so2040082a12.1 for ; Sat, 26 Oct 2024 09:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729958920; x=1730563720; 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=auNjj63WWaR1NNC9I8SqHU7v6hEovaCCHtmEDhDtNlo=; b=EHihOJdhFqWMgMvVIoFiiJJZ2NXPtK9oW9teTrE44LECcwxlT9RQEyQwBz39aEMWd5 KY171kuvgmmtjb0Iab7p9D6Yr4OWO8+//f+af7G8HUg6s6eJmY0xnNMaiPowZAwL7L8g a7G4L5YGXB7pe7tO/v2NAvNEewLjr9l/Wr4dwLhrdWVpiWpdyFCa00g/eEz3tfP2xbKf HOad9zWk84LlCxroYGiLJ3UZm3N8kj5sRj6nLsdImsmRjR7rhKJdu5y8Zp0t3Z58KDqo 3Zl0FryRGzxLD2x9dDsfhJCpICZuh1unzhKSj0B33hOTrxxDGOGgh1ddAybsIKiHBxmY Dr5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729958920; x=1730563720; 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=auNjj63WWaR1NNC9I8SqHU7v6hEovaCCHtmEDhDtNlo=; b=lfJJ2FrzvKuezpAW1jixp75j0+fih6Ea864CGUD0ReRflmttwonw5ErKZMW3mL1cUy Gt3llu+VXVeJ2PduxYga7xQPVNJ/Cu7Hzofp+6YKtB1uZV+fwzhWnbj1f22NsEyUqiEy jNMAkXQexhJA6h3YAH/vrn8XDeibQUDuLCy7zVXsLArwar5CMWWCr/3ImRNh0W3CGbFF DVucMZyFAkwHGgWtXnHWU6vAggJuafj+1JfZ3JmedBehahBc+P8ImmFbEpMDiV+AMdGm fqEVKRMo6Ud5ISRLOlDgBmiT5RnA0SiIuS9/12FsKfk01ecWwHHjiecSM1Pnco5/Ct2H Tqmw== X-Gm-Message-State: AOJu0YyUQf/b6ufdiGXU9FMhKneAK547VeRHKa+xc8gG+gyjWBALw8Vn mZtqWKEkXO8Qc1ViuamJMw9ArB1/aq9EBwF+BJKXt1bunee8Npv6RqptoJAV X-Google-Smtp-Source: AGHT+IHP0aCnskAutKn4ZGhO3MnO8oaDh53+FUYJriM6eCXCun48xeaJeYV1g5JJDUeYiZKQ7cO4tQ== X-Received: by 2002:a17:902:ce90:b0:20c:9821:699d with SMTP id d9443c01a7336-210c6c9354dmr40043465ad.51.1729958920303; Sat, 26 Oct 2024 09:08:40 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::f344]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-210bc04575esm25668135ad.235.2024.10.26.09.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 09:08:39 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-python][PATCH 1/2] python3-pyroute2: Add missing rdeps for ptests Date: Sat, 26 Oct 2024 09:08:37 -0700 Message-ID: <20241026160838.2872370-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.47.0 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 ; Sat, 26 Oct 2024 16:08:46 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/113236 These are needed with python 3.13 Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python3-pyroute2_0.7.12.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-python/recipes-devtools/python/python3-pyroute2_0.7.12.bb b/meta-python/recipes-devtools/python/python3-pyroute2_0.7.12.bb index cf9885df71..a12fa0ac4c 100644 --- a/meta-python/recipes-devtools/python/python3-pyroute2_0.7.12.bb +++ b/meta-python/recipes-devtools/python/python3-pyroute2_0.7.12.bb @@ -28,6 +28,8 @@ SRC_URI += " \ RDEPENDS:${PN}-ptest += " \ python3-fcntl \ + python3-html \ + python3-netclient \ python3-pytest \ python3-sqlite3 \ python3-unittest-automake-output \ From patchwork Sat Oct 26 16:08:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 51355 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 D6572D0C604 for ; Sat, 26 Oct 2024 16:08:46 +0000 (UTC) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mx.groups.io with SMTP id smtpd.web10.13471.1729958922503442258 for ; Sat, 26 Oct 2024 09:08:42 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YAT+DcAt; spf=pass (domain: gmail.com, ip: 209.85.214.177, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-20b5affde14so21377425ad.3 for ; Sat, 26 Oct 2024 09:08:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729958921; x=1730563721; 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=R7mW3s+chc7vYulAiuino7kGJCB1P3iMNfbdHS9etwo=; b=YAT+DcAtsxn7Zyyt/TaPTf30LDYoeIRRBaZVzpNOMRJekGrhKqEOPySnoBGOJQ9jIM yZHrM6eZ8dix1Lk2lk4jLrNmsDI+SHOs4A93QRDJPt55rDL8U1L8CzX0sgeDcCfOPZhf QcWTAaXOw2SV4BzL526BkGjHlnuS/X4Jw85EFZ4NXkdDyzXD0pT2gMBe/d6NtKjGxA8M zt7kLuqKWZXOKPtDn4xVAYdj2SzYHHP0yq/LTYxTKtz6S/PXfXi4HFfk5XM8208d7znB kEbspb181OXgZsgGI7Jh+qdkRTDTracx9r9+Veh58v27uJLJys9nlMJE+QlbttcoFjCV bPfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729958921; x=1730563721; 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=R7mW3s+chc7vYulAiuino7kGJCB1P3iMNfbdHS9etwo=; b=ZDrQBd3dvBcPDPb1n87jUaDCRv0wlFLM5u5uahVAJC12AWlc8uomZbvzMMw4o5OzBG gxHqAWEn2mg7hiyc0QyNR3OnEC4K0XwiHfYd9+02mLG1kObY1tQQRbBaFKmg0Vrm3EF+ 74gxm1FcYQBav9BflEyeEQScd1X5dPI36v0Ot/3BeWUq6erODIt6ZimQc/darrCDBWIr 21pRwJqClyfnWVI2FNPzVS04tIodWefNHMcErxcvLuld4p+0ms9DNGdIfI6yDHHm6J1N 0+cR9AykvVHOYfMsW0+0jQi8rFHOtt0BtEnGQnPcifG6YJfK717nUZxzrj4O8LGu56AG taGw== X-Gm-Message-State: AOJu0YxJKm69Ew/nXsSLlSGD0MT+U3d92ffvrHftL85PWEzVdxIoGcrh ek98qkVa3IF1eSZ0rTV15Q4vEociHa4WmULGowzyT6A1TJM+mjE/fkdBPTcO X-Google-Smtp-Source: AGHT+IHSiknqo29Bl/zdGgJpu3TeyKLLVsfu/w8TOkJz8jfvntWd2JY1eYdArJrG0ruQ+R9/OOilHg== X-Received: by 2002:a17:902:f547:b0:20d:2848:2bee with SMTP id d9443c01a7336-210c6892da8mr42590945ad.16.1729958921523; Sat, 26 Oct 2024 09:08:41 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::f344]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-210bc04575esm25668135ad.235.2024.10.26.09.08.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 09:08:40 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-python][PATCH 2/2] python3-ptyprocess: Fix ptests with python 3.13 Date: Sat, 26 Oct 2024 09:08:38 -0700 Message-ID: <20241026160838.2872370-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026160838.2872370-1-raj.khem@gmail.com> References: <20241026160838.2872370-1-raj.khem@gmail.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 ; Sat, 26 Oct 2024 16:08:46 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/113237 Signed-off-by: Khem Raj --- ...12974bd9084aa568d2e18ce5b2a7e0e45983.patch | 35 +++++++++++++++++++ .../python/python3-ptyprocess_0.7.0.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-ptyprocess/a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch diff --git a/meta-python/recipes-devtools/python/python3-ptyprocess/a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch b/meta-python/recipes-devtools/python/python3-ptyprocess/a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch new file mode 100644 index 0000000000..0f1542341d --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-ptyprocess/a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch @@ -0,0 +1,35 @@ +From a44312974bd9084aa568d2e18ce5b2a7e0e45983 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= +Date: Mon, 23 Oct 2023 15:18:02 +0200 +Subject: [PATCH] Remove unittest.makeSuite, gone from Python 3.13 + +See https://docs.python.org/3.13/whatsnew/3.13.html + +""" +Removed the following unittest functions, deprecated in Python 3.11: + + unittest.findTestCases() + unittest.makeSuite() + unittest.getTestCaseNames() +""" + +The removed call does not seem to have any effect when the file is executed +directly, run trough unittest discover or pytest. + +Upstream-Status: Backport [https://github.com/pexpect/ptyprocess/pull/75] +Signed-off-by: Khem Raj +--- + tests/test_invalid_binary.py | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/tests/test_invalid_binary.py b/tests/test_invalid_binary.py +index cf28098..545f9f7 100755 +--- a/tests/test_invalid_binary.py ++++ b/tests/test_invalid_binary.py +@@ -69,6 +69,3 @@ def test_invalid_binary(self): + + if __name__ == '__main__': + unittest.main() +- +-suite = unittest.makeSuite(InvalidBinaryChars,'test') +- 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 4abec0a01c..e0c5e47199 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,6 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cfdcd51fa7d5808da4e74346ee394490" SRCNAME = "ptyprocess" +SRC_URI += "file://a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch" SRC_URI[sha256sum] = "5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220" inherit pypi python_flit_core