97 Commits

Author SHA256 Message Date
Dominique Leuenberger
ccfe37de1f Accepting request 960149 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/960149
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=43
2022-03-09 17:46:59 +00:00
9fd5e7ff18 Accepting request 960147 from home:pgajdos:python
- version update to 2.4.0
    Bug Fixes
        Fixed issue in ansi.async_alert_str() which would raise IndexError if prompt was blank.
        Fixed issue where tab completion was quoting argparse flags in some cases.
    Enhancements
        Added broader exception handling when enabling clipboard functionality via pyperclip.
        Added PassThroughException to __init__.py imports.
        cmd2 now uses pyreadline3 when running any version of Python on Windows
        Improved memory usage in certain use cases of tables (e.g. nested colored tables)
    Deletions (potentially breaking changes)
        Deleted cmd2.fg and cmd2.bg which were deprecated in 2.3.0. Use cmd2.Fg and cmd2.Bg instead.
- python-mock is actually not required for build

OBS-URL: https://build.opensuse.org/request/show/960147
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=90
2022-03-08 07:47:21 +00:00
Dominique Leuenberger
0e71e38249 Accepting request 941446 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/941446
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=42
2021-12-25 19:16:26 +00:00
30d6e29131 - update to 2.3.3:
* Added clearer exception handling to `BorderedTable` and `SimpleTable`.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=89
2021-12-11 22:10:05 +00:00
Dominique Leuenberger
e41d55bc61 Accepting request 936100 from devel:languages:python
- update to 2.3.2:
  * Fixed issue where a `ns_provider` could be passed `None`
    instead of its correct `cmd2.Cmd` or `CommandSet` value.
  * Fixed issue introduced in 2.3.0 with `AlternatingTable`, `BorderedTable`, and `SimpleTable` that caused
    header alignment settings to be overridden by data alignment settings.
  * `CompletionItems` now saves the original object from which it creates a string.
  * Using `CompletionItems` as argparse choices is fully supported.
  * `ArgparseCompleter` now does the following if a list of `CompletionItems`
    was created with numerical types:
  * Fixed `AttributeError` in `rl_get_prompt()` when prompt is `None`.
  * Fixed bug where using choices on a Settable didn't verify that a valid choice had been entered.
  * Fixed bug introduced in cmd2 2.0.0 in which `select()` converts return values to strings.
  * Added settings to Column class which prevent a table from overriding existing styles in header
    and/or data text. This allows for things like nesting an AlternatingTable in another AlternatingTable.
  * AlternatingTable no longer automatically applies background color to borders. This was done to improve
    appearance since the background color extended beyond the borders of the table.
  * Added ability to colorize all aspects of `AlternatingTable`, `BorderedTable`, and `SimpleTable`.
  * Added support for 8-bit/256-colors with the `cmd2.EightBitFg` and `cmd2.EightBitBg` classes.
  * Added support for 24-bit/RGB colors with the `cmd2.RgbFg` and `cmd2.RgbBg` classes.
  * Removed dependency on colorama.
  * Changed type of `ansi.allow_style` from a string to an `ansi.AllowStyle` Enum class.
  * To support the color upgrade, all cmd2 colors now inherit from either `ansi.FgColor` or `ansi.BgColor`.
    Therefore, `ansi.style()` no longer accepts colors as strings.

OBS-URL: https://build.opensuse.org/request/show/936100
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=41
2021-12-09 18:45:17 +00:00
2244e74b39 - update to 2.3.2:
* Fixed issue where a `ns_provider` could be passed `None`
    instead of its correct `cmd2.Cmd` or `CommandSet` value.
  * Fixed issue introduced in 2.3.0 with `AlternatingTable`, `BorderedTable`, and `SimpleTable` that caused
    header alignment settings to be overridden by data alignment settings.
  * `CompletionItems` now saves the original object from which it creates a string.
  * Using `CompletionItems` as argparse choices is fully supported.
  * `ArgparseCompleter` now does the following if a list of `CompletionItems`
    was created with numerical types:
  * Fixed `AttributeError` in `rl_get_prompt()` when prompt is `None`.
  * Fixed bug where using choices on a Settable didn't verify that a valid choice had been entered.
  * Fixed bug introduced in cmd2 2.0.0 in which `select()` converts return values to strings.
  * Added settings to Column class which prevent a table from overriding existing styles in header
    and/or data text. This allows for things like nesting an AlternatingTable in another AlternatingTable.
  * AlternatingTable no longer automatically applies background color to borders. This was done to improve
    appearance since the background color extended beyond the borders of the table.
  * Added ability to colorize all aspects of `AlternatingTable`, `BorderedTable`, and `SimpleTable`.
  * Added support for 8-bit/256-colors with the `cmd2.EightBitFg` and `cmd2.EightBitBg` classes.
  * Added support for 24-bit/RGB colors with the `cmd2.RgbFg` and `cmd2.RgbBg` classes.
  * Removed dependency on colorama.
  * Changed type of `ansi.allow_style` from a string to an `ansi.AllowStyle` Enum class.
  * To support the color upgrade, all cmd2 colors now inherit from either `ansi.FgColor` or `ansi.BgColor`.
    Therefore, `ansi.style()` no longer accepts colors as strings.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=88
2021-12-06 18:06:27 +00:00
Dominique Leuenberger
6a4d214de8 Accepting request 925761 from devel:languages:python
- update to 2.2.0:
  * Fixed extra space appended to each alias by "alias list" command
  * New function `set_default_ap_completer_type()`
  * Added `ArgumentParser.get_ap_completer_type()` and 
    `ArgumentParser.set_ap_completer_type()`.
  * Added `ap_completer_type` keyword arg to `Cmd2ArgumentParser.__init__()`
    which saves a call to `set_ap_completer_type()`. This keyword will also
    work with `add_parser()` when creating subcommands if the base
    command's parser is a `Cmd2ArgumentParser`.
  * New function `register_argparse_argument_parameter()`
  * Using `SimpleTable` in the output for the following commands
  * Tab completion of `CompletionItems` now includes divider row
  * Removed `--verbose` flag from set command since descriptions always show now.
  * All cmd2 built-in commands now populate `self.last_result`.
  * Argparse tab completer will complete remaining flag names if there are no
    more positionals to complete.
  * Updated `async_alert()` to account for `self.prompt` not matching Readline's
    current prompt.
  * Deleted ``set_choices_provider()`` and ``set_completer()`` which were
    deprecated in 2.1.2

OBS-URL: https://build.opensuse.org/request/show/925761
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=40
2021-10-20 18:23:35 +00:00
098697623a - update to 2.2.0:
* Fixed extra space appended to each alias by "alias list" command
  * New function `set_default_ap_completer_type()`
  * Added `ArgumentParser.get_ap_completer_type()` and 
    `ArgumentParser.set_ap_completer_type()`.
  * Added `ap_completer_type` keyword arg to `Cmd2ArgumentParser.__init__()`
    which saves a call to `set_ap_completer_type()`. This keyword will also
    work with `add_parser()` when creating subcommands if the base
    command's parser is a `Cmd2ArgumentParser`.
  * New function `register_argparse_argument_parameter()`
  * Using `SimpleTable` in the output for the following commands
  * Tab completion of `CompletionItems` now includes divider row
  * Removed `--verbose` flag from set command since descriptions always show now.
  * All cmd2 built-in commands now populate `self.last_result`.
  * Argparse tab completer will complete remaining flag names if there are no
    more positionals to complete.
  * Updated `async_alert()` to account for `self.prompt` not matching Readline's
    current prompt.
  * Deleted ``set_choices_provider()`` and ``set_completer()`` which were
    deprecated in 2.1.2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=87
2021-10-16 21:50:56 +00:00
Dominique Leuenberger
bdbc345c5b 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
2021-07-21 17:05:27 +00:00
b11720804f - 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/package/show/devel:languages:python/python-cmd2?expand=0&rev=86
2021-07-16 19:59:10 +00:00
Dominique Leuenberger
a893a4a32e Accepting request 899979 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/899979
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=38
2021-06-18 08:13:14 +00:00
dd17205b20 Accepting request 899964 from home:mnhauke
- Udpate to version 2.1.0
  Enhancements
  * Converted persistent history files from pickle to compressed
    JSON.

OBS-URL: https://build.opensuse.org/request/show/899964
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=84
2021-06-14 18:30:27 +00:00
Dominique Leuenberger
af7bdd9956 Accepting request 898082 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/898082
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=37
2021-06-11 20:29:53 +00:00
34c77d5206 Accepting request 897994 from home:mnhauke
- Update to version 2.0.1
  Bug Fixes
  * Exclude plugins and tests_isolated directories from tarball
    published to PyPI for cmd2 release
- Update to version 2.0.0
  Bug Fixes
  * Fixed issue where history indexes could get repeated
  * Fixed issue where TableCreator was tossing blank last line
  * Corrected help text for alias command
  Breaking Changes
  * cmd2 2.0 supports Python 3.6+ (removed support for Python 3.5)
  * Argparse Completion / Settables
    + Replaced choices_function / choices_method with
      choices_provider.
    + Replaced completer_function / completer_method with completer.
    + ArgparseCompleter now always passes cmd2.Cmd or CommandSet
      instance as the first positional
    + argument to choices_provider and completer functions.
  * Moved basic_complete from utils into cmd2.Cmd class.
  * Moved CompletionError to exceptions.py
  * Namespace.__statement__ has been removed.
    Use Namespace.cmd2_statement.get() instead.
  * Removed --silent flag from alias/macro create since startup
    scripts can be run silently.
  * Removed --with_silent flag from alias/macro list since startup
    scripts can be run silently.
  * Removed with_argparser_and_unknown_args since it was deprecated
    in 1.3.0.
  * Renamed silent_startup_script to silence_startup_script for
    clarity.

OBS-URL: https://build.opensuse.org/request/show/897994
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=82
2021-06-07 12:24:18 +00:00
Dominique Leuenberger
70b590ea3c Accepting request 888419 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/888419
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=36
2021-04-27 19:34:11 +00:00
dac9ff4e72 Accepting request 888322 from home:mnhauke
- Update to version 1.5.0
  * Fixed bug where setting always_show_hint=True did not show a
    hint when completing Settables.
  * Fixed bug in editor detection logic on Linux systems that do
    not have which.
  * Fixed bug in table creator where column headers with tabs
    would result in an incorrect width calculation.
  * Fixed FileNotFoundError which occurred when running history
    --clear and no history file existed.
  * Added silent_startup_script option to cmd2.Cmd.__init__().
    If True, then the startup script's output will be suppressed.
    Anything written to stderr will still display.

OBS-URL: https://build.opensuse.org/request/show/888322
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=80
2021-04-26 09:10:41 +00:00
Dominique Leuenberger
4505d33b3b Accepting request 852846 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/852846
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=35
2020-12-04 20:27:27 +00:00
285ddaed04 Accepting request 852788 from home:bnavigator:branches:devel:languages:python
- Use correct sitelib macro in files section for multiple flavors
  gh#openSUSE/python-rpm-macros#66

OBS-URL: https://build.opensuse.org/request/show/852788
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=78
2020-12-03 06:41:20 +00:00
Dominique Leuenberger
b9b92b5ba3 Accepting request 850944 from devel:languages:python
- update to 1.4.0:
  * Fixed tab completion crash on Windows
  * Changed how multiline doc string help is formatted to match style of other help messages

OBS-URL: https://build.opensuse.org/request/show/850944
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=34
2020-11-29 11:19:40 +00:00
254fae6ad9 - update to 1.4.0:
* Fixed tab completion crash on Windows
  * Changed how multiline doc string help is formatted to match style of other help messages

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=76
2020-11-26 09:25:34 +00:00
Dominique Leuenberger
61c05b20c9 Accepting request 847331 from devel:languages:python
- update to 1.3.8:
  * a few hundred changes, see included CHANGELOG.md for details

OBS-URL: https://build.opensuse.org/request/show/847331
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=33
2020-11-13 17:53:19 +00:00
4b31c38c8d - update to 1.3.8:
* a few hundred changes, see included CHANGELOG.md for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=74
2020-11-09 18:06:00 +00:00
Dominique Leuenberger
52c3ea25d0 Accepting request 811458 from devel:languages:python
- Do not restrict pytest4 as it works quite fine with pytest5

OBS-URL: https://build.opensuse.org/request/show/811458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=32
2020-06-05 18:01:15 +00:00
Tomáš Chvátal
07ebdeaf96 - Do not restrict pytest4 as it works quite fine with pytest5
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=72
2020-06-04 12:38:22 +00:00
Dominique Leuenberger
8ac6074506 Accepting request 780065 from devel:languages:python
- go back to 0.8.9, cliff (which is the only user) is not compatible
  with >= 0.9.0 atm
- Same commit like december, november and october last year.

OBS-URL: https://build.opensuse.org/request/show/780065
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=31
2020-03-01 20:26:02 +00:00
6ef271d09b - go back to 0.8.9, cliff (which is the only user) is not compatible
with >= 0.9.0 atm
- Same commit like december, november and october last year.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=70
2020-02-27 22:08:52 +00:00
Dominique Leuenberger
796e687fd1 Accepting request 760618 from devel:languages:python
- Update to 0.9.22:
  - Fixed bug where a redefined ansi.style_error was not being
    used in all cmd2 files
  - Enabled line buffering when redirecting output to a file
  - Added align_left(), align_center(), and align_right() to
    utils.py. All 3 of these functions support ANSI escape
    sequences and characters with display widths greater than 1.
    They wrap align_text() which is also in utils.py.
  - Fixed bug where pipe processes were not being stopped by Ctrl-C
  - Added exception handling to account for non-standard Python
    environments in which readline is not loaded dynamically from
    a shared library file
  - Added read_input() function that is used to read from stdin.
    Unlike the Python built-in input(), it also has an argument
    to disable tab completion while input is being entered.
  - Added capability to override the argument parser class used
    by cmd2 built-in commands. See override_parser.py example for
    more details.
  - Added end argument to pfeedback() to be consistent with the
    other print functions like poutput().
  - Added apply_style to pwarning().
  - For consistency between all the print functions:
    - Made end and chop keyword-only arguments of ppaged()
    - end is always added to message in ppaged()

OBS-URL: https://build.opensuse.org/request/show/760618
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=30
2020-01-06 15:02:08 +00:00
4c3abffbfe - Update to 0.9.22:
- Fixed bug where a redefined ansi.style_error was not being
    used in all cmd2 files
  - Enabled line buffering when redirecting output to a file
  - Added align_left(), align_center(), and align_right() to
    utils.py. All 3 of these functions support ANSI escape
    sequences and characters with display widths greater than 1.
    They wrap align_text() which is also in utils.py.
  - Fixed bug where pipe processes were not being stopped by Ctrl-C
  - Added exception handling to account for non-standard Python
    environments in which readline is not loaded dynamically from
    a shared library file
  - Added read_input() function that is used to read from stdin.
    Unlike the Python built-in input(), it also has an argument
    to disable tab completion while input is being entered.
  - Added capability to override the argument parser class used
    by cmd2 built-in commands. See override_parser.py example for
    more details.
  - Added end argument to pfeedback() to be consistent with the
    other print functions like poutput().
  - Added apply_style to pwarning().
  - For consistency between all the print functions:
    - Made end and chop keyword-only arguments of ppaged()
    - end is always added to message in ppaged()

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=68
2020-01-03 10:37:15 +00:00
df7312e740 Accepting request 755773 from home:mcepl:branches:Cloud:OpenStack:Factory
Replace the project SR with the individual requests.

OBS-URL: https://build.opensuse.org/request/show/755773
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=67
2019-12-11 10:02:05 +00:00
6ad3671ba3 - go back to 0.8.9, cliff (which is the only user) is not compatible
with >= 0.9.0 atm
- Same commit like October 23th

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=66
2019-12-02 12:17:31 +00:00
Dominique Leuenberger
65280796b5 Accepting request 750700 from devel:languages:python
- Fix up dependencies and everything after last update to 0.9.20

OBS-URL: https://build.opensuse.org/request/show/750700
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=29
2019-11-29 14:55:49 +00:00
Tomáš Chvátal
8126b7d63d - Fix up dependencies and everything after last update to 0.9.20
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=64
2019-11-22 11:18:25 +00:00
Dominique Leuenberger
0f95a17098 Accepting request 748740 from devel:languages:python
- Update to 0.9.20:
  - the list of changes is too long, complete changelog is in
    CHANGELOG.md included in this package.
- Package is python3-only now.

- go back to 0.8.9, cliff (which is the only user) is not compatible
  with >= 0.9.0 atm

OBS-URL: https://build.opensuse.org/request/show/748740
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=28
2019-11-22 09:24:39 +00:00
9c13c82210 - Update to 0.9.20:
- the list of changes is too long, complete changelog is in
    CHANGELOG.md included in this package.
- Package is python3-only now.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=62
2019-11-14 15:52:45 +00:00
b091360f50 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=61 2019-10-28 12:12:22 +00:00
8ce9f82d0e OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=60 2019-10-23 07:55:25 +00:00
fa493121aa OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=59 2019-10-23 07:47:05 +00:00
9c4cbe60cf OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=58 2019-10-23 07:46:36 +00:00
928aaa9bb2 - go back to 0.8.9, cliff (which is the only user) is not compatible
with >= 0.9.0 atm

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=57
2019-10-23 07:38:43 +00:00
Dominique Leuenberger
d426658170 Accepting request 730677 from devel:languages:python
- Update to 0.9.16:
  * Fixed inconsistent parsing/tab completion behavio
  * Create directory for the persistent history file if it does not already exist
  * Aliases and macros can no longer have the same name as a command

OBS-URL: https://build.opensuse.org/request/show/730677
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=27
2019-09-23 10:09:41 +00:00
Tomáš Chvátal
c75d75a4a2 - Update to 0.9.16:
* Fixed inconsistent parsing/tab completion behavio
  * Create directory for the persistent history file if it does not already exist
  * Aliases and macros can no longer have the same name as a command

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=55
2019-09-13 10:58:44 +00:00
Dominique Leuenberger
ad20bfbfc7 Accepting request 720196 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/720196
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=26
2019-08-07 11:56:40 +00:00
Tomáš Chvátal
ee96ea4e4c Accepting request 720184 from home:pgajdos
- fix pyperclip version in BuildRequires

OBS-URL: https://build.opensuse.org/request/show/720184
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=53
2019-08-01 11:46:45 +00:00
Tomáš Chvátal
60e456ccfe Accepting request 720160 from home:pgajdos
- version update to 0.9.15
  * too long list, see CHANGELOG.md

OBS-URL: https://build.opensuse.org/request/show/720160
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=52
2019-08-01 09:01:41 +00:00
Dominique Leuenberger
3bd4d36cc5 Accepting request 699499 from devel:languages:python
- fix previous commit
- Update to 0.9.12:
  - Bug Fixes
        - Fixed a bug in how redirection and piping worked inside
          py or pyscript commands
        - Fixed bug in async_alert where it didn't account for
          prompts that contained newline characters
        - Fixed path completion case when CWD is just a slash.
          Relative path matches were incorrectly prepended with
          a slash.
  - Enhancements
        - Added ability to include command name placeholders in
          the message printed when trying to run a disabled
          command.
        - Added instance attributes to customize error messages
          without having to override methods. Theses messages can
          also be colored.
        - The with_argparser decorators now add the Statement
          object created when parsing the command line to the
          argparse.Namespace object they pass to the do_*
          methods. It is stored in an attribute called
          __statement__.
        - This can be useful if a command function needs to know
          the command line for things like logging.
        - Added a -t option to the load command for automatically
          generating a transcript based on a script file
        - When in a pyscript, the stdout and stderr streams of
          shell commands and processes being piped to are now
          captured and included in the CommandResult structure.
  - Potentially breaking changes
        - The following commands now write to stderr instead of
          stdout when printing an error. This will make catching
          errors easier in pyscript.
        - Removed *** from beginning of error messages printed by
          do_help() and default()
        - Significantly refactored cmd.Cmd class so that all
          class attributes got converted to instance attributes,
          also: self.pipe_proc is now called
          self.cur_pipe_proc_reader and is a ProcReader class.
        - Shell commands and commands being piped to while in
          a pyscript will function as if their output is going to
          a pipe and not a tty. This was necessary to be able to
          capture their output.
- fix build for SLE12 and older

OBS-URL: https://build.opensuse.org/request/show/699499
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=25
2019-05-05 19:19:18 +00:00
4f426c0b2e Accepting request 699492 from home:mcepl:branches:devel:languages:python
- fix previous commit
- Update to 0.9.12:
  - Bug Fixes
        - Fixed a bug in how redirection and piping worked inside
          py or pyscript commands
        - Fixed bug in async_alert where it didn't account for
          prompts that contained newline characters
        - Fixed path completion case when CWD is just a slash.
          Relative path matches were incorrectly prepended with
          a slash.
  - Enhancements
        - Added ability to include command name placeholders in
          the message printed when trying to run a disabled
          command.
        - Added instance attributes to customize error messages
          without having to override methods. Theses messages can
          also be colored.
        - The with_argparser decorators now add the Statement
          object created when parsing the command line to the
          argparse.Namespace object they pass to the do_*
          methods. It is stored in an attribute called
          __statement__.
        - This can be useful if a command function needs to know
          the command line for things like logging.
        - Added a -t option to the load command for automatically
          generating a transcript based on a script file
        - When in a pyscript, the stdout and stderr streams of
          shell commands and processes being piped to are now
          captured and included in the CommandResult structure.
  - Potentially breaking changes
        - The following commands now write to stderr instead of
          stdout when printing an error. This will make catching
          errors easier in pyscript.
        - Removed *** from beginning of error messages printed by
          do_help() and default()
        - Significantly refactored cmd.Cmd class so that all
          class attributes got converted to instance attributes,
          also: self.pipe_proc is now called
          self.cur_pipe_proc_reader and is a ProcReader class.
        - Shell commands and commands being piped to while in
          a pyscript will function as if their output is going to
          a pipe and not a tty. This was necessary to be able to
          capture their output.

OBS-URL: https://build.opensuse.org/request/show/699492
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=50
2019-04-29 19:26:01 +00:00
068400a824 - fix build for SLE12 and older
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=49
2019-04-15 06:38:34 +00:00
Dominique Leuenberger
7aecbaca12 Accepting request 692517 from devel:languages:python
- Fix Requires for older python3 versions

OBS-URL: https://build.opensuse.org/request/show/692517
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=24
2019-04-12 07:10:53 +00:00
Thomas Bechtold
532bc8676d - Fix Requires for older python3 versions
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=47
2019-04-09 07:35:33 +00:00
Dominique Leuenberger
8a3b1678e6 Accepting request 685423 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/685423
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=23
2019-03-29 19:35:39 +00:00