Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-yappi for openSUSE:Factory checked in at 2021-10-16 22:47:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-yappi (Old) and /work/SRC/openSUSE:Factory/.python-yappi.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-yappi" Sat Oct 16 22:47:39 2021 rev:11 rq:925742 version:1.3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-yappi/python-yappi.changes 2021-04-24 23:09:52.275455735 +0200 +++ /work/SRC/openSUSE:Factory/.python-yappi.new.1890/python-yappi.changes 2021-10-16 22:48:23.936730279 +0200 @@ -1,0 +2,6 @@ +Sat Oct 16 19:39:15 UTC 2021 - Dirk M??ller <dmuel...@suse.com> + +- update to 1.3.3: + * further python 3.10 fixes + +------------------------------------------------------------------- Old: ---- yappi-1.3.2.tar.gz New: ---- yappi-1.3.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-yappi.spec ++++++ --- /var/tmp/diff_new_pack.o8UOlE/_old 2021-10-16 22:48:24.280730569 +0200 +++ /var/tmp/diff_new_pack.o8UOlE/_new 2021-10-16 22:48:24.284730572 +0200 @@ -20,7 +20,7 @@ %define skip_python2 1 %define skip_python36 1 Name: python-yappi -Version: 1.3.2 +Version: 1.3.3 Release: 0 Summary: Yet Another Python Profiler License: MIT ++++++ yappi-1.3.2.tar.gz -> yappi-1.3.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yappi-1.3.2/PKG-INFO new/yappi-1.3.3/PKG-INFO --- old/yappi-1.3.2/PKG-INFO 2020-11-27 16:22:23.943609200 +0100 +++ new/yappi-1.3.3/PKG-INFO 2021-10-05 15:03:24.452152300 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: yappi -Version: 1.3.2 +Version: 1.3.3 Summary: Yet Another Python Profiler Home-page: https://github.com/sumerc/yappi Author: Sumer Cip @@ -30,9 +30,9 @@ - **Fast**: Yappi is fast. It is completely written in C and lots of love&care went into making it fast. - **Unique**: Yappi supports multithreaded, [asyncio](https://github.com/sumerc/yappi/blob/master/doc/coroutine-profiling.md) and [gevent](https://github.com/sumerc/yappi/blob/master/doc/greenlet-profiling.md) profiling. Tagging/filtering multiple profiler results has interesting [use cases](https://github.com/sumerc/yappi/blob/master/doc/api.md#set_tag_callback). - **Intuitive**: Profiler can??be??started/stopped and results can be obtained from any time and any thread. - - **Standards Complaint**: Profiler??results??can??be??saved??in??[callgrind](http://valgrind.org/docs/manual/cl-format.html)??or??[pstat](http://docs.python.org/3.4/library/profile.html#pstats.Stats)??formats. + - **Standards Compliant**: Profiler??results??can??be??saved??in??[callgrind](http://valgrind.org/docs/manual/cl-format.html)??or??[pstat](http://docs.python.org/3.4/library/profile.html#pstats.Stats)??formats. - **Rich in Feature set**: Profiler results can show either [Wall Time](https://en.wikipedia.org/wiki/Elapsed_real_time) or actual [CPU Time](http://en.wikipedia.org/wiki/CPU_time) and can be aggregated??from??different??sessions. Various flags are defined for filtering and sorting profiler results. - - **Robust**: Yappi had seen more than *8 years* of production usage. + - **Robust**: Yappi had seen years of production usage. ## Motivation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yappi-1.3.2/README.md new/yappi-1.3.3/README.md --- old/yappi-1.3.2/README.md 2020-11-27 15:50:15.000000000 +0100 +++ new/yappi-1.3.3/README.md 2021-08-09 17:48:02.000000000 +0200 @@ -22,9 +22,9 @@ - **Fast**: Yappi is fast. It is completely written in C and lots of love&care went into making it fast. - **Unique**: Yappi supports multithreaded, [asyncio](https://github.com/sumerc/yappi/blob/master/doc/coroutine-profiling.md) and [gevent](https://github.com/sumerc/yappi/blob/master/doc/greenlet-profiling.md) profiling. Tagging/filtering multiple profiler results has interesting [use cases](https://github.com/sumerc/yappi/blob/master/doc/api.md#set_tag_callback). - **Intuitive**: Profiler can??be??started/stopped and results can be obtained from any time and any thread. -- **Standards Complaint**: Profiler??results??can??be??saved??in??[callgrind](http://valgrind.org/docs/manual/cl-format.html)??or??[pstat](http://docs.python.org/3.4/library/profile.html#pstats.Stats)??formats. +- **Standards Compliant**: Profiler??results??can??be??saved??in??[callgrind](http://valgrind.org/docs/manual/cl-format.html)??or??[pstat](http://docs.python.org/3.4/library/profile.html#pstats.Stats)??formats. - **Rich in Feature set**: Profiler results can show either [Wall Time](https://en.wikipedia.org/wiki/Elapsed_real_time) or actual [CPU Time](http://en.wikipedia.org/wiki/CPU_time) and can be aggregated??from??different??sessions. Various flags are defined for filtering and sorting profiler results. -- **Robust**: Yappi had seen more than *8 years* of production usage. +- **Robust**: Yappi had seen years of production usage. ## Motivation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yappi-1.3.2/setup.py new/yappi-1.3.3/setup.py --- old/yappi-1.3.2/setup.py 2020-11-27 16:02:24.000000000 +0100 +++ new/yappi-1.3.3/setup.py 2021-10-04 09:59:24.000000000 +0200 @@ -12,7 +12,7 @@ HOMEPAGE = "https://github.com/sumerc/yappi" NAME = "yappi" -VERSION = "1.3.2" +VERSION = "1.3.3" _DEBUG = False # compile/link code for debugging _PROFILE = False # profile yappi itself diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yappi-1.3.2/yappi/_yappi.c new/yappi-1.3.3/yappi/_yappi.c --- old/yappi-1.3.2/yappi/_yappi.c 2020-11-27 15:50:15.000000000 +0100 +++ new/yappi-1.3.3/yappi/_yappi.c 2021-08-09 17:48:02.000000000 +0200 @@ -1258,7 +1258,11 @@ 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 @@ 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 @@ 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 @@ -1604,6 +1616,7 @@ _pit *pt; PyObject *exc; PyObject *children; + PyObject *ctx_name; _pit_children_info *pci; _ctxfuncenumarg *eargs; @@ -1644,11 +1657,19 @@ if (pt->callcount == 0) pt->callcount = 1; + // normally _yapp_callback sets ctx->name if not set but there is a possibility + // that we might end up here even it is not set. We also do not default it to + // Py_None as we will Py_CLEAR() on it later on. + ctx_name = eargs->ctx->name; + if (!ctx_name) { + ctx_name = Py_None; + } + exc = PyObject_CallFunction(eargs->enum_args->enumfn, "((OOkkkIffIOkOkO))", pt->name, pt->modname, pt->lineno, pt->callcount, pt->nonrecursive_callcount, pt->builtin, _normt(pt->ttotal), _normt(pt->tsubtotal), - pt->index, children, eargs->ctx->id, eargs->ctx->name, + pt->index, children, eargs->ctx->id, ctx_name, eargs->tag, pt->fn_descriptor); if (!exc) { @@ -1727,7 +1748,7 @@ } static PyObject* -stop(PyObject *self) +stop(PyObject *self, PyObject *args) { _stop(); Py_RETURN_NONE; @@ -2081,13 +2102,13 @@ // error return NULL; } - + Py_RETURN_NONE; } static PyMethodDef yappi_methods[] = { {"start", start, METH_VARARGS, NULL}, - {"stop", (PyCFunction)stop, METH_NOARGS, NULL}, + {"stop", stop, METH_NOARGS, NULL}, {"enum_func_stats", enum_func_stats, METH_VARARGS, NULL}, {"enum_context_stats", enum_context_stats, METH_VARARGS, NULL}, {"enum_thread_stats", enum_context_stats, METH_VARARGS, NULL}, @@ -2108,7 +2129,7 @@ {"_profile_event", profile_event, METH_VARARGS, NULL}, // for internal usage. {"_pause", _pause, METH_VARARGS, NULL}, // for internal usage. {"_resume", _resume, METH_VARARGS, NULL}, // for internal usage. - {NULL, NULL} /* sentinel */ + {NULL, NULL, 0, NULL} /* sentinel */ }; #ifdef IS_PY3K diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yappi-1.3.2/yappi/timing.h new/yappi-1.3.3/yappi/timing.h --- old/yappi-1.3.2/yappi/timing.h 2020-11-27 15:50:15.000000000 +0100 +++ new/yappi-1.3.3/yappi/timing.h 2021-08-09 17:48:02.000000000 +0200 @@ -1,9 +1,8 @@ - -#include "config.h" - #ifndef YTIMING_H #define YTIMING_H +#include "config.h" + #if defined(_WINDOWS) #include <windows.h> @@ -56,5 +55,3 @@ clock_type_t get_timing_clock_type(void); #endif - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yappi-1.3.2/yappi/tls.h new/yappi-1.3.3/yappi/tls.h --- old/yappi-1.3.2/yappi/tls.h 2020-11-27 15:50:15.000000000 +0100 +++ new/yappi-1.3.3/yappi/tls.h 2021-08-09 17:48:02.000000000 +0200 @@ -1,9 +1,9 @@ -#include "Python.h" -#include "pythread.h" - #ifndef YTLS_H #define YTLS_H +#include "Python.h" +#include "pythread.h" + #if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 7 #define USE_NEW_TSS_API #endif @@ -23,4 +23,4 @@ int set_tls_key_value(tls_key_t* key, void* value); void* get_tls_key_value(tls_key_t* key); void delete_tls_key(tls_key_t* key); -#endif \ No newline at end of file +#endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yappi-1.3.2/yappi/yappi.egg-info/PKG-INFO new/yappi-1.3.3/yappi/yappi.egg-info/PKG-INFO --- old/yappi-1.3.2/yappi/yappi.egg-info/PKG-INFO 2020-11-27 16:22:23.000000000 +0100 +++ new/yappi-1.3.3/yappi/yappi.egg-info/PKG-INFO 2021-10-05 15:03:24.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: yappi -Version: 1.3.2 +Version: 1.3.3 Summary: Yet Another Python Profiler Home-page: https://github.com/sumerc/yappi Author: Sumer Cip @@ -30,9 +30,9 @@ - **Fast**: Yappi is fast. It is completely written in C and lots of love&care went into making it fast. - **Unique**: Yappi supports multithreaded, [asyncio](https://github.com/sumerc/yappi/blob/master/doc/coroutine-profiling.md) and [gevent](https://github.com/sumerc/yappi/blob/master/doc/greenlet-profiling.md) profiling. Tagging/filtering multiple profiler results has interesting [use cases](https://github.com/sumerc/yappi/blob/master/doc/api.md#set_tag_callback). - **Intuitive**: Profiler can??be??started/stopped and results can be obtained from any time and any thread. - - **Standards Complaint**: Profiler??results??can??be??saved??in??[callgrind](http://valgrind.org/docs/manual/cl-format.html)??or??[pstat](http://docs.python.org/3.4/library/profile.html#pstats.Stats)??formats. + - **Standards Compliant**: Profiler??results??can??be??saved??in??[callgrind](http://valgrind.org/docs/manual/cl-format.html)??or??[pstat](http://docs.python.org/3.4/library/profile.html#pstats.Stats)??formats. - **Rich in Feature set**: Profiler results can show either [Wall Time](https://en.wikipedia.org/wiki/Elapsed_real_time) or actual [CPU Time](http://en.wikipedia.org/wiki/CPU_time) and can be aggregated??from??different??sessions. Various flags are defined for filtering and sorting profiler results. - - **Robust**: Yappi had seen more than *8 years* of production usage. + - **Robust**: Yappi had seen years of production usage. ## Motivation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yappi-1.3.2/yappi/yappi.py new/yappi-1.3.3/yappi/yappi.py --- old/yappi-1.3.2/yappi/yappi.py 2020-11-27 15:50:15.000000000 +0100 +++ new/yappi-1.3.3/yappi/yappi.py 2021-10-04 09:58:30.000000000 +0200 @@ -46,11 +46,11 @@ "callcount": 3, "totaltime": 6, "subtime": 7, - "avgtime": 10, + "avgtime": 14, "ncall": 3, "ttot": 6, "tsub": 7, - "tavg": 10 + "tavg": 14 } SORT_TYPES_CHILDFUNCSTATS = { "name": 10,