Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-cyclopts for openSUSE:Factory 
checked in at 2026-10-28 17:47:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cyclopts (Old)
 and      /work/SRC/openSUSE:Factory/.python-cyclopts.new.2252680 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cyclopts"

Wed Oct 28 17:47:03 2026 rev:25 rq:1393177 version:5.3.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cyclopts/python-cyclopts.changes  
2026-10-27 16:58:40.717896535 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-cyclopts.new.2252680/python-cyclopts.changes 
    2026-10-28 17:47:35.695693232 +0100
@@ -1,0 +2,8 @@
+Tue Oct 27 18:36:23 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to 5.3.2 (PyPI release 2026-10-27):
+  * Fix enum members in a Literal shown as Color.RED in help,
+    completion and errors instead of the name that parses
+  * No more crash on a nameless Flag value in a Literal
+
+-------------------------------------------------------------------

Old:
----
  cyclopts-5.3.1.tar.gz

New:
----
  cyclopts-5.3.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-cyclopts.spec ++++++
--- /var/tmp/diff_new_pack.4TJ5Wl/_old  2026-10-28 17:47:36.330719797 +0100
+++ /var/tmp/diff_new_pack.4TJ5Wl/_new  2026-10-28 17:47:36.332719881 +0100
@@ -18,7 +18,7 @@
 
 %bcond_without libalternatives
 Name:           python-cyclopts
-Version:        5.3.1
+Version:        5.3.2
 Release:        0
 Summary:        Intuitive, easy CLIs based on python type hints
 License:        Apache-2.0

++++++ cyclopts-5.3.1.tar.gz -> cyclopts-5.3.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.3.1/PKG-INFO new/cyclopts-5.3.2/PKG-INFO
--- old/cyclopts-5.3.1/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
+++ new/cyclopts-5.3.2/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.5
 Name: cyclopts
-Version: 5.3.1
+Version: 5.3.2
 Summary: Intuitive, easy CLIs based on type hints.
 Project-URL: Homepage, https://github.com/BrianPugh/cyclopts
 Project-URL: Repository, https://github.com/BrianPugh/cyclopts
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.3.1/cyclopts/_version.py 
new/cyclopts-5.3.2/cyclopts/_version.py
--- old/cyclopts-5.3.1/cyclopts/_version.py     2020-02-02 01:00:00.000000000 
+0100
+++ new/cyclopts-5.3.2/cyclopts/_version.py     2020-02-02 01:00:00.000000000 
+0100
@@ -18,7 +18,7 @@
 commit_id: str | None
 __commit_id__: str | None
 
-__version__ = version = '5.3.1'
-__version_tuple__ = version_tuple = (5, 3, 1)
+__version__ = version = '5.3.2'
+__version_tuple__ = version_tuple = (5, 3, 2)
 
 __commit_id__ = commit_id = None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.3.1/cyclopts/annotations.py 
new/cyclopts-5.3.2/cyclopts/annotations.py
--- old/cyclopts-5.3.1/cyclopts/annotations.py  2020-02-02 01:00:00.000000000 
+0100
+++ new/cyclopts-5.3.2/cyclopts/annotations.py  2020-02-02 01:00:00.000000000 
+0100
@@ -368,7 +368,7 @@
             if x:
                 choices.extend(x)
     elif _origin is Literal:
-        choices.extend(str(x) for x in get_args(type_))
+        choices.extend(name_transform(x.name) if isinstance(x, Enum) and 
x.name else str(x) for x in get_args(type_))
     elif is_iterable_type(type_):
         args = get_args(type_)
         if len(args) == 1 or (_origin is tuple and len(args) == 2 and args[1] 
is Ellipsis):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.3.1/cyclopts/exceptions.py 
new/cyclopts-5.3.2/cyclopts/exceptions.py
--- old/cyclopts-5.3.1/cyclopts/exceptions.py   2020-02-02 01:00:00.000000000 
+0100
+++ new/cyclopts-5.3.2/cyclopts/exceptions.py   2020-02-02 01:00:00.000000000 
+0100
@@ -390,12 +390,12 @@
 
         choice_strs: list[str] | None = None
         plain_choices: list[str] | None = None
+        nt = self.argument.parameter.name_transform
         if get_origin(self.target_type) is Literal:
-            args = get_args(self.target_type)
+            args = [nt(x.name) if isinstance(x, Enum) and x.name else x for x 
in get_args(self.target_type)]
             choice_strs = [f'"{x}"' if isinstance(x, str) else repr(x) for x 
in args]
             plain_choices = [x for x in args if isinstance(x, str)]
         elif isinstance(self.target_type, type) and 
issubclass(self.target_type, Enum):
-            nt = self.argument.parameter.name_transform
             members = [nt(x) for x in self.target_type.__members__]
             choice_strs = [f'"{x}"' for x in members]
             plain_choices = members

Reply via email to