From patchwork Tue Mar 5 15:51:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Ak X-Patchwork-Id: 40481 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 67D65C54E41 for ; Tue, 5 Mar 2024 15:52:15 +0000 (UTC) Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) by mx.groups.io with SMTP id smtpd.web11.27090.1709653925043411225 for ; Tue, 05 Mar 2024 07:52:05 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VS3LS14b; spf=pass (domain: gmail.com, ip: 209.85.208.44, mailfrom: alperyasinak1@gmail.com) Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-563b7b3e3ecso8797529a12.0 for ; Tue, 05 Mar 2024 07:52:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709653923; x=1710258723; 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=sIC0yBq1PW3Zh4W5Z7nOHAc0MLNaz0fQWip35xXrC54=; b=VS3LS14bKoclZkHnPqpgkICx/XKbfejkd/pGivXg0Xojvg2YlOYaJe0r5vbPFPWAQv McuZGjLRBz6THDHHMArNfHhnAx6Dd5xK/fidFtkK7BxowIyhwhujzVUOJG4cCswaCSen 4XUmv8fsrjieu2cTbzHuNNA3ogWLjBr7jj4KXO2A+44X5HXa3SdZB1vlm+w+tFr3J0DB Gi8lZOK2j5yqeO57tprGFI/E50uHnwBAFcj4eX2/xHrnZf70Kai99sWuZKT3EHX+lhOh XrYYmpav6KWflA2ICPHRpMmqxmSRKSsznecxcIKda8bDuGvw7/v1vObBsT1KwanP/k5o cCeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709653923; x=1710258723; 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=sIC0yBq1PW3Zh4W5Z7nOHAc0MLNaz0fQWip35xXrC54=; b=p1Gp9yL5wNa/Q8KL+1vc+Gk7RMYUj7VU5UqCw0ruUmN6R4hF4D0nmpRYgX3vBPkJ8x ZJ6bJg7OetF0fL79egKmj91R2DZcSBbRv2baEINO3vN13D02TeZRl17uLDsq24bZestw Tgg2JU8wn7lVhCQ8f+bSwOm+dWf82xacEUpa0omKF0QwodDEaO1Rle1v6/Mubq5XZkKW NfatyFvwk4CzsyEUVDxevUZ+qH9dsqQ+2DYelzJdaEuQmDlBif9geYXv6DD/eQTaHh3O 8G/gacQWO8s7Xhrq1klJm87Mp+mIyERvbdvNoGpSnNQvb+ECXvsQy0n13DO79Pt8RYq5 MPPA== X-Gm-Message-State: AOJu0Yz44WGppHFs+EdayZ13A4RPrBfsj6O3rjEFu9ELx3p8cH3AbYE0 5S411ybEjN3p+MqWezJ1HabLBCkeai/of/BsLif92zF51ORs/PeWRd6CUzpXvGo= X-Google-Smtp-Source: AGHT+IHOmdepSsS0CZywbpXEAVpdsqMCcMBD4UxY2verrzYEFwSMNgyfIEPDWeyZdaPy19V82x3k5g== X-Received: by 2002:a05:6402:3493:b0:566:f67e:3f72 with SMTP id v19-20020a056402349300b00566f67e3f72mr7525631edc.12.1709653922673; Tue, 05 Mar 2024 07:52:02 -0800 (PST) Received: from localhost.localdomain ([176.33.65.159]) by smtp.gmail.com with ESMTPSA id g20-20020a056402321400b00567bdc41c91sm197757eda.62.2024.03.05.07.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 07:52:01 -0800 (PST) From: alperak To: openembedded-devel@lists.openembedded.org Cc: alperak Subject: [meta-python][PATCH 1/2] python3-types-python-dateutil: add recipe Date: Tue, 5 Mar 2024 18:51:45 +0300 Message-Id: <20240305155145.593699-1-alperyasinak1@gmail.com> X-Mailer: git-send-email 2.25.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 ; Tue, 05 Mar 2024 15:52:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/109122 This is a PEP 561 type stub package for the python-dateutil package. It can be used by type-checking tools like mypy, pyright, pytype, PyCharm, etc. to check code that uses python-dateutil. Signed-off-by: alperak --- .../python3-types-python-dateutil_2.8.19.20240106.bb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-types-python-dateutil_2.8.19.20240106.bb diff --git a/meta-python/recipes-devtools/python/python3-types-python-dateutil_2.8.19.20240106.bb b/meta-python/recipes-devtools/python/python3-types-python-dateutil_2.8.19.20240106.bb new file mode 100644 index 000000000..2075d96b4 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-types-python-dateutil_2.8.19.20240106.bb @@ -0,0 +1,8 @@ +SUMMARY = "Typing stubs for python-dateutil" +HOMEPAGE = "https://github.com/python/typeshed" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=6;endline=6;md5=ef4dc1e740f5c928f1608a4a9c7b578e" + +SRC_URI[sha256sum] = "1f8db221c3b98e6ca02ea83a58371b22c374f42ae5bbdf186db9c9a76581459f" + +inherit pypi setuptools3 From patchwork Tue Mar 5 15:52:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Ak X-Patchwork-Id: 40482 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 4B5C9C54798 for ; Tue, 5 Mar 2024 15:52:25 +0000 (UTC) Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by mx.groups.io with SMTP id smtpd.web10.26526.1709653940012448168 for ; Tue, 05 Mar 2024 07:52:20 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b9fe7Onw; spf=pass (domain: gmail.com, ip: 209.85.218.52, mailfrom: alperyasinak1@gmail.com) Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a458b6d9cfeso203898866b.2 for ; Tue, 05 Mar 2024 07:52:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709653938; x=1710258738; 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=VNT7STM6NFQR8EvXhvyev3TSBJLft8NNN9FE6nLvm0I=; b=b9fe7OnwClGlBfYmYiEJxgL9vjPc93lLYboRWY/PYS6b+w4Z3Ke//8YiHQHleELK2K mPtbOSHYScJNjLZLvW1mP20/54ZEdywUyTtEq3dTf/mSc85S09SOPsPPhNexkKs2I7hY Um9otZkEPvRzYgqJid8AEUDdrDakFE5z7vWstdOwuWS55Q0/e/dpcrnxQ45qRJiaX4Qg 5AF/ZNO+Ib8XcSHlunasOzp5HsVh7EPTMJJoZdZIKR36vLaDS+EebyCXmC69wIypcsdj IP74haqbGqeb2YVISmiEpATHdItwg5KLXEbab0ld3Ko7PDFxrf/JQ7Kv8xx0+sPLzMPV TtbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709653938; x=1710258738; 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=VNT7STM6NFQR8EvXhvyev3TSBJLft8NNN9FE6nLvm0I=; b=c4GuK1RXtRzjoYjzKsK8ebSA37cULbovoA2GNLBWpatpJcs+MZ9aUmKzBi/OeAW6Eu +GaTGR6lMRBXAaCZqZbkvAFJgWcEhRJRpZOipYcZlk5xuUdRS/lwK+8SkWKJJalXEF3x NzmTkOmm2nWUpBcT/eDKQ+BkvSkrrCAFxC0X91jqq9ZhX8/5ebB6hpsJZhuXSzFkuka3 5RJEZSEt3KYtvggSJEaxCqxNknLoJjZZvQQeKQ2lksWqUfvc06UFMECAWpX+bfcnijkG rOcn70o5EvbQ8ebZb6DhBCmBs5nflTrq5Es7LvT0Oif0e9mIX7Oi9N1nZIol3f494F8s npow== X-Gm-Message-State: AOJu0Yzl4GEdAWSWtwfydQIm7P4W0mtV6iGKMCgNcLFlmjwUj9x0rNz4 U8VFsZffmEWP59W6l3UE2vgh/KeNVXN8vz404r6K5UVt6sfbt+r7mvGPkQgINQo= X-Google-Smtp-Source: AGHT+IGDPK0HgMuw0m/WWyrfDlNJqa8Bc6DrvJS1Rjnyb9QJb8ePjqw7HZu98riWQAIFIpJC5hGLqQ== X-Received: by 2002:a17:906:f148:b0:a43:ef41:e9e2 with SMTP id gw8-20020a170906f14800b00a43ef41e9e2mr8563367ejb.52.1709653937591; Tue, 05 Mar 2024 07:52:17 -0800 (PST) Received: from localhost.localdomain ([176.33.65.159]) by smtp.gmail.com with ESMTPSA id s2-20020a1709060d6200b00a45a73e0be9sm860819ejh.180.2024.03.05.07.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 07:52:17 -0800 (PST) From: alperak To: openembedded-devel@lists.openembedded.org Cc: alperak Subject: [meta-python][PATCH 2/2] python3-arrow: add ptest, update backend and runtime dependencies Date: Tue, 5 Mar 2024 18:52:11 +0300 Message-Id: <20240305155211.593816-1-alperyasinak1@gmail.com> X-Mailer: git-send-email 2.25.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 ; Tue, 05 Mar 2024 15:52:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/109123 * Upstream provides a pyproject.toml which declares a flit_core.buildapi build backend instead of setuptools. * Updated runtime dependencies. * Ptest and library example tested on qemux86-64 and qemuarm64 * Add ptest into PTESTS_SLOW_META_PYTHON Ptest result: ============= qemux86-64: Testsuite summary TOTAL: 1839 PASS: 1836 SKIP: 1 XFAIL: 1 FAIL: 0 XPASS: 1 ERROR: 0 DURATION: 146 END: /usr/lib/python3-arrow/ptest 2024-03-05T12:57 STOP: ptest-runner TOTAL: 1 FAIL: 0 qemuarm64: Testsuite summary TOTAL: 1839 PASS: 1836 SKIP: 1 XFAIL: 1 FAIL: 0 XPASS: 1 ERROR: 0 DURATION: 130 END: /usr/lib/python3-arrow/ptest 2024-03-05T12:51 STOP: ptest-runner TOTAL: 1 FAIL: 0 XFAIL AND XPASS known issue with humanize month limits Signed-off-by: alperak --- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-arrow/run-ptest | 3 ++ .../python/python3-arrow_1.3.0.bb | 30 ++++++++++++++++--- 3 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-arrow/run-ptest diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index 65a45c4b6..99cae21b2 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc @@ -75,6 +75,7 @@ PTESTS_FAST_META_PYTHON = "\ " PTESTS_SLOW_META_PYTHON = "\ + python3-arrow \ python3-lz4 \ python3-yappi \ " diff --git a/meta-python/recipes-devtools/python/python3-arrow/run-ptest b/meta-python/recipes-devtools/python/python3-arrow/run-ptest new file mode 100644 index 000000000..8d2017d39 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-arrow/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb b/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb index 90ba5de96..c1b7c1a43 100644 --- a/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb +++ b/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb @@ -1,13 +1,35 @@ SUMMARY = "Better dates and times for Python" -HOMEPAGE = "https://github.com/crsmithdev/arrow" +HOMEPAGE = "https://github.com/arrow-py/arrow" SECTION = "devel/python" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=14a2e29a9d542fb9052d75344d67619d" SRC_URI[sha256sum] = "d4540617648cb5f895730f1ad8c82a65f2dad0166f57b75f3ca54759c4d67a85" -inherit setuptools3 pypi +inherit pypi python_flit_core ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-dateutil-zoneinfo \ + python3-pytest \ + python3-pytest-mock \ + python3-pytz \ + python3-simplejson \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} RDEPENDS:${PN} += " \ - python3-dateutil \ - " + python3-compression \ + python3-dateutil \ + python3-dateutil-zoneinfo \ + python3-json \ + python3-types-python-dateutil \ +"