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-07-22 19:06:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cyclopts (Old)
 and      /work/SRC/openSUSE:Factory/.python-cyclopts.new.24530 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cyclopts"

Wed Jul 22 19:06:31 2026 rev:6 rq:1367133 version:4.22.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cyclopts/python-cyclopts.changes  
2026-07-20 10:01:49.921161844 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-cyclopts.new.24530/python-cyclopts.changes   
    2026-07-22 19:08:37.732299208 +0200
@@ -1,0 +2,8 @@
+Wed Jul 22 13:26:28 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to 4.22.1:
+  * Split iterable Parameter(env_var=...) values via env_var_split
+  * Report the offending value when a boolean flag gets a non-bool
+    =value
+
+-------------------------------------------------------------------

Old:
----
  cyclopts-4.22.0.tar.gz

New:
----
  cyclopts-4.22.1.tar.gz

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

Other differences:
------------------
++++++ python-cyclopts.spec ++++++
--- /var/tmp/diff_new_pack.m9H4cy/_old  2026-07-22 19:08:38.176314421 +0200
+++ /var/tmp/diff_new_pack.m9H4cy/_new  2026-07-22 19:08:38.176314421 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-cyclopts
-Version:        4.22.0
+Version:        4.22.1
 Release:        0
 Summary:        Intuitive, easy CLIs based on python type hints
 License:        Apache-2.0

++++++ cyclopts-4.22.0.tar.gz -> cyclopts-4.22.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-4.22.0/PKG-INFO new/cyclopts-4.22.1/PKG-INFO
--- old/cyclopts-4.22.0/PKG-INFO        2020-02-02 01:00:00.000000000 +0100
+++ new/cyclopts-4.22.1/PKG-INFO        2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: cyclopts
-Version: 4.22.0
+Version: 4.22.1
 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-4.22.0/cyclopts/_version.py 
new/cyclopts-4.22.1/cyclopts/_version.py
--- old/cyclopts-4.22.0/cyclopts/_version.py    2020-02-02 01:00:00.000000000 
+0100
+++ new/cyclopts-4.22.1/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 = '4.22.0'
-__version_tuple__ = version_tuple = (4, 22, 0)
+__version__ = version = '4.22.1'
+__version_tuple__ = version_tuple = (4, 22, 1)
 
 __commit_id__ = commit_id = None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-4.22.0/cyclopts/bind.py 
new/cyclopts-4.22.1/cyclopts/bind.py
--- old/cyclopts-4.22.0/cyclopts/bind.py        2020-02-02 01:00:00.000000000 
+0100
+++ new/cyclopts-4.22.1/cyclopts/bind.py        2020-02-02 01:00:00.000000000 
+0100
@@ -233,7 +233,7 @@
                         coerced_value = _bool(cli_values[-1])
                     except CoercionError as e:
                         if e.token is None:
-                            e.token = CliToken(keyword=match.matched_token)
+                            e.token = CliToken(keyword=match.matched_token, 
value=cli_values[-1])
                         if e.argument is None:
                             e.argument = match.argument
                         raise
@@ -521,7 +521,17 @@
             except KeyError:
                 pass
             else:
-                argument.tokens.append(Token(keyword=env_var_name, 
value=env_var_value, source="env"))
+                # A JSON-looking value is a single token (mirrors the CLI 
path); otherwise
+                # split it per ``Parameter.env_var_split`` (e.g. whitespace 
for iterables,
+                # ``os.pathsep`` for path iterables).
+                if argument._should_attempt_json_dict([env_var_value]) or 
argument._should_attempt_json_list(
+                    [env_var_value]
+                ):
+                    values = [env_var_value]
+                else:
+                    values = argument.env_var_split(env_var_value)
+                for index, value in enumerate(values):
+                    argument.tokens.append(Token(keyword=env_var_name, 
value=value, index=index, source="env"))
                 break
 
 

Reply via email to