From patchwork Tue Oct 29 00:54: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: 51473 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 CB041D5B85F for ; Tue, 29 Oct 2024 00:54:47 +0000 (UTC) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mx.groups.io with SMTP id smtpd.web10.8867.1730163283858267849 for ; Mon, 28 Oct 2024 17:54:43 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b+f0ZyQK; spf=pass (domain: gmail.com, ip: 209.85.214.175, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-20caccadbeeso53178335ad.2 for ; Mon, 28 Oct 2024 17:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730163283; x=1730768083; 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=nKbLtYU6Vbe4Y2VZHtZrqT/OsZuLCFbtZmeXjI0R5Mg=; b=b+f0ZyQKDm/aP6MYcZd0DvxqPanhyWoOiBgHHNcbs/W4vlbL8+rgw60tsl1jyglYGH LA5cIVvZr1XKss2HAi1Xq9mD+wo4yBtgRASJHduEoOKPr+GevnTH8eH8bNPftcoXoEAq k5iLTs9jH6kO4VsyZr5HPLrD4ffZ0Mrjk9HNmiqzKZx/Tvf1pPBIjH1NvXxXYl3OOydh sWTzWuT+h76frlJ30SegYUgVXDuwC3lWinJH83CXuwtLW0kGb7gAOMr2llHI1qxsKLvi +qul0cp7WkpaXUzltcvZxwV9bEUzSdo1OibPYoB+uHZI0CGVKLF6jTG63OMleLX2L/Gi kzDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730163283; x=1730768083; 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=nKbLtYU6Vbe4Y2VZHtZrqT/OsZuLCFbtZmeXjI0R5Mg=; b=FHyFmxFfxIU9xOZfX6Yrks9xXpPPL5nNA0/gFwwXktc9/QaIva/OifvK9NrqP8OTTn ZZ5xvQlSeRsmVihjQyapyyVmKbALhAhl1scWuUm1rpBs9nmQLYuJcwGozbAOl1awOlo5 M0Nl8ZbCVB9i1nwaSqZZuBkqGzBt7KJbE0xF88Dsi81wlBJow3SUqM/lu7kyyxCAihGT aOXsdaXs/7tXsL1Ot3McC6lQjMroXSdJydn5fBMqSGUdRnWOMKI+miHsqzTGkm9ZHSbt v5b8GPJIk0JgBuw8jN63qBvpJuvsZSE9AvR3ZHhovYLmRk0LNBLNggR8J7U8pAsS1Ajp o0yg== X-Gm-Message-State: AOJu0YzwKJCDrsTvMUVaHlVWdL3r9IUBJDWtWc9CxSLpqrv4Um5qT8R4 8LkRS3WI/r7O1+d7afYBnCvcenlSHy2oX7rn54O4ZHPFgLF5W9nE6qZ+epEA X-Google-Smtp-Source: AGHT+IEHY3DYsccUGCYwrHVrCqQDvp/Qdg6RXXnka4iW99jQq2kTCZbbSkZOTpj7RW6ZX3W+rTO4hQ== X-Received: by 2002:a17:902:ced2:b0:20c:ea0a:9665 with SMTP id d9443c01a7336-210c6c6e7c1mr157328105ad.32.1730163282917; Mon, 28 Oct 2024 17:54:42 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::9a1e]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-210bc082757sm56331965ad.290.2024.10.28.17.54.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 17:54:42 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-python][PATCH 1/3] python3-freezegun: Fix ptests with python 3.13 Date: Mon, 28 Oct 2024 17:54:38 -0700 Message-ID: <20241029005440.3916916-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 ; Tue, 29 Oct 2024 00:54:47 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/113314 backport a patch with the needed fix Signed-off-by: Khem Raj --- ...174bb97c0b514033a09b820078b0d117f4a8.patch | 37 +++++++++++++++++++ .../python/python3-freezegun_1.5.1.bb | 1 + 2 files changed, 38 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-freezegun/1777174bb97c0b514033a09b820078b0d117f4a8.patch diff --git a/meta-python/recipes-devtools/python/python3-freezegun/1777174bb97c0b514033a09b820078b0d117f4a8.patch b/meta-python/recipes-devtools/python/python3-freezegun/1777174bb97c0b514033a09b820078b0d117f4a8.patch new file mode 100644 index 0000000000..4604da2b57 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-freezegun/1777174bb97c0b514033a09b820078b0d117f4a8.patch @@ -0,0 +1,37 @@ +From 1777174bb97c0b514033a09b820078b0d117f4a8 Mon Sep 17 00:00:00 2001 +From: Bert Blommers +Date: Fri, 28 Jun 2024 19:21:04 +0000 +Subject: [PATCH] Admin: Support Python 3.13 + +Upstream-Status: Backport [https://github.com/spulec/freezegun/pull/550] +Signed-off-by: Khem Raj +--- + .github/workflows/ci.yaml | 9 ++++++--- + tests/test_datetimes.py | 6 +++--- + 2 files changed, 9 insertions(+), 6 deletions(-) + +diff --git a/tests/test_datetimes.py b/tests/test_datetimes.py +index a6f1989..b75ad3b 100644 +--- a/tests/test_datetimes.py ++++ b/tests/test_datetimes.py +@@ -534,17 +534,17 @@ def test_method_decorator_works_on_unittest(self) -> None: + @freeze_time('2013-04-09', as_kwarg='frozen_time') + def test_method_decorator_works_on_unittest_kwarg_frozen_time(self, frozen_time: Any) -> None: + self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today()) +- self.assertEqual(datetime.date(2013, 4, 9), frozen_time.time_to_freeze.today()) ++ assert frozen_time.time_to_freeze.today().strftime('%Y-%m-%d') == "2013-04-09" + + @freeze_time('2013-04-09', as_kwarg='hello') + def test_method_decorator_works_on_unittest_kwarg_hello(self, **kwargs: Any) -> None: + self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today()) +- self.assertEqual(datetime.date(2013, 4, 9), kwargs.get('hello').time_to_freeze.today()) # type: ignore ++ assert kwargs.get("hello").time_to_freeze.today().strftime('%Y-%m-%d') == "2013-04-09" # type: ignore + + @freeze_time(lambda: datetime.date(year=2013, month=4, day=9), as_kwarg='frozen_time') + def test_method_decorator_works_on_unittest_kwarg_frozen_time_with_func(self, frozen_time: Any) -> None: + self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today()) +- self.assertEqual(datetime.date(2013, 4, 9), frozen_time.time_to_freeze.today()) ++ assert frozen_time.time_to_freeze.today().strftime('%Y-%m-%d') == "2013-04-09" + + + @freeze_time('2013-04-09') diff --git a/meta-python/recipes-devtools/python/python3-freezegun_1.5.1.bb b/meta-python/recipes-devtools/python/python3-freezegun_1.5.1.bb index 8b5750df43..431843bde4 100644 --- a/meta-python/recipes-devtools/python/python3-freezegun_1.5.1.bb +++ b/meta-python/recipes-devtools/python/python3-freezegun_1.5.1.bb @@ -9,6 +9,7 @@ inherit pypi python_setuptools_build_meta ptest SRC_URI += " \ file://run-ptest \ + file://1777174bb97c0b514033a09b820078b0d117f4a8.patch \ " RDEPENDS:${PN}-ptest += " \ From patchwork Tue Oct 29 00:54:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 51472 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 C9FD6D5B854 for ; Tue, 29 Oct 2024 00:54:47 +0000 (UTC) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mx.groups.io with SMTP id smtpd.web10.8868.1730163285356947977 for ; Mon, 28 Oct 2024 17:54:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F/lxmMn+; spf=pass (domain: gmail.com, ip: 209.85.214.180, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-20cbca51687so44774805ad.1 for ; Mon, 28 Oct 2024 17:54:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730163284; x=1730768084; 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=uNyA5v+cALj1UXCPKfnoVDLs8GmoAGkg9B0LTjKyvVI=; b=F/lxmMn+PPjv/bIXGjKM23it0ZJYsUTFjxMjR8QsIKHGN4kDxytzOA+Wudy+biz1sb GN4R4EhJxb6oKoyi6O4q/hz8yL+P9075WdKQT6CHiSXIyFGPpU/QYm1jY4EY2AZvBQWz 6je5zUNkjD4gE4obOomR7zY/hOzRNObox/2e5enld4ZdUBA70JtE0YJxIgV8bAbB8Car Jt1kEBAx1/bWz2lVd0TRENhY0JvXKaPfy6xSxZSLnL1W6MlAZNBy7q2kQOOGrQdgAvIo E7eO1/yAOgBDxQRJ215zn7LTV+z+0ARKO6+cjhXLwqJ4qL65AxK4JXXfCEZkSiOpSTDW SERg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730163284; x=1730768084; 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=uNyA5v+cALj1UXCPKfnoVDLs8GmoAGkg9B0LTjKyvVI=; b=Dz/GStoce+vFMUxAcZjkEm139U4KWv5ldksksBct6GTZ+lshppbQ49V436uK0zgeUZ GbV0seYJmqKvlNf9kXrO0IOX1swTEatnNugVOd9mWgEg/V1ogbIshR79vF2ri4k4ewE5 CAeX2hyjVOkPcg3KjqrxQLam+5COtCXLGh6USLl5rZisj9qrhzH0DF+s4neM0eVeNmFi aD6cLaGfyqjlirSeDYOnNzpTxljOemxV5NUqiOpirW02jPkvoYfwInHJoTQm4GHts95z bJG0nvGEXlVvTBY8DRzCAH3vVB/WBxGyNA2Hq3iNVcJl/N1bG6AvRLOzO90rmx8vcal4 FGIw== X-Gm-Message-State: AOJu0YzERJM8kLEaNgZSRVNiLQvAc633kLf44kwIzUJvJn2urccPYiJ/ u3TIjUQOy0925scrTeJZK5/0k6W6qwGpOTMA9+fjvOmXXfXROglRkdMydBWK X-Google-Smtp-Source: AGHT+IGRMJ/JhD7iBI7J/IXxtp9xm3hkraJr+GW2XVut7/sfcw4RicwCQT0qaeKwZJ+wtA5/3P0dsA== X-Received: by 2002:a17:902:e845:b0:20c:85db:fb6e with SMTP id d9443c01a7336-210c6879f54mr112358065ad.8.1730163284256; Mon, 28 Oct 2024 17:54:44 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::9a1e]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-210bc082757sm56331965ad.290.2024.10.28.17.54.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 17:54:43 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-python][PATCH 2/3] python3-betamax: Use tip of trunk to support python 3.13 Date: Mon, 28 Oct 2024 17:54:39 -0700 Message-ID: <20241029005440.3916916-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241029005440.3916916-1-raj.khem@gmail.com> References: <20241029005440.3916916-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 ; Tue, 29 Oct 2024 00:54:47 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/113315 There are several fixes need to get going with python 3.13, therefore switch to git SRC_URI until next release is made Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-betamax_0.9.0.bb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meta-python/recipes-devtools/python/python3-betamax_0.9.0.bb b/meta-python/recipes-devtools/python/python3-betamax_0.9.0.bb index a0454686ee..68572d98b1 100644 --- a/meta-python/recipes-devtools/python/python3-betamax_0.9.0.bb +++ b/meta-python/recipes-devtools/python/python3-betamax_0.9.0.bb @@ -3,13 +3,18 @@ HOMEPAGE = "https://github.com/betamaxpy/betamax" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=61c15f0c146c5fb1a8ce8ba2f310d73c" +PV .= "+git" + +SRCREV = "8f3d284103676a43d1481b5cffae96f3a601e0be" SRC_URI += " \ file://run-ptest \ + git://github.com/betamaxpy/betamax;protocol=https;branch=main \ file://0001-Drop-ptests-fixtures-and-recorde_modes.patch \ " -SRC_URI[sha256sum] = "82316e1679bc6879e3c83318d016b54b7c9225ff08c4462de4813e22038d5f94" -inherit pypi setuptools3 ptest +S = "${WORKDIR}/git" + +inherit setuptools3 ptest RDEPENDS:${PN} += " \ python3-requests \ From patchwork Tue Oct 29 00:54:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 51471 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 C6FB0D5B85D for ; Tue, 29 Oct 2024 00:54:47 +0000 (UTC) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mx.groups.io with SMTP id smtpd.web10.8870.1730163286392057602 for ; Mon, 28 Oct 2024 17:54:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IJlv1QBW; spf=pass (domain: gmail.com, ip: 209.85.214.174, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-20cb47387ceso43984725ad.1 for ; Mon, 28 Oct 2024 17:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730163286; x=1730768086; 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=jI1w4X+mwPA18JV1pHGJZzd3xx49HIrqIkgJfFeqC2Y=; b=IJlv1QBW2JltG7DHkwmO/5pkRCCYcBxP/heLhp9k8Jlh76bzYAkebLCDQ1eD1lAMiO 2aroG29ps+cg7QleKzfu0CjE/XLApioLpDmeeyV4X29eD2F75vvzBrxpKCahm8zWXi6g uunlLWwbAttXUb+qyQhiT1Cs+0xX5oRYnlds8g1mHvX49Ie7wS1Esck2j227tSkL27OU WJI3JYDCDZFLbFgsppTiSh/TGVxmbMm2iLZe7ZKKv7402n7sIb30p06BopJ54AFVrEuw J97B0za+ZCneY2LjEtOIyPX6o9QKWxXyIVawfzlWAFoY0wf6kuyObqksemsmVse0YSgV +YTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730163286; x=1730768086; 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=jI1w4X+mwPA18JV1pHGJZzd3xx49HIrqIkgJfFeqC2Y=; b=V5AK+ixLNTTxRbF09ug/R6g1oFZBqB5z/71ItdqI+9sa75ryeEmIcv/pHgWM7RVWwy vjbbz0HUN+hc5yoCqkByK3iZHHEzSsfqpthV6eOMcBVGSjsH6T5NRg+AjaWPLrYbu1Ei BMNfKYEbzT/BK0l9G0nvxTdPB3jhpOgSpBWGjdvyxvhO9m8P+X+6Qn+OXLKP8Soj27rP LgQpJiDKtgsL3W2ll2in+PffFTRMWEAKHMq+LItMMkCpP+pbz6r1hKXdpKZsqfY5haes MGRt9nmNtVO9NB4apN/608u+7ZkH0nSjakWpGMVuyOuKIxT15DLfKWZtsEh9Y0Sski1m ysvA== X-Gm-Message-State: AOJu0YwjIIEQWe+sfRK62CT1Nepy9BpmTO32LdJEwr80LACPugYm5E+N nGDYJ4BD+nFEc6eL3lPEyqLUuQDKvV2+7MxmhTJOLn9KPTCiZHGCsf+x7yGr X-Google-Smtp-Source: AGHT+IG/35dqdwQV3LvPUcc6W21TVZni7wqOYHjKV2qzkooFYRqVB4nA0Yd7vBhnEYj4d5AMWdyF7A== X-Received: by 2002:a17:902:e843:b0:20b:b39d:9735 with SMTP id d9443c01a7336-210c6c823dbmr159070145ad.54.1730163285607; Mon, 28 Oct 2024 17:54:45 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::9a1e]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-210bc082757sm56331965ad.290.2024.10.28.17.54.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 17:54:45 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-python][PATCH 3/3] python3-wrapt: Upgrade to 1.17 RC1 Date: Mon, 28 Oct 2024 17:54:40 -0700 Message-ID: <20241029005440.3916916-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241029005440.3916916-1-raj.khem@gmail.com> References: <20241029005440.3916916-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 ; Tue, 29 Oct 2024 00:54:47 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/113316 It has all the python 3.13 fixes Signed-off-by: Khem Raj --- ...{python3-wrapt_1.16.0.bb => python3-wrapt_1.17.0rc1.bb} | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-wrapt_1.16.0.bb => python3-wrapt_1.17.0rc1.bb} (79%) diff --git a/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb b/meta-python/recipes-devtools/python/python3-wrapt_1.17.0rc1.bb similarity index 79% rename from meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb rename to meta-python/recipes-devtools/python/python3-wrapt_1.17.0rc1.bb index 398d2fa6b7..636d677555 100644 --- a/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb +++ b/meta-python/recipes-devtools/python/python3-wrapt_1.17.0rc1.bb @@ -6,12 +6,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=dc34cbad60bc961452eb7ade801d25f7" SRC_URI[sha256sum] = "5f370f952971e7d17c7d1ead40e49f32345a7f7a5373571ef44d800d06b1899d" -inherit pypi setuptools3 ptest +inherit setuptools3 ptest -SRC_URI += " \ +SRCREV = "75f291f8bf1fe6535b13b0b3dfedca012ca6c8a5" +SRC_URI += "git://github.com/GrahamDumpleton/wrapt;protocol=https;branch=develop \ file://run-ptest \ " +S = "${WORKDIR}/git" + # python3-misc for 'this' module RDEPENDS:${PN}-ptest += " \ python3-misc \