15
0
forked from pool/python-argh
Commit Graph

46 Commits

Author SHA256 Message Date
48dc81bbb6 Accepting request 1191817 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1191817
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=26
2024-08-07 04:10:24 +00:00
198fbd0edd - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=44
2024-08-06 06:32:14 +00:00
ed81533320 Accepting request 1142777 from devel:languages:python
- update to 0.31.2:
  * broken support for `Optional[List]` (but not
    `Optional[list]`), a narrower case of the problem fixed
    earlier

OBS-URL: https://build.opensuse.org/request/show/1142777
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=25
2024-01-30 17:26:54 +00:00
f39abeb107 - update to 0.31.2:
* broken support for `Optional[List]` (but not
    `Optional[list]`), a narrower case of the problem fixed
    earlier

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=42
2024-01-30 12:21:09 +00:00
aba92c2621 Accepting request 1140108 from devel:languages:python
- update to 0.31.1:
  * broken support for type alias `List`
  * cleaned up the README, rearranged other documentation.

OBS-URL: https://build.opensuse.org/request/show/1140108
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=24
2024-01-21 22:08:42 +00:00
49bc1e8d3c - update to 0.31.1:
* broken support for type alias `List`
  * cleaned up the README, rearranged other documentation.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=40
2024-01-20 12:42:12 +00:00
8617b12822 Accepting request 1137646 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1137646
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=23
2024-01-09 19:50:10 +00:00
3029e153f5 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=38
2024-01-08 21:10:52 +00:00
e4498eedae Accepting request 1135243 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1135243
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=22
2023-12-28 22:01:06 +00:00
ea0f862920 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=36
2023-12-27 09:32:40 +00:00
5a5c7e7123 Accepting request 1124979 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1124979
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=21
2023-11-13 21:18:08 +00:00
d86c9ba2ae - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=34
2023-11-10 13:25:20 +00:00
77684938c5 Accepting request 1116830 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1116830
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=20
2023-10-11 21:55:41 +00:00
501ef029a7 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=32
2023-10-11 08:42:20 +00:00
e69f95ef88 Accepting request 1090906 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1090906
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=19
2023-06-05 16:08:12 +00:00
09bb415b62 Accepting request 1090450 from home:pgajdos:python
- version update to 0.28.1
  Version 0.28.1
  --------------
  - Fixed bugs in tests (#171, #172)
  Version 0.28.0
  --------------
  A major cleanup.
  Backward incompatible changes:
  - Dropped support for Python 2.7 and 3.7.
  Deprecated features, to be removed in v.0.30:
  - `argh.assembling.SUPPORTS_ALIASES`.
    - Always `True` for recent versions of Python.
  - `argh.io.safe_input()` AKA `argh.interaction.safe_input()`.
    - Not relevant anymore.  Please use the built-in `input()` instead.
  - argument `pre_call` in `dispatch()`.
  - Argument help as annotations.
    - Annotations will only be used for types after v.0.30.
  - Added deprecation warnings for some arguments deprecated back in v.0.26.
  Version 0.27.2
  --------------
  Minor packaging fix:
  * chore: include file required by tox.ini in the sdist (#155)
  Version 0.27.1
  --------------
  Minor building and packaging fixes:
  * docs: add Read the Docs config (#160)
  * chore: include tox.ini in the sdist (#155)
  Version 0.27.0
  --------------
  This is the last version to support Python 2.7.

OBS-URL: https://build.opensuse.org/request/show/1090450
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=30
2023-06-05 12:49:23 +00:00
742760b95b Accepting request 960713 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/960713
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=18
2022-03-10 21:45:23 +00:00
89b8d4bc65 Accepting request 960705 from home:pgajdos:python
- do not use python-mock for testing
- added patches
  fix https://github.com/neithere/argh/issues/152
  + python-argh-no_mock.patch

OBS-URL: https://build.opensuse.org/request/show/960705
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=28
2022-03-10 10:36:36 +00:00
990fc3c6e0 Accepting request 920718 from devel:languages:python
- Add patch support-py39.patch:
  * Deal with Python 3.9.x changes in argparse.

OBS-URL: https://build.opensuse.org/request/show/920718
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=17
2021-09-22 20:12:52 +00:00
b87c7383f7 - Add patch support-py39.patch:
* Deal with Python 3.9.x changes in argparse.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=27
2021-09-22 04:42:51 +00:00
e616d8f336 Accepting request 893902 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/893902
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=16
2021-05-18 16:27:02 +00:00
d00178906e Accepting request 893901 from home:pgajdos:python
- use %pytest macro

OBS-URL: https://build.opensuse.org/request/show/893901
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=25
2021-05-18 06:29:20 +00:00
cd49832356 Accepting request 701214 from devel:languages:python
- Do not use symlinks on fdupes

OBS-URL: https://build.opensuse.org/request/show/701214
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=15
2019-05-07 21:19:21 +00:00
Tomáš Chvátal
e77e5ba503 - Do not use symlinks on fdupes
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=23
2019-05-07 06:51:58 +00:00
b5b7d1e704 Accepting request 681523 from devel:languages:python
- Update to 0.26.2:
  * no changelog available
- Drop no longer needed python-argh-0.26.1-fix-testsuite.patch

OBS-URL: https://build.opensuse.org/request/show/681523
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=14
2019-03-05 11:25:11 +00:00
Tomáš Chvátal
e54d378d41 - Update to 0.26.2:
* no changelog available
- Drop no longer needed python-argh-0.26.1-fix-testsuite.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=21
2019-03-04 17:10:35 +00:00
ef89094c2b Accepting request 655400 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/655400
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=13
2018-12-12 16:26:19 +00:00
Todd R
209ace843f Accepting request 654134 from home:jengelh:branches:devel:languages:python
- Trim rhetorics from descriptions.

OBS-URL: https://build.opensuse.org/request/show/654134
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=19
2018-12-05 19:24:41 +00:00
2f54335065 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=18
2018-12-04 13:13:37 +00:00
36494b820c Accepting request 490830 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/490830
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=12
2017-04-28 08:52:56 +00:00
Todd R
2eceafdf78 Accepting request 490829 from home:TheBlackCat:branches:devel:languages:python
- Fix source URL
- Various small spec file cleanups.

OBS-URL: https://build.opensuse.org/request/show/490829
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=16
2017-04-24 17:35:58 +00:00
Todd R
a449637d44 Accepting request 489996 from home:alois:branches:devel:languages:python
Converted to single-spec (2nd attempt)

OBS-URL: https://build.opensuse.org/request/show/489996
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=15
2017-04-24 15:04:00 +00:00
486c900021 Accepting request 298190 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/298190
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=11
2015-04-21 08:53:55 +00:00
Michal Čihař
e001a00077 Accepting request 298061 from home:benoit_monin:branches:devel:languages:python
- update to version 0.26.1
- update project URL
- package README.rst instead of README

OBS-URL: https://build.opensuse.org/request/show/298061
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=13
2015-04-20 13:27:42 +00:00
Tomáš Chvátal
62e1c8118c Accepting request 204521 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/204521
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=9
2013-10-25 09:11:14 +00:00
Sascha Peilicke
a02c6fda2c - Require python-setuptools instead of distribute (upstreams merged)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=11
2013-10-24 10:58:55 +00:00
Stephan Kulow
afb8396e56 Accepting request 200667 from devel:languages:python
update (forwarded request 200614 from posophe)

OBS-URL: https://build.opensuse.org/request/show/200667
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=8
2013-09-26 17:45:51 +00:00
Sascha Peilicke
e46d3363c0 Accepting request 200614 from home:posophe:branches:devel:languages:python
update

OBS-URL: https://build.opensuse.org/request/show/200614
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=9
2013-09-26 07:53:03 +00:00
Stephan Kulow
7b8265af57 Accepting request 157973 from devel:languages:python
update to version 0.23.0 (forwarded request 157948 from deadpoint)

OBS-URL: https://build.opensuse.org/request/show/157973
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=6
2013-03-08 12:25:57 +00:00
Sascha Peilicke
c10027f567 Accepting request 157948 from home:deadpoint:branches:devel:languages:python
update to version 0.23.0

OBS-URL: https://build.opensuse.org/request/show/157948
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=7
2013-03-08 08:58:18 +00:00
Stephan Kulow
185631711e Accepting request 142563 from devel:languages:python
- Update to version 0.17.2:
  + Upstream provides no changelog

- Update to version 0.15.1:
  + Upstream provides no changelog

OBS-URL: https://build.opensuse.org/request/show/142563
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=4
2012-11-25 12:22:28 +00:00
Sascha Peilicke
de0af2e828 - Update to version 0.17.2:
+ Upstream provides no changelog
- Update to version 0.15.1:
  + Upstream provides no changelog

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=5
2012-11-23 10:47:28 +00:00
Stephan Kulow
02ae40eec8 Accepting request 124086 from devel:languages:python
Update to 0.15.1 (forwarded request 123995 from poorboywilly)

OBS-URL: https://build.opensuse.org/request/show/124086
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=2
2012-06-10 18:18:56 +00:00
Todd R
587f636255 Accepting request 123995 from home:poorboywilly:branches:devel:languages:python
Update to 0.15.1

OBS-URL: https://build.opensuse.org/request/show/123995
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=3
2012-06-07 15:10:47 +00:00
Stephan Kulow
4155e96b2d Accepting request 102200 from devel:languages:python
Python is awesome

OBS-URL: https://build.opensuse.org/request/show/102200
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=1
2012-02-01 08:59:29 +00:00
Sascha Peilicke
5972cdc9b3 - Initial version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argh?expand=0&rev=1
2012-01-31 12:29:09 +00:00