From b6e76246ddea9e87459131a47907d0a29c8b1335 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Fri, 12 Nov 2021 10:59:47 +0200 Subject: python3-yappi: Upgrade 1.3.2 -> 1.3.3 Upgrade to release 1.3.3: - Fix 3.10 support - Fix wrong sorting key when tavg is selected Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../python/python3-yappi/python310.patch | 51 ---------------------- .../recipes-devtools/python/python3-yappi_1.3.2.bb | 35 --------------- .../recipes-devtools/python/python3-yappi_1.3.3.bb | 34 +++++++++++++++ 3 files changed, 34 insertions(+), 86 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-yappi/python310.patch delete mode 100644 meta-python/recipes-devtools/python/python3-yappi_1.3.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-yappi_1.3.3.bb diff --git a/meta-python/recipes-devtools/python/python3-yappi/python310.patch b/meta-python/recipes-devtools/python/python3-yappi/python310.patch deleted file mode 100644 index 6dd58ae968..0000000000 --- a/meta-python/recipes-devtools/python/python3-yappi/python310.patch +++ /dev/null @@ -1,51 +0,0 @@ -From d40bc0e8230dd35e05222f5761e3d7f7a75fd46e Mon Sep 17 00:00:00 2001 -From: Alexander Shadchin -Date: Tue, 1 Jun 2021 02:31:12 +0300 -Subject: [PATCH] Adapt to Python 3.10 beta 1 - -Upstream-Status: Backport -Signed-off-by: Alexander Kanavin ---- - yappi/_yappi.c | 12 ++++++++++++ - 1 file changed, 12 insertions(+) - -diff --git a/yappi/_yappi.c b/yappi/_yappi.c -index 1721280..343130d 100644 ---- a/yappi/_yappi.c -+++ b/yappi/_yappi.c -@@ -1258,7 +1258,11 @@ _resume_greenlet_ctx(_ctx *ctx) - static _ctx * - _bootstrap_thread(PyThreadState *ts) - { -+#if PY_VERSION_HEX < 0x030a00b1 - ts->use_tracing = 1; -+#else -+ ts->cframe->use_tracing = 1; -+#endif - ts->c_profilefunc = _yapp_callback; - return NULL; - } -@@ -1289,7 +1293,11 @@ _profile_thread(PyThreadState *ts) - ctx = (_ctx *)it->val; - } - -+#if PY_VERSION_HEX < 0x030a00b1 - ts->use_tracing = 1; -+#else -+ ts->cframe->use_tracing = 1; -+#endif - ts->c_profilefunc = _yapp_callback; - ctx->id = ctx_id; - ctx->tid = ts->thread_id; -@@ -1306,7 +1314,11 @@ _profile_thread(PyThreadState *ts) - static _ctx* - _unprofile_thread(PyThreadState *ts) - { -+#if PY_VERSION_HEX < 0x030a00b1 - ts->use_tracing = 0; -+#else -+ ts->cframe->use_tracing = 0; -+#endif - ts->c_profilefunc = NULL; - - return NULL; //dummy return for enum_threads() func. prototype diff --git a/meta-python/recipes-devtools/python/python3-yappi_1.3.2.bb b/meta-python/recipes-devtools/python/python3-yappi_1.3.2.bb deleted file mode 100644 index 7cfc84e756..0000000000 --- a/meta-python/recipes-devtools/python/python3-yappi_1.3.2.bb +++ /dev/null @@ -1,35 +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] = "a51d3e6e5563cc74b5bb82ed6e7bd44a9c1a7eae3d97e4d52e9465edb3a8da8d" - -SRC_URI += " \ - file://run-ptest \ - file://0001-Fix-imports-for-ptests.patch \ - file://python310.patch \ -" - -inherit pypi setuptools3 ptest - -RDEPENDS:${PN} += "\ - ${PYTHON_PN}-datetime \ - ${PYTHON_PN}-pickle \ - ${PYTHON_PN}-threading \ -" - -RDEPENDS:${PN}-ptest += " \ - ${PYTHON_PN}-gevent \ - ${PYTHON_PN}-multiprocessing \ - ${PYTHON_PN}-pytest \ - ${PYTHON_PN}-profile \ - ${PYTHON_PN}-zopeinterface \ -" - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ - cp -f ${S}/yappi/yappi.py ${D}/${PTEST_PATH}/ -} diff --git a/meta-python/recipes-devtools/python/python3-yappi_1.3.3.bb b/meta-python/recipes-devtools/python/python3-yappi_1.3.3.bb new file mode 100644 index 0000000000..45a5f058ac --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-yappi_1.3.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] = "855890cd9a90d833dd2df632d648de8ccd0a4c3131f1edc8abd004db0625b5e8" + +SRC_URI += " \ + file://run-ptest \ + file://0001-Fix-imports-for-ptests.patch \ +" + +inherit pypi setuptools3 ptest + +RDEPENDS:${PN} += "\ + ${PYTHON_PN}-datetime \ + ${PYTHON_PN}-pickle \ + ${PYTHON_PN}-threading \ +" + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-gevent \ + ${PYTHON_PN}-multiprocessing \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-profile \ + ${PYTHON_PN}-zopeinterface \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ + cp -f ${S}/yappi/yappi.py ${D}/${PTEST_PATH}/ +} -- cgit v1.2.3-54-g00ecf