From 34f4e6db585584735b84d60550e20bb023cf0490 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Wed, 29 Oct 2025 08:15:03 +0800 Subject: python3-yappi: upgrade 1.6.10 -> 1.7.3 0002-Fix-import-of-tests.utils-to-enable-pytest.patch refreshed for 1.7.3 Changelog: ============ - Better wheel support - Python 3.14 support Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- ...ix-import-of-tests.utils-to-enable-pytest.patch | 11 +++---- .../python/python3-yappi_1.6.10.bb | 34 ---------------------- .../recipes-devtools/python/python3-yappi_1.7.3.bb | 34 ++++++++++++++++++++++ 3 files changed, 38 insertions(+), 41 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-yappi_1.6.10.bb create mode 100644 meta-python/recipes-devtools/python/python3-yappi_1.7.3.bb diff --git a/meta-python/recipes-devtools/python/python3-yappi/0002-Fix-import-of-tests.utils-to-enable-pytest.patch b/meta-python/recipes-devtools/python/python3-yappi/0002-Fix-import-of-tests.utils-to-enable-pytest.patch index 96dd024125..93a4fd980f 100644 --- a/meta-python/recipes-devtools/python/python3-yappi/0002-Fix-import-of-tests.utils-to-enable-pytest.patch +++ b/meta-python/recipes-devtools/python/python3-yappi/0002-Fix-import-of-tests.utils-to-enable-pytest.patch @@ -1,7 +1,7 @@ -From 28eac38566327091221aabbc164ea8e433c66e7e Mon Sep 17 00:00:00 2001 +From 7c7ceea53138eefbe522f8881f1c4281083a2d68 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Sun, 24 Dec 2023 09:27:50 -0800 -Subject: [PATCH 2/2] Fix import of tests.utils to enable pytest +Subject: [PATCH] Fix import of tests.utils to enable pytest Running the test cases with pytest leads to importlib errors because the "utils" module cannot be found. @@ -19,7 +19,7 @@ Signed-off-by: Tim Orling 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py -index 8e9e631..bb36f4a 100644 +index a48b6ca..76e99a7 100644 --- a/tests/test_asyncio.py +++ b/tests/test_asyncio.py @@ -2,7 +2,7 @@ import unittest @@ -30,7 +30,7 @@ index 8e9e631..bb36f4a 100644 +from tests.utils import YappiUnitTestCase, find_stat_by_name, burn_cpu, burn_io - async def async_sleep(sec): + try: diff --git a/tests/test_asyncio_context_vars.py b/tests/test_asyncio_context_vars.py index 5bd750c..9a253c0 100644 --- a/tests/test_asyncio_context_vars.py @@ -96,6 +96,3 @@ index b0b531d..b5a4016 100644 class MultiThreadTests(YappiUnitTestCase): --- -2.34.1 - diff --git a/meta-python/recipes-devtools/python/python3-yappi_1.6.10.bb b/meta-python/recipes-devtools/python/python3-yappi_1.6.10.bb deleted file mode 100644 index bced340b94..0000000000 --- a/meta-python/recipes-devtools/python/python3-yappi_1.6.10.bb +++ /dev/null @@ -1,34 +0,0 @@ -SUMMARY = "Yet Another Python Profiler" -HOMEPAGE = "https://github.com/sumerc/yappi" - -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=71c208c9a4fd864385eb69ad4caa3bee" - -SRC_URI[sha256sum] = "463b822727658937bd95a7d80ca9758605b8cd0014e004e9e520ec9cb4db0c92" - -SRC_URI += " \ - file://0001-test_functionality-convert-line-endings-to-Unix.patch \ - file://0002-Fix-import-of-tests.utils-to-enable-pytest.patch \ - " - -inherit pypi python_setuptools_build_meta ptest-python-pytest - -RDEPENDS:${PN} += "\ - python3-datetime \ - python3-pickle \ - python3-threading \ -" - -RDEPENDS:${PN}-ptest += " \ - python3-gevent \ - python3-multiprocessing \ - python3-pytest \ - python3-profile \ - python3-unittest-automake-output \ - python3-zopeinterface \ -" - -do_install_ptest:append() { - cp -f ${S}/run_tests.py ${D}${PTEST_PATH} -} - diff --git a/meta-python/recipes-devtools/python/python3-yappi_1.7.3.bb b/meta-python/recipes-devtools/python/python3-yappi_1.7.3.bb new file mode 100644 index 0000000000..3e735f7124 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-yappi_1.7.3.bb @@ -0,0 +1,34 @@ +SUMMARY = "Yet Another Python Profiler" +HOMEPAGE = "https://github.com/sumerc/yappi" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=71c208c9a4fd864385eb69ad4caa3bee" + +SRC_URI[sha256sum] = "bef71ad0595b600261668dcb1e18b935a7117a724c04d7be60d9d246e32d0928" + +SRC_URI += " \ + file://0001-test_functionality-convert-line-endings-to-Unix.patch \ + file://0002-Fix-import-of-tests.utils-to-enable-pytest.patch \ + " + +inherit pypi python_setuptools_build_meta ptest-python-pytest + +RDEPENDS:${PN} += "\ + python3-datetime \ + python3-pickle \ + python3-threading \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-gevent \ + python3-multiprocessing \ + python3-pytest \ + python3-profile \ + python3-unittest-automake-output \ + python3-zopeinterface \ +" + +do_install_ptest:append() { + cp -f ${S}/run_tests.py ${D}${PTEST_PATH} +} + -- cgit v1.2.3-54-g00ecf