Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-click-help-colors for openSUSE:Factory checked in at 2023-09-12 21:02:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-click-help-colors (Old) and /work/SRC/openSUSE:Factory/.python-click-help-colors.new.1766 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-click-help-colors" Tue Sep 12 21:02:33 2023 rev:6 rq:1110365 version:0.9.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-click-help-colors/python-click-help-colors.changes 2023-05-10 16:19:57.267482239 +0200 +++ /work/SRC/openSUSE:Factory/.python-click-help-colors.new.1766/python-click-help-colors.changes 2023-09-12 21:03:01.792489119 +0200 @@ -1,0 +2,7 @@ +Mon Sep 11 20:39:23 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 0.9.2: + * Enable ANSI color when NO_COLOR is an empty string. + * Add non-colored suffix to _colorize for 'usage' + +------------------------------------------------------------------- Old: ---- click-help-colors-0.9.1.tar.gz New: ---- click-help-colors-0.9.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-click-help-colors.spec ++++++ --- /var/tmp/diff_new_pack.xiIXth/_old 2023-09-12 21:03:02.856527073 +0200 +++ /var/tmp/diff_new_pack.xiIXth/_new 2023-09-12 21:03:02.860527216 +0200 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-click-help-colors -Version: 0.9.1 +Version: 0.9.2 Release: 0 Summary: Colorization of help messages in Click License: MIT ++++++ click-help-colors-0.9.1.tar.gz -> click-help-colors-0.9.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-help-colors-0.9.1/CHANGES.rst new/click-help-colors-0.9.2/CHANGES.rst --- old/click-help-colors-0.9.1/CHANGES.rst 2021-07-11 11:12:29.000000000 +0200 +++ new/click-help-colors-0.9.2/CHANGES.rst 2023-08-20 20:58:03.000000000 +0200 @@ -1,3 +1,8 @@ +[0.9.2] +------------------------------- +- Enable ANSI color when NO_COLOR is an empty string. `PR #21 <https://github.com/click-contrib/click-help-colors/pull/21>`_ +- Add non-colored suffix to _colorize for 'usage' `PR #18 <https://github.com/click-contrib/click-help-colors/pull/18>`_ + [0.9.1] ------------------------------- - Fix issue with options with multiple names. `PR #16 <https://github.com/click-contrib/click-help-colors/pull/16>`_ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-help-colors-0.9.1/PKG-INFO new/click-help-colors-0.9.2/PKG-INFO --- old/click-help-colors-0.9.1/PKG-INFO 2021-07-11 12:03:11.915329200 +0200 +++ new/click-help-colors-0.9.2/PKG-INFO 2023-08-20 21:07:24.662834200 +0200 @@ -1,11 +1,10 @@ Metadata-Version: 2.1 Name: click-help-colors -Version: 0.9.1 +Version: 0.9.2 Summary: Colorization of help messages in Click -Home-page: https://github.com/r-m-n/click-help-colors +Home-page: https://github.com/click-contrib/click-help-colors License: MIT Keywords: click -Platform: UNKNOWN Provides-Extra: dev License-File: LICENSE.txt @@ -50,19 +49,19 @@ $ python example.py --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/1.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/1.png .. code-block:: console $ python example.py command1 --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/2.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/2.png .. code-block:: console $ python example.py command2 --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/3.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/3.png .. code:: python @@ -98,13 +97,13 @@ $ python example_with_custom_colors.py --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/4.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/4.png .. code-block:: console - $ python example_with_custom_colors.py --help + $ python example_with_custom_colors.py command1 --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/5.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/5.png .. code:: python @@ -145,7 +144,7 @@ def cmd3(): pass -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/6.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/6.png Installation ------------ @@ -160,7 +159,7 @@ .. code-block:: console - $ git clone https://github.com/r-m-n/click-help-colors.git + $ git clone https://github.com/click-contrib/click-help-colors.git $ cd click-help-colors $ python setup.py install @@ -175,5 +174,3 @@ .. |downloads| image:: https://img.shields.io/pypi/dm/click-help-colors :alt: PyPI - Downloads - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-help-colors-0.9.1/README.rst new/click-help-colors-0.9.2/README.rst --- old/click-help-colors-0.9.1/README.rst 2021-07-11 10:52:59.000000000 +0200 +++ new/click-help-colors-0.9.2/README.rst 2023-08-20 20:41:08.000000000 +0200 @@ -39,19 +39,19 @@ $ python example.py --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/1.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/1.png .. code-block:: console $ python example.py command1 --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/2.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/2.png .. code-block:: console $ python example.py command2 --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/3.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/3.png .. code:: python @@ -87,13 +87,13 @@ $ python example_with_custom_colors.py --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/4.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/4.png .. code-block:: console - $ python example_with_custom_colors.py --help + $ python example_with_custom_colors.py command1 --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/5.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/5.png .. code:: python @@ -134,7 +134,7 @@ def cmd3(): pass -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/6.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/6.png Installation ------------ @@ -149,7 +149,7 @@ .. code-block:: console - $ git clone https://github.com/r-m-n/click-help-colors.git + $ git clone https://github.com/click-contrib/click-help-colors.git $ cd click-help-colors $ python setup.py install diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-help-colors-0.9.1/click_help_colors/__init__.py new/click-help-colors-0.9.2/click_help_colors/__init__.py --- old/click-help-colors-0.9.1/click_help_colors/__init__.py 2021-07-11 11:56:04.000000000 +0200 +++ new/click-help-colors-0.9.2/click_help_colors/__init__.py 2023-08-20 20:57:25.000000000 +0200 @@ -16,4 +16,4 @@ ] -__version__ = '0.9.1' +__version__ = '0.9.2' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-help-colors-0.9.1/click_help_colors/core.py new/click-help-colors-0.9.2/click_help_colors/core.py --- old/click-help-colors-0.9.1/click_help_colors/core.py 2021-07-11 10:52:59.000000000 +0200 +++ new/click-help-colors-0.9.2/click_help_colors/core.py 2023-08-20 20:41:08.000000000 +0200 @@ -32,8 +32,8 @@ return self.options_custom_colors[opt] return self.options_color - def write_usage(self, prog, args='', prefix='Usage: '): - colorized_prefix = _colorize(prefix, color=self.headers_color) + def write_usage(self, prog, args='', prefix='Usage'): + colorized_prefix = _colorize(prefix, color=self.headers_color, suffix=": ") super(HelpColorsFormatter, self).write_usage(prog, args, prefix=colorized_prefix) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-help-colors-0.9.1/click_help_colors/utils.py new/click-help-colors-0.9.2/click_help_colors/utils.py --- old/click-help-colors-0.9.1/click_help_colors/utils.py 2021-07-11 10:52:59.000000000 +0200 +++ new/click-help-colors-0.9.2/click_help_colors/utils.py 2023-08-20 20:41:08.000000000 +0200 @@ -7,11 +7,12 @@ pass -def _colorize(text, color=None): - if not color or "NO_COLOR" in os.environ: - return text +def _colorize(text, color=None, suffix=None): + if not color or os.getenv("NO_COLOR"): + return text + (suffix or '') try: - return '\033[%dm' % (_ansi_colors[color]) + text + _ansi_reset_all + return '\033[%dm' % (_ansi_colors[color]) + text + \ + _ansi_reset_all + (suffix or '') except KeyError: raise HelpColorsException('Unknown color %r' % color) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-help-colors-0.9.1/click_help_colors.egg-info/PKG-INFO new/click-help-colors-0.9.2/click_help_colors.egg-info/PKG-INFO --- old/click-help-colors-0.9.1/click_help_colors.egg-info/PKG-INFO 2021-07-11 12:03:11.000000000 +0200 +++ new/click-help-colors-0.9.2/click_help_colors.egg-info/PKG-INFO 2023-08-20 21:07:24.000000000 +0200 @@ -1,11 +1,10 @@ Metadata-Version: 2.1 Name: click-help-colors -Version: 0.9.1 +Version: 0.9.2 Summary: Colorization of help messages in Click -Home-page: https://github.com/r-m-n/click-help-colors +Home-page: https://github.com/click-contrib/click-help-colors License: MIT Keywords: click -Platform: UNKNOWN Provides-Extra: dev License-File: LICENSE.txt @@ -50,19 +49,19 @@ $ python example.py --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/1.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/1.png .. code-block:: console $ python example.py command1 --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/2.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/2.png .. code-block:: console $ python example.py command2 --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/3.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/3.png .. code:: python @@ -98,13 +97,13 @@ $ python example_with_custom_colors.py --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/4.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/4.png .. code-block:: console - $ python example_with_custom_colors.py --help + $ python example_with_custom_colors.py command1 --help -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/5.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/5.png .. code:: python @@ -145,7 +144,7 @@ def cmd3(): pass -.. image:: https://raw.githubusercontent.com/r-m-n/click-help-colors/master/examples/screenshots/6.png +.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/6.png Installation ------------ @@ -160,7 +159,7 @@ .. code-block:: console - $ git clone https://github.com/r-m-n/click-help-colors.git + $ git clone https://github.com/click-contrib/click-help-colors.git $ cd click-help-colors $ python setup.py install @@ -175,5 +174,3 @@ .. |downloads| image:: https://img.shields.io/pypi/dm/click-help-colors :alt: PyPI - Downloads - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-help-colors-0.9.1/setup.py new/click-help-colors-0.9.2/setup.py --- old/click-help-colors-0.9.1/setup.py 2021-07-11 10:52:59.000000000 +0200 +++ new/click-help-colors-0.9.2/setup.py 2023-08-20 20:41:08.000000000 +0200 @@ -18,7 +18,7 @@ packages=['click_help_colors'], description='Colorization of help messages in Click', long_description=readme, - url='https://github.com/r-m-n/click-help-colors', + url='https://github.com/click-contrib/click-help-colors', keywords=['click'], license='MIT', install_requires=[ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-help-colors-0.9.1/tests/test_basic.py new/click-help-colors-0.9.2/tests/test_basic.py --- old/click-help-colors-0.9.1/tests/test_basic.py 2021-07-11 10:52:59.000000000 +0200 +++ new/click-help-colors-0.9.2/tests/test_basic.py 2023-08-20 20:41:08.000000000 +0200 @@ -17,7 +17,7 @@ result = runner.invoke(cli, ['--help'], color=True) assert not result.exception assert result.output.splitlines() == [ - '\x1b[33mUsage: \x1b[0mcli [OPTIONS] COMMAND [ARGS]...', + '\x1b[33mUsage\x1b[0m: cli [OPTIONS] COMMAND [ARGS]...', '', '\x1b[33mOptions\x1b[0m:', ' \x1b[32m--name TEXT\x1b[0m The person to greet.', @@ -42,7 +42,7 @@ result = runner.invoke(cli, ['--help'], color=True) assert not result.exception assert result.output.splitlines() == [ - '\x1b[33mUsage: \x1b[0mcli [OPTIONS] COMMAND [ARGS]...', + '\x1b[33mUsage\x1b[0m: cli [OPTIONS] COMMAND [ARGS]...', '', '\x1b[33mOptions\x1b[0m:', ' \x1b[32m--help\x1b[0m Show this message and exit.', @@ -54,7 +54,7 @@ result = runner.invoke(cli, ['command', '--help'], color=True) assert not result.exception assert result.output.splitlines() == [ - '\x1b[33mUsage: \x1b[0mcli command [OPTIONS]', + '\x1b[33mUsage\x1b[0m: cli command [OPTIONS]', '', '\x1b[33mOptions\x1b[0m:', ' \x1b[32m--name TEXT\x1b[0m The person to greet.', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-help-colors-0.9.1/tests/test_custom_colors.py new/click-help-colors-0.9.2/tests/test_custom_colors.py --- old/click-help-colors-0.9.1/tests/test_custom_colors.py 2021-07-11 10:52:59.000000000 +0200 +++ new/click-help-colors-0.9.2/tests/test_custom_colors.py 2023-08-20 20:41:08.000000000 +0200 @@ -25,7 +25,7 @@ result = runner.invoke(cli, ['command', '--help'], color=True) assert not result.exception assert result.output.splitlines() == [ - '\x1b[31mUsage: \x1b[0mcli command [OPTIONS]', + '\x1b[31mUsage\x1b[0m: cli command [OPTIONS]', '', '\x1b[31mOptions\x1b[0m:', ' \x1b[34m--name TEXT\x1b[0m The person to greet.', @@ -54,7 +54,7 @@ result = runner.invoke(cli, ['--help'], color=True) assert not result.exception assert result.output.splitlines() == [ - '\x1b[33mUsage: \x1b[0mcli [OPTIONS] COMMAND [ARGS]...', + '\x1b[33mUsage\x1b[0m: cli [OPTIONS] COMMAND [ARGS]...', '', '\x1b[33mOptions\x1b[0m:', ' \x1b[32m--help\x1b[0m Show this message and exit.', @@ -83,7 +83,7 @@ result = runner.invoke(cli, ['command', '--help'], color=True) assert not result.exception assert result.output.splitlines() == [ - '\x1b[33mUsage: \x1b[0mcli command [OPTIONS]', + '\x1b[33mUsage\x1b[0m: cli command [OPTIONS]', '', '\x1b[33mOptions\x1b[0m:', ' \x1b[31m--name TEXT\x1b[0m The person to greet.', @@ -110,7 +110,7 @@ result = runner.invoke(cli, ['command', '--help'], color=True) assert not result.exception assert result.output.splitlines() == [ - '\x1b[33mUsage: \x1b[0mcli command [OPTIONS]', + '\x1b[33mUsage\x1b[0m: cli command [OPTIONS]', '', '\x1b[33mOptions\x1b[0m:', ' \x1b[31m-n, --name TEXT\x1b[0m The person to greet.', @@ -137,7 +137,7 @@ result = runner.invoke(cli, ['command', '--help'], color=True) assert not result.exception assert result.output.splitlines() == [ - '\x1b[33mUsage: \x1b[0mcli command [OPTIONS]', + '\x1b[33mUsage\x1b[0m: cli command [OPTIONS]', '', '\x1b[33mOptions\x1b[0m:', ' \x1b[31m--shout / --no-shout\x1b[0m', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-help-colors-0.9.1/tests/test_multi_commands.py new/click-help-colors-0.9.2/tests/test_multi_commands.py --- old/click-help-colors-0.9.1/tests/test_multi_commands.py 2021-07-11 10:52:59.000000000 +0200 +++ new/click-help-colors-0.9.2/tests/test_multi_commands.py 2023-08-20 20:41:08.000000000 +0200 @@ -49,7 +49,7 @@ result = runner.invoke(cli, ['--help'], color=True) assert not result.exception assert result.output.splitlines() == [ - '\x1b[33mUsage: \x1b[0mcli [OPTIONS] COMMAND [ARGS]...', + '\x1b[33mUsage\x1b[0m: cli [OPTIONS] COMMAND [ARGS]...', '', '\x1b[33mOptions\x1b[0m:', ' \x1b[32m--help\x1b[0m Show this message and exit.', @@ -62,7 +62,7 @@ result = runner.invoke(cli, ['cmd1', '--help'], color=True) assert not result.exception assert result.output.splitlines() == [ - '\x1b[33mUsage: \x1b[0mcli cmd1 [OPTIONS] COMMAND [ARGS]...', + '\x1b[33mUsage\x1b[0m: cli cmd1 [OPTIONS] COMMAND [ARGS]...', '', '\x1b[33mOptions\x1b[0m:', ' \x1b[32m--help\x1b[0m Show this message and exit.', @@ -74,7 +74,7 @@ result = runner.invoke(cli, ['cmd2', '--help'], color=True) assert not result.exception assert result.output.splitlines() == [ - '\x1b[31mUsage: \x1b[0mcli cmd2 [OPTIONS] COMMAND [ARGS]...', + '\x1b[31mUsage\x1b[0m: cli cmd2 [OPTIONS] COMMAND [ARGS]...', '', '\x1b[31mOptions\x1b[0m:', ' \x1b[34m--help\x1b[0m Show this message and exit.',