Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-ipdb for openSUSE:Factory checked in at 2023-03-21 17:40:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ipdb (Old) and /work/SRC/openSUSE:Factory/.python-ipdb.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ipdb" Tue Mar 21 17:40:31 2023 rev:11 rq:1072954 version:0.13.13 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ipdb/python-ipdb.changes 2022-12-26 23:27:56.720892037 +0100 +++ /work/SRC/openSUSE:Factory/.python-ipdb.new.31432/python-ipdb.changes 2023-03-21 17:40:32.717548241 +0100 @@ -1,0 +2,9 @@ +Sun Mar 19 16:27:57 UTC 2023 - Ben Greiner <[email protected]> + +- Update to 0.13.13 + * Use context manager for opening toml config +- Release 0.13.12 + * Modify tests to test 3.11 separately from earlier python + versions. + +------------------------------------------------------------------- Old: ---- ipdb-0.13.11.tar.gz New: ---- ipdb-0.13.13.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ipdb.spec ++++++ --- /var/tmp/diff_new_pack.i4chHD/_old 2023-03-21 17:40:33.373551379 +0100 +++ /var/tmp/diff_new_pack.i4chHD/_new 2023-03-21 17:40:33.377551398 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-ipdb # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,9 +16,8 @@ # -%define skip_python2 1 Name: python-ipdb -Version: 0.13.11 +Version: 0.13.13 Release: 0 Summary: IPython-enabled pdb License: BSD-3-Clause ++++++ ipdb-0.13.11.tar.gz -> ipdb-0.13.13.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ipdb-0.13.11/HISTORY.txt new/ipdb-0.13.13/HISTORY.txt --- old/ipdb-0.13.11/HISTORY.txt 2022-12-13 16:35:15.000000000 +0100 +++ new/ipdb-0.13.13/HISTORY.txt 2023-03-09 16:40:52.000000000 +0100 @@ -1,6 +1,20 @@ Changelog ========= +0.13.13 (2023-03-09) +-------------------- + +- Use context manager for opening toml config + [andrewzwicky] + + +0.13.12 (2023-03-09) +-------------------- + +- Modify tests to test 3.11 separately from earlier python versions. + [andrewzwicky] + + 0.13.11 (2022-12-13) -------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ipdb-0.13.11/PKG-INFO new/ipdb-0.13.13/PKG-INFO --- old/ipdb-0.13.11/PKG-INFO 2022-12-13 16:35:15.713939000 +0100 +++ new/ipdb-0.13.13/PKG-INFO 2023-03-09 16:40:52.806569600 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: ipdb -Version: 0.13.11 +Version: 0.13.13 Summary: IPython-enabled pdb Home-page: https://github.com/gotcha/ipdb Author: Godefroid Chapelle @@ -224,6 +224,20 @@ Changelog ========= +0.13.13 (2023-03-09) +-------------------- + +- Use context manager for opening toml config + [andrewzwicky] + + +0.13.12 (2023-03-09) +-------------------- + +- Modify tests to test 3.11 separately from earlier python versions. + [andrewzwicky] + + 0.13.11 (2022-12-13) -------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ipdb-0.13.11/ipdb/__main__.py new/ipdb-0.13.13/ipdb/__main__.py --- old/ipdb-0.13.11/ipdb/__main__.py 2022-12-13 16:35:15.000000000 +0100 +++ new/ipdb-0.13.13/ipdb/__main__.py 2023-03-09 16:40:52.000000000 +0100 @@ -10,7 +10,7 @@ from decorator import contextmanager -__version__ = '0.13.11' +__version__ = '0.13.13' from IPython import get_ipython from IPython.core.debugger import BdbQuit_excepthook @@ -186,12 +186,13 @@ except ImportError: import toml as tomllib file_mode = "r" - toml_file = tomllib.load(open(filepath, file_mode)) - if "tool" in toml_file and "ipdb" in toml_file["tool"]: - if not parser.has_section("ipdb"): - parser.add_section("ipdb") - for key, value in toml_file["tool"]["ipdb"].items(): - parser.set("ipdb", key, str(value)) + with open(filepath, file_mode) as f: + toml_file = tomllib.load(f) + if "tool" in toml_file and "ipdb" in toml_file["tool"]: + if not parser.has_section("ipdb"): + parser.add_section("ipdb") + for key, value in toml_file["tool"]["ipdb"].items(): + parser.set("ipdb", key, str(value)) else: read_func(ConfigFile(filepath)) return parser @@ -309,7 +310,7 @@ while 1: try: import pdb as stdlib_pdb - if hasattr(stdlib_pdb, "_run"): + if hasattr(stdlib_pdb.Pdb, "_run"): # Looks like Pdb from Python 3.11+ if run_as_module: pdb._run(stdlib_pdb._ModuleTarget(mainpyfile)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ipdb-0.13.11/ipdb.egg-info/PKG-INFO new/ipdb-0.13.13/ipdb.egg-info/PKG-INFO --- old/ipdb-0.13.11/ipdb.egg-info/PKG-INFO 2022-12-13 16:35:15.000000000 +0100 +++ new/ipdb-0.13.13/ipdb.egg-info/PKG-INFO 2023-03-09 16:40:52.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: ipdb -Version: 0.13.11 +Version: 0.13.13 Summary: IPython-enabled pdb Home-page: https://github.com/gotcha/ipdb Author: Godefroid Chapelle @@ -224,6 +224,20 @@ Changelog ========= +0.13.13 (2023-03-09) +-------------------- + +- Use context manager for opening toml config + [andrewzwicky] + + +0.13.12 (2023-03-09) +-------------------- + +- Modify tests to test 3.11 separately from earlier python versions. + [andrewzwicky] + + 0.13.11 (2022-12-13) -------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ipdb-0.13.11/tests/test_opts.py new/ipdb-0.13.13/tests/test_opts.py --- old/ipdb-0.13.11/tests/test_opts.py 2022-12-13 16:35:15.000000000 +0100 +++ new/ipdb-0.13.13/tests/test_opts.py 2023-03-09 16:40:52.000000000 +0100 @@ -4,7 +4,10 @@ # Redistributable under the revised BSD license # https://opensource.org/licenses/BSD-3-Clause +import sys import unittest +import os + try: from unittest.mock import patch except ImportError: @@ -21,6 +24,10 @@ argv_patch.start() self.addCleanup(argv_patch.stop) + @unittest.skipIf( + sys.version_info[0] == 3 and sys.version_info[1] >= 11, + ">3.11 requires different test", + ) @patch('ipdb.__main__.sys.version_info', (3, 7)) def test_debug_module_script(self, get_debugger_cls): module_name = 'my_buggy_module' @@ -31,6 +38,10 @@ debugger = get_debugger_cls.return_value.return_value debugger._runmodule.assert_called_once_with(module_name) + @unittest.skipIf( + sys.version_info[0] == 3 and sys.version_info[1] >= 11, + ">3.11 requires different test", + ) @patch('ipdb.__main__.os.path.exists') def test_debug_script(self, exists, get_debugger_cls): script_name = 'my_buggy_script' @@ -41,6 +52,33 @@ debugger = get_debugger_cls.return_value.return_value debugger._runscript.assert_called_once_with(script_name) + @unittest.skipIf( + sys.version_info[0] != 3 or sys.version_info[1] < 11, + "<3.11 requires different test", + ) + def test_debug_module_script_3_11(self, get_debugger_cls): + module_name = 'my_buggy_module_3_11' + self.set_argv('ipdb', '-m', module_name) + + main() + + debugger = get_debugger_cls.return_value.return_value + debugger._run.assert_called_once_with(module_name) + + @unittest.skipIf( + sys.version_info[0] != 3 or sys.version_info[1] < 11, + "<3.11 requires different test", + ) + @patch('ipdb.__main__.os.path.exists') + def test_debug_script_3_11(self, exists, get_debugger_cls): + script_name = 'my_buggy_script_3_11' + self.set_argv('ipdb', script_name) + + main() + + debugger = get_debugger_cls.return_value.return_value + debugger._run.assert_called_once_with(os.path.join(os.getcwd(), script_name)) + def test_option_m_fallback_on_py36(self, get_debugger_cls): self.set_argv('ipdb', '-m', 'my.module') with patch('ipdb.__main__.sys.version_info', (3, 6)):
