diff --git a/.gitignore b/.gitignore index 3a2ac5a..06f3ae4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /yappi-1.2.5.tar.gz /yappi-1.3.0.tar.gz /yappi-1.3.1.tar.gz +/yappi-1.3.2.tar.gz diff --git a/0001-Adapt-to-Python-3.10-beta-1.patch b/0001-Adapt-to-Python-3.10-beta-1.patch new file mode 100644 index 0000000..a56787f --- /dev/null +++ b/0001-Adapt-to-Python-3.10-beta-1.patch @@ -0,0 +1,52 @@ +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 + +--- + 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 +-- +2.26.2 + diff --git a/python-yappi.spec b/python-yappi.spec index 73c9315..812e60f 100644 --- a/python-yappi.spec +++ b/python-yappi.spec @@ -1,13 +1,15 @@ %global srcname yappi Name: python-%{srcname} -Version: 1.3.1 -Release: 3%{?dist} +Version: 1.3.2 +Release: 1%{?dist} Summary: Yet Another Python Profiler, supports Multithread/CPU time profiling License: MIT URL: https://github.com/sumerc/yappi Source0: https://files.pythonhosted.org/packages/source/y/%{srcname}/%{srcname}-%{version}.tar.gz +# https://github.com/sumerc/yappi/commit/b07534e005d5ad36f06db81a3232998392fe55d8 unreleased +Patch01: 0001-Adapt-to-Python-3.10-beta-1.patch BuildRequires: git BuildRequires: gcc @@ -56,16 +58,20 @@ export PYTHONPATH=%{buildroot}/%{python3_sitearch} %{_bindir}/%{srcname}-3* %changelog +* Wed Jun 16 2021 Joel Capitao - 1.3.2-1 +- Update to 1.3.2 version (#1902302) +- Included patch to support python 3.10 (#1958896) + * Fri Jun 04 2021 Python Maint - 1.3.1-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild -* Thu Nov 10 2020 Alfredo Moralejo - 1.3.1-1 +* Tue Nov 10 2020 Alfredo Moralejo - 1.3.1-1 - Update to 1.3.1 version -* Thu Nov 10 2020 Alfredo Moralejo - 1.3.0-1 +* Tue Nov 10 2020 Alfredo Moralejo - 1.3.0-1 - Update to 1.3.0 version * Fri Aug 28 2020 Alfredo Moralejo - 1.2.5-1 diff --git a/sources b/sources index 600ba55..9424506 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (yappi-1.3.1.tar.gz) = 0c78ab9fe3b1b8ed85759a8b732784b18995ee1dbe773a75e1bcd94d44670c4ab72a40ac9c362d4a82ade881a8f24c889226c44f217d0e57043f1eed45b2ca40 +SHA512 (yappi-1.3.2.tar.gz) = 66744d065ad910225b6c0f17eddbbde72b485081d5e66dc299d1bcce8217811ddd2b280c4a6976007af9a4848f18a0d0ea7fa684a46f71cb9df72c70ec1d8b45