Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-osc-lib for openSUSE:Factory checked in at 2026-03-09 16:31:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-osc-lib (Old) and /work/SRC/openSUSE:Factory/.python-osc-lib.new.8177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-osc-lib" Mon Mar 9 16:31:52 2026 rev:25 rq:1337636 version:4.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-osc-lib/python-osc-lib.changes 2025-12-28 19:21:11.747820243 +0100 +++ /work/SRC/openSUSE:Factory/.python-osc-lib.new.8177/python-osc-lib.changes 2026-03-09 16:31:57.279780392 +0100 @@ -1,0 +2,8 @@ +Mon Mar 9 10:50:19 UTC 2026 - Dirk Müller <[email protected]> + +- update to 4.4.0: + * Fix shell's \_\_init\_\_ + * Make tag help tests robust by setting prog name + * Add typing classifier + +------------------------------------------------------------------- Old: ---- osc_lib-4.3.0.tar.gz New: ---- osc_lib-4.4.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-osc-lib.spec ++++++ --- /var/tmp/diff_new_pack.GtcHy1/_old 2026-03-09 16:31:58.195817933 +0100 +++ /var/tmp/diff_new_pack.GtcHy1/_new 2026-03-09 16:31:58.195817933 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-osc-lib # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-osc-lib -Version: 4.3.0 +Version: 4.4.0 Release: 0 Summary: OpenStackClient Library License: Apache-2.0 ++++++ osc_lib-4.3.0.tar.gz -> osc_lib-4.4.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc_lib-4.3.0/AUTHORS new/osc_lib-4.4.0/AUTHORS --- old/osc_lib-4.3.0/AUTHORS 2025-12-18 15:06:39.000000000 +0100 +++ new/osc_lib-4.4.0/AUTHORS 2026-02-17 15:51:27.000000000 +0100 @@ -52,6 +52,7 @@ Feilong Wang <[email protected]> Florent Flament <[email protected]> Ghanshyam Mann <[email protected]> +Gorka Eguileor <[email protected]> Guojian Shao <[email protected]> Hangdong Zhang <[email protected]> Hidekazu Nakamura <[email protected]> @@ -98,6 +99,7 @@ Michael McCune <[email protected]> Monty Taylor <[email protected]> Mouad Benchchaoui <[email protected]> +Myles Penner <[email protected]> Nam Nguyen Hoai <[email protected]> Nathan Kinder <[email protected]> Noorul Islam K M <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc_lib-4.3.0/ChangeLog new/osc_lib-4.4.0/ChangeLog --- old/osc_lib-4.3.0/ChangeLog 2025-12-18 15:06:39.000000000 +0100 +++ new/osc_lib-4.4.0/ChangeLog 2026-02-17 15:51:27.000000000 +0100 @@ -1,6 +1,13 @@ CHANGES ======= +4.4.0 +----- + +* Fix shell's \_\_init\_\_ +* Make tag help tests robust by setting prog name +* Add typing classifier + 4.3.0 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc_lib-4.3.0/PKG-INFO new/osc_lib-4.4.0/PKG-INFO --- old/osc_lib-4.3.0/PKG-INFO 2025-12-18 15:06:39.669219000 +0100 +++ new/osc_lib-4.4.0/PKG-INFO 2026-02-17 15:51:27.580233800 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: osc-lib -Version: 4.3.0 +Version: 4.4.0 Summary: OpenStackClient Library Author-email: OpenStack <[email protected]> License: Apache-2.0 @@ -18,6 +18,7 @@ Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: 3.13 +Classifier: Typing :: Typed Requires-Python: >=3.10 Description-Content-Type: text/x-rst License-File: LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc_lib-4.3.0/osc_lib/shell.py new/osc_lib-4.4.0/osc_lib/shell.py --- old/osc_lib-4.3.0/osc_lib/shell.py 2025-12-18 15:06:13.000000000 +0100 +++ new/osc_lib-4.4.0/osc_lib/shell.py 2026-02-17 15:50:51.000000000 +0100 @@ -95,7 +95,7 @@ stderr: ty.TextIO | None = None, interactive_app_factory: type['interactive.InteractiveApp'] | None = None, - deferred_help: bool = False, + deferred_help: bool = True, ) -> None: # Patch command.Command to add a default auth_required = True setattr(command.Command, 'auth_required', True) @@ -115,10 +115,14 @@ cm = command_manager super().__init__( - description=__doc__.strip(), + description=description or __doc__.strip(), version=version, command_manager=cm, - deferred_help=True, + stdin=stdin, + stdout=stdout, + stderr=stderr, + interactive_app_factory=interactive_app_factory, + deferred_help=deferred_help, ) # Until we have command line arguments parsed, dump any stack traces diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc_lib-4.3.0/osc_lib/tests/test_shell.py new/osc_lib-4.4.0/osc_lib/tests/test_shell.py --- old/osc_lib-4.3.0/osc_lib/tests/test_shell.py 2025-12-18 15:06:13.000000000 +0100 +++ new/osc_lib-4.4.0/osc_lib/tests/test_shell.py 2026-02-17 15:50:51.000000000 +0100 @@ -13,10 +13,12 @@ # under the License. import copy +import io import os import sys from unittest import mock +from cliff import commandmanager import fixtures from oslo_utils import importutils import testtools @@ -293,6 +295,97 @@ self._assert_cloud_region_arg("", kwargs) +class TestShellInit(TestShell): + """Test the initialization of the shell""" + + def setUp(self): + super().setUp() + + def test_shell_init(self): + """Test the initialization of the shell with default values""" + + with ( + mock.patch( + "cliff.app.App.__init__", return_value=None + ) as mock_init, + mock.patch( + "cliff.commandmanager.CommandManager" + ) as mock_command_manager, + ): + _shell = self.shell_class() + + mock_command_manager.assert_called_once_with('openstack.cli') + + mock_init.assert_called_once_with( + description=shell.__doc__.strip(), + version=None, + command_manager=mock_command_manager.return_value, + stdin=None, + stdout=None, + stderr=None, + interactive_app_factory=None, + deferred_help=True, + ) + + # Since we mock cliff's app _shell.command_manager is not set + self.assertFalse(hasattr(_shell, "command_manager")) + self.assertTrue(_shell.dump_stack_trace) + self.assertDictEqual({}, _shell.api_version) + self.assertListEqual([], _shell.command_options) + self.assertFalse(_shell.do_profile) + + def test_shell_init_with_args(self): + """Test the initialization of the shell with custom values""" + + description = "Test Shell" + version = "1.0.0" + command_manager = commandmanager.CommandManager('test-cli') + stdin = io.StringIO() + stdout = io.StringIO() + stderr = io.StringIO() + interactive_app_factory = mock.Mock() + deferred_help = False + + with ( + mock.patch( + "cliff.app.App.__init__", return_value=None + ) as mock_init, + mock.patch( + "cliff.commandmanager.CommandManager" + ) as mock_command_manager, + ): + _shell = self.shell_class( + description=description, + version=version, + command_manager=command_manager, + stdin=stdin, + stdout=stdout, + stderr=stderr, + interactive_app_factory=interactive_app_factory, + deferred_help=deferred_help, + ) + + mock_command_manager.assert_not_called() + + mock_init.assert_called_once_with( + description=description, + version=version, + command_manager=command_manager, + stdin=stdin, + stdout=stdout, + stderr=stderr, + interactive_app_factory=interactive_app_factory, + deferred_help=deferred_help, + ) + + # Since we mock cliff's app _shell.command_manager is not set + self.assertFalse(hasattr(_shell, "command_manager")) + self.assertTrue(_shell.dump_stack_trace) + self.assertDictEqual({}, _shell.api_version) + self.assertListEqual([], _shell.command_options) + self.assertFalse(_shell.do_profile) + + class TestShellArgV(TestShell): """Test the deferred help flag""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc_lib-4.3.0/osc_lib/tests/utils/test_tags.py new/osc_lib-4.4.0/osc_lib/tests/utils/test_tags.py --- old/osc_lib-4.3.0/osc_lib/tests/utils/test_tags.py 2025-12-18 15:06:13.000000000 +0100 +++ new/osc_lib-4.4.0/osc_lib/tests/utils/test_tags.py 2026-02-17 15:50:51.000000000 +0100 @@ -217,13 +217,19 @@ """ options_name = 'options' parser = argparse.ArgumentParser( - formatter_class=functools.partial(argparse.HelpFormatter, width=78) + prog='run.py', + formatter_class=functools.partial( + argparse.HelpFormatter, width=78 + ), ) meth(parser, 'test') self.assertEqual(exp_normal % options_name, parser.format_help()) parser = argparse.ArgumentParser( - formatter_class=functools.partial(argparse.HelpFormatter, width=78) + prog='run.py', + formatter_class=functools.partial( + argparse.HelpFormatter, width=78 + ), ) meth(parser, 'test', enhance_help=help_enhancer) self.assertEqual(exp_enhanced % options_name, parser.format_help()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc_lib-4.3.0/osc_lib.egg-info/PKG-INFO new/osc_lib-4.4.0/osc_lib.egg-info/PKG-INFO --- old/osc_lib-4.3.0/osc_lib.egg-info/PKG-INFO 2025-12-18 15:06:39.000000000 +0100 +++ new/osc_lib-4.4.0/osc_lib.egg-info/PKG-INFO 2026-02-17 15:51:27.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: osc-lib -Version: 4.3.0 +Version: 4.4.0 Summary: OpenStackClient Library Author-email: OpenStack <[email protected]> License: Apache-2.0 @@ -18,6 +18,7 @@ Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: 3.13 +Classifier: Typing :: Typed Requires-Python: >=3.10 Description-Content-Type: text/x-rst License-File: LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc_lib-4.3.0/osc_lib.egg-info/pbr.json new/osc_lib-4.4.0/osc_lib.egg-info/pbr.json --- old/osc_lib-4.3.0/osc_lib.egg-info/pbr.json 2025-12-18 15:06:39.000000000 +0100 +++ new/osc_lib-4.4.0/osc_lib.egg-info/pbr.json 2026-02-17 15:51:27.000000000 +0100 @@ -1 +1 @@ -{"git_version": "83ea084", "is_release": true} \ No newline at end of file +{"git_version": "adeeb72", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc_lib-4.3.0/pyproject.toml new/osc_lib-4.4.0/pyproject.toml --- old/osc_lib-4.3.0/pyproject.toml 2025-12-18 15:06:13.000000000 +0100 +++ new/osc_lib-4.4.0/pyproject.toml 2026-02-17 15:50:51.000000000 +0100 @@ -24,6 +24,7 @@ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Typing :: Typed", ] [project.urls]
