Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-argh for openSUSE:Factory checked in at 2023-11-13 22:18:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-argh (Old) and /work/SRC/openSUSE:Factory/.python-argh.new.17445 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-argh" Mon Nov 13 22:18:08 2023 rev:21 rq:1124979 version:0.30.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-argh/python-argh.changes 2023-10-12 11:51:43.941993169 +0200 +++ /work/SRC/openSUSE:Factory/.python-argh.new.17445/python-argh.changes 2023-11-13 22:20:45.887268403 +0100 @@ -1,0 +2,45 @@ +Fri Nov 10 13:22:29 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 0.30.4: + * Regression: a positional argument with an underscore used in + `@arg` decorator would cause Argh fail on the assembling stage. + * As reported in #204 and #206, the new default name mapping + policy in fact silently changed the CLI API of some scripts: + arguments which were previously translated as CLI options + became optional positionals. + Although the instructions were supplied in the release notes, + the upgrade may not necessarily be intentional, so a waste of + users' time is quite likely. + * To alleviate this, the default value for + `name_mapping_policy` in standard functions has been changed + to `None`; if it's not specified, Argh falls back to the new + default policy, but raises `ArgumentNameMappingError` with + detailed instructions if it sees a non-kwonly argument with a + default value. + * Please specify the policy explicitly in order to avoid this + error if you need to infer optional positionals (``nargs="?"``) + from function signature. + * Regression: certain special values in argument default value + would cause an exception (#204) + * Added a more informative error message when the reason is + likely to be related to the migration from Argh v0.29 to a + version with a new argument name mapping policy. + * A new policy for mapping function arguments to CLI arguments + is used by default + * If you cannot modify the function signature to use kwonly + args for options, please consider explicitly specifying the + legacy name mapping + * The name mapping policy `BY_NAME_IF_HAS_DEFAULT` slightly + deviates from the old behaviour. Kwonly arguments without + default values used to be marked as required options + (``--foo FOO``), now they are treated as positionals + (``foo``). Please consider the new default policy + (`BY_NAME_IF_KWONLY`) for a better treatment of kwonly. + * Removed previously deprecated features (#184 â #188): + * Added support for Python 3.12. + * Added type annotations to existing Argh code (#185 â #189). + * The `dispatch()` function has been refactored, so in case you + need finer control over the process, two new, more granular + functions can be used. + +------------------------------------------------------------------- Old: ---- argh-0.29.4.tar.gz New: ---- argh-0.30.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-argh.spec ++++++ --- /var/tmp/diff_new_pack.SUG6w4/_old 2023-11-13 22:20:46.691298006 +0100 +++ /var/tmp/diff_new_pack.SUG6w4/_new 2023-11-13 22:20:46.691298006 +0100 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-argh -Version: 0.29.4 +Version: 0.30.4 Release: 0 Summary: An argparse wrapper License: LGPL-3.0-or-later ++++++ argh-0.29.4.tar.gz -> argh-0.30.4.tar.gz ++++++ ++++ 6146 lines of diff (skipped)