Hello community, here is the log from the commit of package python-ipdb for openSUSE:Factory checked in at 2020-06-29 21:18:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ipdb (Old) and /work/SRC/openSUSE:Factory/.python-ipdb.new.3060 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ipdb" Mon Jun 29 21:18:39 2020 rev:7 rq:817731 version:0.13.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ipdb/python-ipdb.changes 2020-03-04 09:47:32.822184615 +0100 +++ /work/SRC/openSUSE:Factory/.python-ipdb.new.3060/python-ipdb.changes 2020-06-29 21:19:13.181942612 +0200 @@ -1,0 +2,8 @@ +Mon Jun 29 13:31:09 UTC 2020 - Marketa Calabkova <[email protected]> + +- Update to 0.13.3 + * Allow runcall, runeval to also use set context value + * Add condition argument to set_trace + * Add option to set context via environment variable or configuration file + +------------------------------------------------------------------- Old: ---- ipdb-0.13.2.tar.gz New: ---- ipdb-0.13.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ipdb.spec ++++++ --- /var/tmp/diff_new_pack.SLfIGf/_old 2020-06-29 21:19:13.997945136 +0200 +++ /var/tmp/diff_new_pack.SLfIGf/_new 2020-06-29 21:19:14.001945149 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-ipdb -Version: 0.13.2 +Version: 0.13.3 Release: 0 Summary: IPython-enabled pdb License: BSD-3-Clause @@ -30,9 +30,9 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-ipython >= 5.1 Requires(post): update-alternatives Requires(postun): update-alternatives -Requires: python-ipython >= 5.1 Provides: python-jupyter_ipdb = %{version} Obsoletes: python-jupyter_ipdb < %{version} BuildArch: noarch ++++++ ipdb-0.13.2.tar.gz -> ipdb-0.13.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ipdb-0.13.2/HISTORY.txt new/ipdb-0.13.3/HISTORY.txt --- old/ipdb-0.13.2/HISTORY.txt 2020-03-03 12:20:50.000000000 +0100 +++ new/ipdb-0.13.3/HISTORY.txt 2020-06-23 15:46:29.000000000 +0200 @@ -1,6 +1,16 @@ Changelog ========= +0.13.3 (2020-06-23) +------------------- + +- Allow runcall, runeval to also use set context value + [meowser] + +- Add condition argument to set_trace + [alexandrebarbaruiva] + + 0.13.2 (2020-03-03) ------------------- @@ -18,7 +28,7 @@ 0.13.0 (2020-02-28) ------------------- -- Add option to set context via environment variable or configuration file. +- Add option to set context via environment variable or configuration file [alexandrebarbaruiva] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ipdb-0.13.2/PKG-INFO new/ipdb-0.13.3/PKG-INFO --- old/ipdb-0.13.2/PKG-INFO 2020-03-03 12:20:51.000000000 +0100 +++ new/ipdb-0.13.3/PKG-INFO 2020-06-23 15:46:30.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: ipdb -Version: 0.13.2 +Version: 0.13.3 Summary: IPython-enabled pdb Home-page: https://github.com/gotcha/ipdb Author: Godefroid Chapelle @@ -36,10 +36,37 @@ result = ipdb.runcall(function, arg0, arg1, kwarg='foo') result = ipdb.runeval('f(1,2) - 3') + + Arguments for `set_trace` + +++++++++++++++++++++++++ + + The `set_trace` function accepts `context` which will show as many lines of code as defined, + and `cond`, which accepts boolean values (such as `abc == 17`) and will start ipdb's + interface whenever `cond` equals to `True`. + + Using configuration file + ++++++++++++++++++++++++ + It's possible to set up context using a `.ipdb` file on your home folder or `setup.cfg` on your project folder. You can also set your file location via env var `$IPDB_CONFIG`. Your environment variable has priority over the home configuration file, - which in turn has priority over the setup config file. + which in turn has priority over the setup config file. Currently, only context setting + is available. + + A valid setup.cfg is as follows + + :: + + [ipdb] + context=5 + + + A valid .ipdb is as follows + + :: + + context=5 + The post-mortem function, ``ipdb.pm()``, is equivalent to the magic function ``%debug``. @@ -113,6 +140,13 @@ Pull requests should take care of updating the changelog ``HISTORY.txt``. + Manual testing + ++++++++++++++ + + To test your changes, make use of ``manual_test.py``. Create a virtual environment, + install IPython and run ``python manual_test.py`` and check if your changes are in effect. + If possible, create automated tests for better behaviour control. + Third-party support ------------------- @@ -144,6 +178,16 @@ Changelog ========= + 0.13.3 (2020-06-23) + ------------------- + + - Allow runcall, runeval to also use set context value + [meowser] + + - Add condition argument to set_trace + [alexandrebarbaruiva] + + 0.13.2 (2020-03-03) ------------------- @@ -161,7 +205,7 @@ 0.13.0 (2020-02-28) ------------------- - - Add option to set context via environment variable or configuration file. + - Add option to set context via environment variable or configuration file [alexandrebarbaruiva] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ipdb-0.13.2/README.rst new/ipdb-0.13.3/README.rst --- old/ipdb-0.13.2/README.rst 2020-03-03 12:20:50.000000000 +0100 +++ new/ipdb-0.13.3/README.rst 2020-06-23 15:46:29.000000000 +0200 @@ -28,10 +28,37 @@ result = ipdb.runcall(function, arg0, arg1, kwarg='foo') result = ipdb.runeval('f(1,2) - 3') + +Arguments for `set_trace` ++++++++++++++++++++++++++ + +The `set_trace` function accepts `context` which will show as many lines of code as defined, +and `cond`, which accepts boolean values (such as `abc == 17`) and will start ipdb's +interface whenever `cond` equals to `True`. + +Using configuration file +++++++++++++++++++++++++ + It's possible to set up context using a `.ipdb` file on your home folder or `setup.cfg` on your project folder. You can also set your file location via env var `$IPDB_CONFIG`. Your environment variable has priority over the home configuration file, -which in turn has priority over the setup config file. +which in turn has priority over the setup config file. Currently, only context setting +is available. + +A valid setup.cfg is as follows + +:: + + [ipdb] + context=5 + + +A valid .ipdb is as follows + +:: + + context=5 + The post-mortem function, ``ipdb.pm()``, is equivalent to the magic function ``%debug``. @@ -105,6 +132,13 @@ Pull requests should take care of updating the changelog ``HISTORY.txt``. +Manual testing +++++++++++++++ + +To test your changes, make use of ``manual_test.py``. Create a virtual environment, +install IPython and run ``python manual_test.py`` and check if your changes are in effect. +If possible, create automated tests for better behaviour control. + Third-party support ------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ipdb-0.13.2/ipdb/__main__.py new/ipdb-0.13.3/ipdb/__main__.py --- old/ipdb-0.13.2/ipdb/__main__.py 2020-03-03 12:20:50.000000000 +0100 +++ new/ipdb-0.13.3/ipdb/__main__.py 2020-06-23 15:46:29.000000000 +0200 @@ -10,7 +10,7 @@ from contextlib import contextmanager -__version__ = '0.13.2' +__version__ = '0.13.3' from IPython import get_ipython from IPython.core.debugger import BdbQuit_excepthook @@ -47,7 +47,9 @@ debugger_cls = shell.debugger_cls -def _init_pdb(context=3, commands=[]): +def _init_pdb(context=None, commands=[]): + if context is None: + context = os.getenv("IPDB_CONTEXT_SIZE", get_context_from_config()) try: p = debugger_cls(context=context) except TypeError: @@ -64,12 +66,10 @@ sys.excepthook = BdbQuit_excepthook -def set_trace(frame=None, context=None): +def set_trace(frame=None, context=None, cond=True): + if not cond: + return wrap_sys_excepthook() - if not context: - context = os.environ.get( - "IPDB_CONTEXT_SIZE", get_context_from_config() - ) if frame is None: frame = sys._getframe().f_back p = _init_pdb(context).set_trace(frame) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ipdb-0.13.2/ipdb.egg-info/PKG-INFO new/ipdb-0.13.3/ipdb.egg-info/PKG-INFO --- old/ipdb-0.13.2/ipdb.egg-info/PKG-INFO 2020-03-03 12:20:51.000000000 +0100 +++ new/ipdb-0.13.3/ipdb.egg-info/PKG-INFO 2020-06-23 15:46:30.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: ipdb -Version: 0.13.2 +Version: 0.13.3 Summary: IPython-enabled pdb Home-page: https://github.com/gotcha/ipdb Author: Godefroid Chapelle @@ -36,10 +36,37 @@ result = ipdb.runcall(function, arg0, arg1, kwarg='foo') result = ipdb.runeval('f(1,2) - 3') + + Arguments for `set_trace` + +++++++++++++++++++++++++ + + The `set_trace` function accepts `context` which will show as many lines of code as defined, + and `cond`, which accepts boolean values (such as `abc == 17`) and will start ipdb's + interface whenever `cond` equals to `True`. + + Using configuration file + ++++++++++++++++++++++++ + It's possible to set up context using a `.ipdb` file on your home folder or `setup.cfg` on your project folder. You can also set your file location via env var `$IPDB_CONFIG`. Your environment variable has priority over the home configuration file, - which in turn has priority over the setup config file. + which in turn has priority over the setup config file. Currently, only context setting + is available. + + A valid setup.cfg is as follows + + :: + + [ipdb] + context=5 + + + A valid .ipdb is as follows + + :: + + context=5 + The post-mortem function, ``ipdb.pm()``, is equivalent to the magic function ``%debug``. @@ -113,6 +140,13 @@ Pull requests should take care of updating the changelog ``HISTORY.txt``. + Manual testing + ++++++++++++++ + + To test your changes, make use of ``manual_test.py``. Create a virtual environment, + install IPython and run ``python manual_test.py`` and check if your changes are in effect. + If possible, create automated tests for better behaviour control. + Third-party support ------------------- @@ -144,6 +178,16 @@ Changelog ========= + 0.13.3 (2020-06-23) + ------------------- + + - Allow runcall, runeval to also use set context value + [meowser] + + - Add condition argument to set_trace + [alexandrebarbaruiva] + + 0.13.2 (2020-03-03) ------------------- @@ -161,7 +205,7 @@ 0.13.0 (2020-02-28) ------------------- - - Add option to set context via environment variable or configuration file. + - Add option to set context via environment variable or configuration file [alexandrebarbaruiva]
