Accepting request 906726 from devel:languages:python

- update to 2.1.2:
  * Added the following accessor methods for cmd2-specific attributes to the `argparse.Action` class
      * `get_choices_callable()`
      * `set_choices_provider()`
      * `set_completer()`
      * `get_descriptive_header()`
      * `set_descriptive_header()`
      * `get_nargs_range()`
      * `set_nargs_range()`
      * `get_suppress_tab_hint()`
      * `set_suppress_tab_hint()`
  * Now that `set_choices_provider()` and `set_completer()` have been added as methods to the
    `argparse.Action` class, the standalone functions of the same name will be removed in version
    2.2.0. To update to the new convention, do the following:
      * Change `set_choices_provider(action, provider)` to `action.set_choices_provider(provider)`
      * Change `set_completer(action, completer)` to `action.set_completer(completer)`
  * Fixed handling of argparse's default options group name which was changed in Python 3.10
  * Restored `plugins` and `tests_isolated` directories to tarball published to PyPI for `cmd2` release

OBS-URL: https://build.opensuse.org/request/show/906726
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=39
This commit is contained in:
Dominique Leuenberger 2021-07-21 17:05:27 +00:00 committed by Git OBS Bridge
commit bdbc345c5b
4 changed files with 26 additions and 4 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6a57173c3f87ce5a35b3ea9d3d9615c3d73f0aa8c03e58aae02625ed54e0aacd
size 643826

3
cmd2-2.1.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:25dbb2e9847aaa686a8a21e84e3d101db8b79f5cb992e044fc54210ab8c0ad41
size 660849

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Fri Jul 16 19:57:26 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 2.1.2:
* Added the following accessor methods for cmd2-specific attributes to the `argparse.Action` class
* `get_choices_callable()`
* `set_choices_provider()`
* `set_completer()`
* `get_descriptive_header()`
* `set_descriptive_header()`
* `get_nargs_range()`
* `set_nargs_range()`
* `get_suppress_tab_hint()`
* `set_suppress_tab_hint()`
* Now that `set_choices_provider()` and `set_completer()` have been added as methods to the
`argparse.Action` class, the standalone functions of the same name will be removed in version
2.2.0. To update to the new convention, do the following:
* Change `set_choices_provider(action, provider)` to `action.set_choices_provider(provider)`
* Change `set_completer(action, completer)` to `action.set_completer(completer)`
* Fixed handling of argparse's default options group name which was changed in Python 3.10
* Restored `plugins` and `tests_isolated` directories to tarball published to PyPI for `cmd2` release
-------------------------------------------------------------------
Mon Jun 14 15:58:07 UTC 2021 - Martin Hauke <mardnh@gmx.de>

View File

@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-cmd2
Version: 2.1.0
Version: 2.1.2
Release: 0
Summary: Extra features for standard library's cmd module
License: MIT