Revisions of python-argh

Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1191817 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 26)
- update to 0.31.3:
  * Fix type annotation of `errors` in `wrap_errors`
  * fix: exposing func arg in CLI under a different name via deco
    (fixes #224)
  * fix: tests were failing under Python 3.13 by @neithere
    (reported
  * Docs update in similar.rst
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1142777 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 25)
- update to 0.31.2:
  * broken support for `Optional[List]` (but not
    `Optional[list]`), a narrower case of the problem fixed
    earlier
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1140108 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 24)
- update to 0.31.1:
  * broken support for type alias `List`
  * cleaned up the README, rearranged other documentation.
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1137646 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 23)
- update to 0.31.0:
  * The typing hints introspection feature is automatically
    enabled for any command (function) which does not have any
    arguments specified via @arg decorator.
  * A small change in the legacy argument mapping policy
    BY_NAME_IF_HAS_DEFAULT concerning the order of variadic
    positional vs. keyword-only arguments. The following function
    now results in main alpha [args ...] beta instead of main
    alpha beta [args ...]:  def main(alpha, *args, beta): ...
    This does not concern the default name mapping policy.  Even
    for the legacy one it's an edge case which is extremely
    unlikely to appear in any real-life application.
  * Added experimental support for basic typing hints (issue
    #203) The following hints are currently supported:  str, int,
    float, bool (goes to type); list (affects nargs), list[T]
    (first subtype goes into type); Literal[T1, T2, ...]
    (interpreted as choices); Optional[T] AKA T | None (currently
    interpreted as required=False for optional and nargs="?" for
    positional arguments; likely to change in the future as use
    cases accumulate).  The exact interpretation of the type
    hints is subject to change in the upcoming versions of Argh.
  * Added always_flush argument to dispatch() (issue #145)
  * High-level functions argh.dispatch_command() and
    argh.dispatch_commands() now accept a new parameter
    old_name_mapping_policy.  The behaviour hasn't changed
    because the parameter is True by default.  It will change to
    False in Argh v.0.33 or v.1.0.
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1135243 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 22)
- update to 0.30.5:
  * A combination of `nargs` with a list as default value would
    lead to the values coming from CLI being wrapped in another
    list (issue #212).
  * Argspec guessing: if `nargs` is not specified but the default
    value is a list, `nargs="*"` is assumed and passed to argparse.
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1124979 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 21)
- 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
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1116830 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 20)
- update to 0.29.4:
  * Test coverage reported as <100% when argcomplete is installed
  * Technical releases for packaging purposes.  No changes in
    functionality.
  * Backwards incompatible changes:
  * Wrapped exceptions now cause ``dispatching.dispatch()`` to
    raise ``SystemExit(1)`` instead of returning without error.
    For most users, this means failed commands will now exit
    with a failure status instead of a success.
  * Renamed arguments in `add_commands()` (#165):
    * `namespace` → `group_name`
    * `namespace_kwargs` → `group_kwargs`
  * The old names are deprecated and will be removed in v.0.30.
  * Can control exit status (see Backwards Incompatible Changes
    above) when raising ``CommandError`` using the ``code``
    keyword arg.
  * Bugs fixed:
  * Positional arguments should not lead to removal of short
    form of keyword arguments.
  * Other changes:
  * Avoid depending on iocapture by using pytest's built-in
    feature

- Update to verios 0.23.0
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 920718 from Steve Kowalik's avatar Steve Kowalik (StevenK) (revision 17)
- Add patch support-py39.patch:
  * Deal with Python 3.9.x changes in argparse.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 701214 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 15)
- Do not use symlinks on fdupes
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 681523 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 14)
- Update to 0.26.2:
  * no changelog available
- Drop no longer needed python-argh-0.26.1-fix-testsuite.patch
Adrian Schröter's avatar Adrian Schröter (adrianSuSE) committed (revision 10)
Split 13.2 from Factory
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 200667 from Sascha Peilicke's avatar Sascha Peilicke (saschpe) (revision 8)
update (forwarded request 200614 from posophe)
Adrian Schröter's avatar Adrian Schröter (adrianSuSE) committed (revision 7)
Split 13.1 from Factory
Displaying revisions 1 - 20 of 26
openSUSE Build Service is sponsored by