Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-rich-click for openSUSE:Factory checked in at 2023-05-05 15:58:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-rich-click (Old) and /work/SRC/openSUSE:Factory/.python-rich-click.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rich-click" Fri May 5 15:58:02 2023 rev:3 rq:1084861 version:1.6.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-rich-click/python-rich-click.changes 2022-12-15 19:24:57.047969460 +0100 +++ /work/SRC/openSUSE:Factory/.python-rich-click.new.1533/python-rich-click.changes 2023-05-05 15:58:20.896450597 +0200 @@ -1,0 +2,6 @@ +Thu May 4 19:52:44 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 1.6.1: + * Don't show metavars for feature switch options [#100] + +------------------------------------------------------------------- Old: ---- rich-click-1.6.0.tar.gz New: ---- rich-click-1.6.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-rich-click.spec ++++++ --- /var/tmp/diff_new_pack.DMY8TB/_old 2023-05-05 15:58:21.868456166 +0200 +++ /var/tmp/diff_new_pack.DMY8TB/_new 2023-05-05 15:58:21.872456189 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-rich-click # -# 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 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-rich-click -Version: 1.6.0 +Version: 1.6.1 Release: 0 Summary: Format click help output nicely with rich License: MIT ++++++ rich-click-1.6.0.tar.gz -> rich-click-1.6.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rich-click-1.6.0/PKG-INFO new/rich-click-1.6.1/PKG-INFO --- old/rich-click-1.6.0/PKG-INFO 2022-12-05 09:44:27.947018100 +0100 +++ new/rich-click-1.6.1/PKG-INFO 2023-01-19 07:06:28.494255300 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: rich-click -Version: 1.6.0 +Version: 1.6.1 Summary: Format click help output nicely with rich Home-page: https://github.com/ewels/rich-click Author: Phil Ewels diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rich-click-1.6.0/src/rich_click/__init__.py new/rich-click-1.6.1/src/rich_click/__init__.py --- old/rich-click-1.6.0/src/rich_click/__init__.py 2022-12-05 09:44:12.000000000 +0100 +++ new/rich-click-1.6.1/src/rich_click/__init__.py 2023-01-19 07:06:13.000000000 +0100 @@ -5,7 +5,7 @@ customisation required. """ -__version__ = "1.6.0" +__version__ = "1.6.1" from typing import TYPE_CHECKING diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rich-click-1.6.0/src/rich_click/rich_click.py new/rich-click-1.6.1/src/rich_click/rich_click.py --- old/rich-click-1.6.0/src/rich_click/rich_click.py 2022-12-05 09:44:12.000000000 +0100 +++ new/rich-click-1.6.1/src/rich_click/rich_click.py 2023-01-19 07:06:13.000000000 +0100 @@ -266,8 +266,8 @@ # Do it ourselves if this is a positional argument if isinstance(param, click.core.Argument) and re.match(rf"\[?{param.name.upper()}]?", metavar_str): metavar_str = param.type.name.upper() - # Skip booleans - if metavar_str != "BOOLEAN" or isinstance(param, click.core.Argument): + # Attach metavar if param is a positional argument, or if it is a non boolean and non flag option + if isinstance(param, click.core.Argument) or (metavar_str != "BOOLEAN" and not param.is_flag): metavar_str = metavar_str.replace("[", "").replace("]", "") items.append( Text( @@ -445,8 +445,8 @@ if isinstance(param, click.core.Argument) and re.match(rf"\[?{param.name.upper()}]?", metavar_str): metavar_str = param.type.name.upper() - # Skip booleans and choices (handled above) - if metavar_str != "BOOLEAN" or isinstance(param, click.core.Argument): + # Attach metavar if param is a positional argument, or if it is a non boolean and non flag option + if isinstance(param, click.core.Argument) or (metavar_str != "BOOLEAN" and not param.is_flag): metavar.append(metavar_str) # Range - from diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rich-click-1.6.0/src/rich_click.egg-info/PKG-INFO new/rich-click-1.6.1/src/rich_click.egg-info/PKG-INFO --- old/rich-click-1.6.0/src/rich_click.egg-info/PKG-INFO 2022-12-05 09:44:27.000000000 +0100 +++ new/rich-click-1.6.1/src/rich_click.egg-info/PKG-INFO 2023-01-19 07:06:28.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: rich-click -Version: 1.6.0 +Version: 1.6.1 Summary: Format click help output nicely with rich Home-page: https://github.com/ewels/rich-click Author: Phil Ewels