From b58112e5af484d9314f6a4487b1bc8b292f952ef Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Thu, 7 Mar 2024 11:16:36 -0600 Subject: subtree updates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit meta-raspberrypi: 95a9103f91..92a9b7a012: Michał Kluska (1): rpi-base: Added missing HiFiBerry meta-openembedded: 9f0e513211..a0237019f5: Alexander Stein (1): libkcapi: Update HOMEPAGE url Changqing Li (4): syslog-ng: upgrade 4.0.1 -> 4.6.0 multipath-tools: upgrade 0.9.3 -> 0.9.8 nodejs: upgrade 20.11.0 -> 20.11.1 postgresql: upgrade 15.5 -> 16.2 Joe Slater (1): googletest: allow for shared libraries Khem Raj (17): python3-fastjsonschema: Add missing ptest deps python3-gpiod: Tests rely on configfs support in kernel python3-pyzmq: Add missing dep on python3-unixadmin for ptests python3-betamax: Upgrade to 0.9.0 libgpiod: Tests rely on configfs support in kernel keyutils: Add missing rdep for ptests fuse3: Make kmod as a recommendation instead of rdep for ptests drbd-utils: Disable warnings as errors influxdb: Define GOPROXY crucible: Define GOPROXY syzkaller: Fix build with go 1.21 e2tools: Delete unneeded files from ptest package ptest-packagelists-meta-oe: Move libgpiod out of PTESTS_PROBLEMS_META_OE ptest-packagelists-meta-python: Move py3-libgpiod out of PTESTS_PROBLEMS_META_PYTHON pgpool2: Upgrade to 4.5.1 pgpool2: Fix build with postgresql 16+ emacs: Add packageconfig for selinux support Krupal Ka Patel (1): python3-aiohappyeyeballs: Correct the typo of BBCLASSEXTEND Markus Volk (3): folks: update 0.15.6 -> 0.15.7 mozjs-115: update 115.6.0 -> 115.8.0 polkit: update 123 -> 124 Martin Jansa (3): ristretto: use python3native and depend on glib-2.0-native, python3-packaging-native xfce4-notifyd: use python3native and depend on python3-packaging-native fuse3: use 4 spaces for indentation Mingli Yu (1): nlohmann-json: Upgrade to 3.11.3 Randolph Sapp (1): glmark2: add upstream patch to not care about stencil config Ulrich Ölmann (1): signing.bbclass: fix typos Xiangyu Chen (3): iperf3: upgrade 3.15 -> 3.16 grpc: upgrade 1.60.0 -> 1.60.1 drbd-utils: upgrade 9.22.0 -> 9.27.0 Yi Zhao (7): openipmi: fix do_configure error when using dash cryptsetup: upgrade 2.6.1 -> 2.7.0 layer.conf: Add nativesdk-libdevmapper PREFERRED_RPROVIDER krb5: upgrade 1.20.2 -> 1.21.2 postfix: upgrade 3.7.3 -> 3.8.5 openldap: upgrade 2.5.16 -> 2.6.7 openvpn: upgrade 2.6.7 -> 2.6.9 Yoann Congal (3): drbd-utils: Drop a duplicated line in DESCRIPTION drbd-utils: Fix a udev rule reproducibility toybox-inittab: Fix serial getty reproducibility alperak (9): python3-google-auth: upgrade 2.28.0 -> 2.28.1 python3-netaddr: upgrade 0.10.1 -> 1.2.1 and add ptest ptest-packagelists-meta-python: Move python3-xlrd from PTESTS_PROBLEMS_META_PYTHON to PTESTS_FAST_META_PYTHON python3-wrapt: add ptest python3-freezegun: add recipe and add ptest python3-dateutil: upgrade 2.8.2 -> 2.9.0 python3-types-python-dateutil: add recipe python3-arrow: add ptest, update backend and runtime dependencies python3-marshmallow: upgrade 3.20.2 -> 3.21.1 and add ptest poky: 25d60ac6f6..7165c23237: Alexander Kanavin (48): xz: correct upstream version check python3-sphinxcontrib-jquery: add a recipe and make python3-sphinx-rtd-theme depend on it acl: upgrade 2.3.1 -> 2.3.2 appstream: upgrade 1.0.0 -> 1.0.2 boost: upgrade 1.83.0 -> 1.84.0 btrfs-tools: upgrade 6.5.3 -> 6.7.1 dnf: upgrade 4.18.2 -> 4.19.0 diffoscope: upgrade 253 -> 259 ell: upgrade 0.62 -> 0.63 elfutils: upgrade 0.189 -> 0.191 epiphany: upgrade 45.1 -> 45.3 gettext: upgrade 0.22.4 -> 0.22.5 glib-2.0: upgrade 2.78.3 -> 2.78.4 glib-networking: upgrade 2.78.0 -> 2.78.1 kmscube: upgrade to latest revision libbsd: upgrade 0.11.8 -> 0.12.1 libdnf: update 0.72.0 -> 0.73.0 libpciaccess: upgrade 0.17 -> 0.18 libpcre2: upgrade 10.42 -> 10.43 librepo: update 1.16.0 -> 1.17.0 libusb1: upgrade 1.0.26 -> 1.0.27 libxml2: upgrade 2.11.5 -> 2.12.5 linux-firmware: upgrade 20231211 -> 20240220 librsvg: upgrade 2.56.3 -> 2.57.1 lsof: upgrade 4.98.0 -> 4.99.3 man-pages: upgrade 6.05.01 -> 6.06 mc: upgrade 4.8.30 -> 4.8.31 mesa: upgrade 24.0.1 -> 24.0.2 minicom: upgrade 2.8 -> 2.9 nghttp2: upgrade 1.59.0 -> 1.60.0 orc: upgrade 0.4.37 -> 0.4.38 puzzles: upgrade to latest revision piglit: upgrade to latest revision python3-build: upgrade 1.0.3 -> 1.1.1 python3-dtschema: upgrade 2023.7 -> 2024.2 python3-jsonschema: upgrade 4.17.3 -> 4.21.1 and add new dependencies python3-ruamel-yaml: upgrade 0.17.35 -> 0.18.6 python3-setuptools: upgrade 69.0.3 -> 69.1.1 python3-wcwidth: upgrade 0.2.12 -> 0.2.13 repo: upgrade 2.41 -> 2.42 shaderc: update 2023.7 -> 2023.8 systemd: upgrade 255.1 -> 255.4 ttyrun: upgrade 2.30.0 -> 2.31.0 taglib: upgrade 1.13.1 -> 2.0 and add utfcpp recipe to support that update-rc.d: upgrade to latest revision vala: upgrade 0.56.13 -> 0.56.15 vulkan: upgrade 1.3.268.0 -> 1.3.275.0 webkitgtk: upgrade 2.42.2 -> 2.42.5 Bruce Ashfield (3): linux-yocto/cfg/6.6: drop CONFIG_DEBUG_CREDENTIALS linux-yocto/6.6: update to v6.6.20 linux-yocto/6.6: update CVE exclusions Changqing Li (3): rxvt-unicode: Fix installing of terminfo systemd: fix dead link /var/log/README go: filter out build specific path from the linker flags Chen Qi (2): systemd: use RDEPENDS for systemd-vconsole-setup systemd: remove systemd-bus-proxy settings Christian Taedcke (1): image_types.bbclass: fix vfat image names Eilís 'pidge' Ní Fhlannagáin (6): qemurunner.py: Fix error on calls to run_monitor screenshot-tests: Add initial screenshot test png files for core-image-sato oeqa/runtime/login: Proof of concept for screenshot testcases oeqa/runtime/login: Exclude qemuriscv64 oeqa/runtime/login: Add screenshot sample logic/timeout/dbus-wait sstatetests.py: Add testing for correct sstate permissions Fabio Estevam (1): u-boot: Move UBOOT_INITIAL_ENV back to u-boot.inc Geoff Parker (1): ref-manual: variables: adding multiple groups in GROUPADD_PARAM Johan Bezem (1): ref-manual: variables: correct sdk installation default path Jose Quaresma (7): go: rework patch to avoid identation go: bump 1.21.0 goarch: disable dynamic linking globally oeqa/gotoolchain: set GOPROXY go: upgrade 1.21.0 -> 1.21.5 go: upgrade 1.21.5 -> 1.21.7 go: bump 1.22.0 Khem Raj (4): mesa,mesa-gl: Fix build when dri3 is not enabled linux-yocto: Enable gpio-sim with ptests rust: Fix build failure re-appeared on riscv32 gdb: Upgrade 14.1 -> 14.2 Luca Ceresoli (2): ref-manual: tasks: do_cleanall: recommend using '-f' instead ref-manual: tasks: do_cleansstate: recommend using '-f' instead for a shared sstate Markus Volk (1): gtk+3: update 3.24.38 -> 3.24.41 Michael Opdenacker (4): core-image-full-cmdline: add package-management bitbake: utils: remove BB_ENV_PASSTHROUGH from preserved_envvars() dev-manual: packages: fix capitalization manuals: document VIRTUAL-RUNTIME variables Randy MacLeod (1): valgrind: skip intermittently failing ptests Richard Purdie (9): no-gplv3: Tweak for packagemangement in core-image-full-cmdline qemu: Replace workaround with proper usermode fix for shmat bitbake: fetch/git: Avoid clean upon failure go: Further tweak indentation in patch go: Drop linkmode with nativesdk/cross-canadian libpng: Update SRC_URI to avoid redirects oeqa/runtime/login: Various code improvements and fixes oeqa/runtime/login: Mask out the mouse panel icon for now oeqa/runtime/login: Fix dbus-wait timeout and loop conditional Robert P. J. Day (1): python3-cryptography_42.0.5.bb: delete redundant ptest packaging Ross Burton (2): Add genericarm64 MACHINE rxvt: add rxvt to desktop entry name Simone Weiß (4): coreutils: backport patch to fix heap overflow in split qemu: backport patch for ui/clipboard issue ref-manual: classes: add cve status check for oe.qa contributor-guide: add notes for tests Tim Orling (1): python3-hypothesis: upgrade 6.98.12 -> 6.98.15 Trevor Woerner (2): bmaptool: now part of Yocto Project dev-manual: bmaptool: rename Yi Zhao (1): expat: upgrdae 2.6.0 -> 2.6.1 Yoann Congal (1): bitbake: prserv/serv: Fix a PID file removal race on prserv stop Change-Id: Ie94e4df79e3d8f68aea3377f816d7106987a05f8 Signed-off-by: Patrick Williams --- .../python/python3-aiohappyeyeballs_2.3.2.bb | 2 +- .../python/python3-arrow/run-ptest | 3 ++ .../recipes-devtools/python/python3-arrow_1.3.0.bb | 30 +++++++++++++--- ...01-Drop-ptests-fixtures-and-recorde_modes.patch | 42 +++++++++++++--------- .../python/python3-betamax_0.8.1.bb | 29 --------------- .../python/python3-betamax_0.9.0.bb | 27 ++++++++++++++ .../python/python3-dateutil_2.8.2.bb | 25 ------------- .../python/python3-dateutil_2.9.0.bb | 25 +++++++++++++ .../python/python3-fastjsonschema_2.18.0.bb | 1 + .../python/python3-freezegun/run-ptest | 3 ++ .../python/python3-freezegun_1.4.0.bb | 29 +++++++++++++++ .../python/python3-google-auth_2.28.0.bb | 26 -------------- .../python/python3-google-auth_2.28.1.bb | 26 ++++++++++++++ .../recipes-devtools/python/python3-gpiod_2.1.3.bb | 1 + .../python/python3-marshmallow/run-ptest | 3 ++ .../python/python3-marshmallow_3.20.2.bb | 23 ------------ .../python/python3-marshmallow_3.21.1.bb | 40 +++++++++++++++++++++ .../python/python3-netaddr/run-ptest | 3 ++ .../python/python3-netaddr_0.10.1.bb | 13 ------- .../python/python3-netaddr_1.2.1.bb | 22 ++++++++++++ .../python/python3-pyzmq_25.1.2.bb | 1 + ...ython3-types-python-dateutil_2.8.19.20240106.bb | 8 +++++ .../python/python3-wrapt/run-ptest | 3 ++ .../python/python3-wrapt_1.16.0.bb | 16 ++++++++- 24 files changed, 263 insertions(+), 138 deletions(-) create mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-arrow/run-ptest delete mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-betamax_0.8.1.bb create mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-betamax_0.9.0.bb delete mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-dateutil_2.8.2.bb create mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-dateutil_2.9.0.bb create mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-freezegun/run-ptest create mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-freezegun_1.4.0.bb delete mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-google-auth_2.28.0.bb create mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-google-auth_2.28.1.bb create mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-marshmallow/run-ptest delete mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-marshmallow_3.20.2.bb create mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-marshmallow_3.21.1.bb create mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-netaddr/run-ptest delete mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-netaddr_0.10.1.bb create mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-netaddr_1.2.1.bb create mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-types-python-dateutil_2.8.19.20240106.bb create mode 100644 meta-openembedded/meta-python/recipes-devtools/python/python3-wrapt/run-ptest (limited to 'meta-openembedded/meta-python/recipes-devtools/python') diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-aiohappyeyeballs_2.3.2.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-aiohappyeyeballs_2.3.2.bb index 0ca4834773..edad28e772 100644 --- a/meta-openembedded/meta-python/recipes-devtools/python/python3-aiohappyeyeballs_2.3.2.bb +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-aiohappyeyeballs_2.3.2.bb @@ -8,5 +8,5 @@ SRC_URI[sha256sum] = "77e15a733090547a1f5369a1287ddfc944bd30df0eb8993f585259c34b inherit pypi python_poetry_core -BBCLASSSEXTEND = "native nativesdk" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-arrow/run-ptest b/meta-openembedded/meta-python/recipes-devtools/python/python3-arrow/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-arrow/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb index 90ba5de96f..c1b7c1a433 100644 --- a/meta-openembedded/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb +++ b/meta-openembedded/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 \ +" diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-betamax/0001-Drop-ptests-fixtures-and-recorde_modes.patch b/meta-openembedded/meta-python/recipes-devtools/python/python3-betamax/0001-Drop-ptests-fixtures-and-recorde_modes.patch index 7adcb68324..52745a9373 100644 --- a/meta-openembedded/meta-python/recipes-devtools/python/python3-betamax/0001-Drop-ptests-fixtures-and-recorde_modes.patch +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-betamax/0001-Drop-ptests-fixtures-and-recorde_modes.patch @@ -1,7 +1,7 @@ -From 0e0b63ae80df5d7849b2e1c5ab9a668e8378b5e8 Mon Sep 17 00:00:00 2001 +From e5aa66b1af2d49f159c4daefc598f96744ee988d Mon Sep 17 00:00:00 2001 From: Zhixiong Chi -Date: Tue, 28 Mar 2023 06:05:45 +0000 -Subject: [PATCH] Drop ptests fixtures and recorde_modes +Date: Thu, 29 Feb 2024 12:31:58 -0800 +Subject: [PATCH] [PATCH] Drop ptests fixtures and recorde_modes The usage of fixture in test_fixtures has been deprecated. See https://docs.pytest.org/en/stable/explanation/fixtures.html and @@ -12,14 +12,15 @@ re-sold several times, and it adds X-Amzn-Trace-Id header that can possibly diff for each request. It leads to ptest failure, so drop it now until we find the solution. -Upstream-Status: Inappropriate [oe specific] +Upstream-Status: Inappropriate [OE-Specific] Signed-off-by: Zhixiong Chi +Signed-off-by: Khem Raj --- tests/integration/test_fixtures.py | 60 ----------- - tests/integration/test_record_modes.py | 132 ------------------------- - tests/unit/test_fixtures.py | 94 ------------------ - 3 files changed, 286 deletions(-) + tests/integration/test_record_modes.py | 141 ------------------------- + tests/unit/test_fixtures.py | 94 ----------------- + 3 files changed, 295 deletions(-) delete mode 100644 tests/integration/test_fixtures.py delete mode 100644 tests/integration/test_record_modes.py delete mode 100644 tests/unit/test_fixtures.py @@ -92,10 +93,12 @@ index fc3d1e7..0000000 - assert True diff --git a/tests/integration/test_record_modes.py b/tests/integration/test_record_modes.py deleted file mode 100644 -index 58c8846..0000000 +index 988b851..0000000 --- a/tests/integration/test_record_modes.py +++ /dev/null -@@ -1,132 +0,0 @@ +@@ -1,141 +0,0 @@ +-import re +- -from betamax import Betamax, BetamaxError - -from tests.integration.helper import IntegrationHelper @@ -137,8 +140,15 @@ index 58c8846..0000000 - # this test to succeed. - # NOTE(hroncok): httpbin.org added X-Processed-Time header that - # can possibly differ (and often does) +- r0_content = r0.content.decode(encoding='utf-8', errors='strict') +- r1_content = r1.content.decode(encoding='utf-8', errors='strict') +- r0_content = re.sub('"X-Amzn-Trace-Id": "[^"]+"', '"X-Amzn-Trace-Id": ""', r0_content) +- r1_content = re.sub('"X-Amzn-Trace-Id": "[^"]+"', '"X-Amzn-Trace-Id": ""', r1_content) +- # NOTE(jhatler): httpbin.org added "X-Amzn-Trace-Id" to their +- # response, which is a unique ID that will differ between requests. +- # We remove it from the response body before comparing. - assert r0_headers == r1_headers -- assert r0.content == r1.content +- assert r0_content == r1_content - - -class TestRecordNone(IntegrationHelper): @@ -230,7 +240,7 @@ index 58c8846..0000000 - assert len(cassette.interactions) == 5 diff --git a/tests/unit/test_fixtures.py b/tests/unit/test_fixtures.py deleted file mode 100644 -index 387d9ce..0000000 +index 41f33eb..0000000 --- a/tests/unit/test_fixtures.py +++ /dev/null @@ -1,94 +0,0 @@ @@ -263,9 +273,9 @@ index 387d9ce..0000000 - # Mock a pytest request object - request = mock.MagicMock() - request.cls = request.module = None -- request.function.__name__ = 'test' +- request.node.name = request.function.__name__ = 'test' - -- pytest_fixture.betamax_recorder(request) +- pytest_fixture._betamax_recorder(request) - assert request.addfinalizer.called is True - request.addfinalizer.assert_called_once_with(self.mocked_betamax.stop) - @@ -273,9 +283,9 @@ index 387d9ce..0000000 - # Mock a pytest request object - request = mock.MagicMock() - request.cls = request.module = None -- request.function.__name__ = 'test' +- request.node.name = request.function.__name__ = 'test' - -- pytest_fixture.betamax_recorder(request) +- pytest_fixture._betamax_recorder(request) - self.mocked_betamax.start.assert_called_once_with() - - @@ -329,5 +339,5 @@ index 387d9ce..0000000 - - recorder.stop.assert_called_once_with() -- -2.35.5 +2.44.0 diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-betamax_0.8.1.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-betamax_0.8.1.bb deleted file mode 100644 index 468a1075b1..0000000000 --- a/meta-openembedded/meta-python/recipes-devtools/python/python3-betamax_0.8.1.bb +++ /dev/null @@ -1,29 +0,0 @@ -DESCRIPTION = "VCR imitation for python requests" -HOMEPAGE = "https://github.com/betamaxpy/betamax" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=61c15f0c146c5fb1a8ce8ba2f310d73c" - -SRC_URI += " \ - file://run-ptest \ - file://0001-Drop-ptests-fixtures-and-recorde_modes.patch \ -" - -SRC_URI[md5sum] = "b8182d43a200fc126a3bf7555626f964" -SRC_URI[sha256sum] = "5bf004ceffccae881213fb722f34517166b84a34919b92ffc14d1dbd050b71c2" - -inherit pypi setuptools3 ptest - -RDEPENDS:${PN} += " \ - python3-requests \ - python3-unittest \ -" - -RDEPENDS:${PN}-ptest += " \ - python3-pytest \ - python3-unittest-automake-output \ -" - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ -} diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-betamax_0.9.0.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-betamax_0.9.0.bb new file mode 100644 index 0000000000..a0454686ee --- /dev/null +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-betamax_0.9.0.bb @@ -0,0 +1,27 @@ +DESCRIPTION = "VCR imitation for python requests" +HOMEPAGE = "https://github.com/betamaxpy/betamax" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=61c15f0c146c5fb1a8ce8ba2f310d73c" + +SRC_URI += " \ + file://run-ptest \ + file://0001-Drop-ptests-fixtures-and-recorde_modes.patch \ +" +SRC_URI[sha256sum] = "82316e1679bc6879e3c83318d016b54b7c9225ff08c4462de4813e22038d5f94" + +inherit pypi setuptools3 ptest + +RDEPENDS:${PN} += " \ + python3-requests \ + python3-unittest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-dateutil_2.8.2.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-dateutil_2.8.2.bb deleted file mode 100644 index c8e8a45c98..0000000000 --- a/meta-openembedded/meta-python/recipes-devtools/python/python3-dateutil_2.8.2.bb +++ /dev/null @@ -1,25 +0,0 @@ -SUMMARY = "Extensions to the standard Python datetime module" -DESCRIPTION = "The dateutil module provides powerful extensions to the datetime module available in the Python standard library." -HOMEPAGE = "https://dateutil.readthedocs.org" -LICENSE = "BSD-3-Clause & Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=e3155c7bdc71f66e02678411d2abf996" - -SRC_URI[sha256sum] = "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86" - -PYPI_PACKAGE = "python-dateutil" -PIP_INSTALL_PACKAGE = "python_dateutil" -inherit pypi python_setuptools_build_meta - -PACKAGES =+ "${PN}-zoneinfo" -FILES:${PN}-zoneinfo = "${libdir}/${PYTHON_DIR}/site-packages/dateutil/zoneinfo" - -DEPENDS += "python3-setuptools-scm-native" - -RDEPENDS:${PN} = "\ - python3-datetime \ - python3-numbers \ - python3-six \ - python3-stringold \ -" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-dateutil_2.9.0.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-dateutil_2.9.0.bb new file mode 100644 index 0000000000..bcb68d7714 --- /dev/null +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-dateutil_2.9.0.bb @@ -0,0 +1,25 @@ +SUMMARY = "Extensions to the standard Python datetime module" +DESCRIPTION = "The dateutil module provides powerful extensions to the datetime module available in the Python standard library." +HOMEPAGE = "https://dateutil.readthedocs.org" +LICENSE = "BSD-3-Clause & Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=e3155c7bdc71f66e02678411d2abf996" + +SRC_URI[sha256sum] = "78e73e19c63f5b20ffa567001531680d939dc042bf7850431877645523c66709" + +PYPI_PACKAGE = "python-dateutil" +PIP_INSTALL_PACKAGE = "python_dateutil" +inherit pypi python_setuptools_build_meta + +PACKAGES =+ "${PN}-zoneinfo" +FILES:${PN}-zoneinfo = "${libdir}/${PYTHON_DIR}/site-packages/dateutil/zoneinfo" + +DEPENDS += "python3-setuptools-scm-native" + +RDEPENDS:${PN} = "\ + python3-datetime \ + python3-numbers \ + python3-six \ + python3-stringold \ +" + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb index 6b74f7260c..b2e969c5c1 100644 --- a/meta-openembedded/meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb @@ -27,6 +27,7 @@ RDEPENDS:${PN}-ptest += "\ python3-pytest \ python3-pytest-benchmark \ python3-pytest-cache \ + python3-statistics \ python3-unittest-automake-output \ " RDEPENDS:${PN} += "\ diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-freezegun/run-ptest b/meta-openembedded/meta-python/recipes-devtools/python/python3-freezegun/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-freezegun/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-freezegun_1.4.0.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-freezegun_1.4.0.bb new file mode 100644 index 0000000000..15c0bf06ba --- /dev/null +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-freezegun_1.4.0.bb @@ -0,0 +1,29 @@ +SUMMARY = "FreezeGun is a library that allows your Python tests to travel through time by mocking the datetime module." +HOMEPAGE = "https://github.com/spulec/freezegun" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=acf1d209bb6eddae4cbe6ffd6a0144fe" + +SRC_URI[sha256sum] = "10939b0ba0ff5adaecf3b06a5c2f73071d9678e507c5eaedb23c761d56ac774b" + +inherit pypi python_setuptools_build_meta ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-sqlite3 \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +RDEPENDS:${PN} = "\ + python3-asyncio \ + python3-dateutil \ + python3-unittest \ +" diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-google-auth_2.28.0.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-google-auth_2.28.0.bb deleted file mode 100644 index 5799db43ba..0000000000 --- a/meta-openembedded/meta-python/recipes-devtools/python/python3-google-auth_2.28.0.bb +++ /dev/null @@ -1,26 +0,0 @@ -DESCRIPTION = "Google Authentication Library" -HOMEPAGE = "https://github.com/googleapis/google-auth-library-python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" - -inherit pypi setuptools3 - -SRC_URI[sha256sum] = "3cfc1b6e4e64797584fb53fc9bd0b7afa9b7c0dba2004fa7dcc9349e58cc3195" - -RDEPENDS:${PN} += "\ - python3-asyncio \ - python3-datetime \ - python3-io \ - python3-json \ - python3-logging \ - python3-netclient \ - python3-numbers \ -" - -RDEPENDS:${PN} += "\ - python3-aiohttp \ - python3-cachetools \ - python3-pyasn1-modules \ - python3-rsa \ - python3-six \ -" diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-google-auth_2.28.1.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-google-auth_2.28.1.bb new file mode 100644 index 0000000000..4524cca48c --- /dev/null +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-google-auth_2.28.1.bb @@ -0,0 +1,26 @@ +DESCRIPTION = "Google Authentication Library" +HOMEPAGE = "https://github.com/googleapis/google-auth-library-python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" + +inherit pypi setuptools3 + +SRC_URI[sha256sum] = "34fc3046c257cedcf1622fc4b31fc2be7923d9b4d44973d481125ecc50d83885" + +RDEPENDS:${PN} += "\ + python3-asyncio \ + python3-datetime \ + python3-io \ + python3-json \ + python3-logging \ + python3-netclient \ + python3-numbers \ +" + +RDEPENDS:${PN} += "\ + python3-aiohttp \ + python3-cachetools \ + python3-pyasn1-modules \ + python3-rsa \ + python3-six \ +" diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-gpiod_2.1.3.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-gpiod_2.1.3.bb index 0dbb38d200..d8c8628daa 100644 --- a/meta-openembedded/meta-python/recipes-devtools/python/python3-gpiod_2.1.3.bb +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-gpiod_2.1.3.bb @@ -24,6 +24,7 @@ RDEPENDS:${PN}-ptest += " \ libgpiod-ptest \ python3-setuptools \ " +RRECOMMENDS:${PN}-ptest += "kernel-module-configfs" export LINK_SYSTEM_LIBGPIOD = "1" diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-marshmallow/run-ptest b/meta-openembedded/meta-python/recipes-devtools/python/python3-marshmallow/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-marshmallow/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-marshmallow_3.20.2.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-marshmallow_3.20.2.bb deleted file mode 100644 index c08aec5bec..0000000000 --- a/meta-openembedded/meta-python/recipes-devtools/python/python3-marshmallow_3.20.2.bb +++ /dev/null @@ -1,23 +0,0 @@ -SUMMARY = "Simplified object serialization in python" -DESCRIPTION = "Marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes." -HOMEPAGE = "https://github.com/marshmallow-code/marshmallow" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "\ - file://LICENSE;md5=653847350fed2e0e7b02791a35b98d59 \ - file://docs/license.rst;md5=13da439ad060419fb7cf364523017cfb" - -SRC_URI[sha256sum] = "4c1daff273513dc5eb24b219a8035559dc573c8f322558ef85f5438ddd1236dd" - -inherit setuptools3 pypi - -PIP_INSTALL_PACKAGE = "marshmallow" - -RDEPENDS:${PN} += " \ - python3-core \ - python3-datetime \ - python3-netclient \ - python3-numbers \ - python3-json \ - python3-pprint \ - python3-packaging \ -" diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-marshmallow_3.21.1.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-marshmallow_3.21.1.bb new file mode 100644 index 0000000000..5a0a79a541 --- /dev/null +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-marshmallow_3.21.1.bb @@ -0,0 +1,40 @@ +SUMMARY = "Simplified object serialization in python" +DESCRIPTION = "Marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes." +HOMEPAGE = "https://github.com/marshmallow-code/marshmallow" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "\ + file://LICENSE;md5=27586b20700d7544c06933afe56f7df4 \ + file://docs/license.rst;md5=13da439ad060419fb7cf364523017cfb" + +SRC_URI[sha256sum] = "4e65e9e0d80fc9e609574b9983cf32579f305c718afb30d7233ab818571768c3" + +inherit python_flit_core pypi ptest + +PIP_INSTALL_PACKAGE = "marshmallow" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-pytz \ + python3-simplejson \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + rm -rf ${S}/tests/mypy_test_cases + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +RDEPENDS:${PN} += " \ + python3-compression \ + python3-datetime \ + python3-email \ + python3-json \ + python3-numbers \ + python3-pprint \ + python3-packaging \ +" diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-netaddr/run-ptest b/meta-openembedded/meta-python/recipes-devtools/python/python3-netaddr/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-netaddr/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-netaddr_0.10.1.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-netaddr_0.10.1.bb deleted file mode 100644 index ce16cc1787..0000000000 --- a/meta-openembedded/meta-python/recipes-devtools/python/python3-netaddr_0.10.1.bb +++ /dev/null @@ -1,13 +0,0 @@ -SUMMARY = "A network address manipulation library for Python." -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=e6345d695ffe3776f68a56fe7962db44" - -SRC_URI[sha256sum] = "f4da4222ca8c3f43c8e18a8263e5426c750a3a837fdfeccf74c68d0408eaa3bf" - -inherit pypi setuptools3 - -RDEPENDS:${PN} += " \ - python3-io \ - python3-pprint \ - python3-xml \ -" diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-netaddr_1.2.1.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-netaddr_1.2.1.bb new file mode 100644 index 0000000000..082e7c5025 --- /dev/null +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-netaddr_1.2.1.bb @@ -0,0 +1,22 @@ +SUMMARY = "A network address manipulation library for Python." +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=8afa43eca873b71d5d85dd0be1f707fa" + +SRC_URI[sha256sum] = "6eb8fedf0412c6d294d06885c110de945cf4d22d2b510d0404f4e06950857987" + +inherit pypi python_setuptools_build_meta ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/netaddr/tests/* ${D}${PTEST_PATH}/tests/ +} + diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-pyzmq_25.1.2.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-pyzmq_25.1.2.bb index 5793db55f6..ca602d2507 100644 --- a/meta-openembedded/meta-python/recipes-devtools/python/python3-pyzmq_25.1.2.bb +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-pyzmq_25.1.2.bb @@ -34,6 +34,7 @@ RDEPENDS:${PN}-ptest += "\ ${PN}-test \ python3-pytest \ python3-unittest-automake-output \ + python3-unixadmin \ " do_compile:prepend() { diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-types-python-dateutil_2.8.19.20240106.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-types-python-dateutil_2.8.19.20240106.bb new file mode 100644 index 0000000000..2075d96b4d --- /dev/null +++ b/meta-openembedded/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 diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-wrapt/run-ptest b/meta-openembedded/meta-python/recipes-devtools/python/python3-wrapt/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-wrapt/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb index 84c0528446..056323cd39 100644 --- a/meta-openembedded/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb @@ -6,7 +6,21 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=dc34cbad60bc961452eb7ade801d25f7" SRC_URI[sha256sum] = "5f370f952971e7d17c7d1ead40e49f32345a7f7a5373571ef44d800d06b1899d" -inherit pypi setuptools3 +inherit pypi setuptools3 ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} RDEPENDS:${PN}:class-target += "\ python3-stringold \ -- cgit v1.2.3