|
 |
 |
 |
Changelog for python39-cmd2-2.4.1-qubes.2.7.noarch.rpm :
* Sat Jun 04 2022 Dirk Müller - update to 2.4.1: * Fixed value for `ansi.Bg.YELLOW`. * Fixed unit tests for `ansi.allow_style`. * `async_alert()` raises a `RuntimeError` if called from the main thread. * Tue Mar 08 2022 pgajdosAATTsuse.com- 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 * Sat Dec 11 2021 Dirk Müller - update to 2.3.3: * Added clearer exception handling to `BorderedTable` and `SimpleTable`. * Mon Dec 06 2021 Dirk Müller - 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. * Sat Oct 16 2021 Dirk Müller - 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 * Fri Jul 16 2021 Dirk Müller - 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 2021 Martin Hauke - Udpate to version 2.1.0 Enhancements * Converted persistent history files from pickle to compressed JSON. * Mon Jun 07 2021 Martin Hauke - 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. * Replaced cmd2.Cmd.completion_header with cmd2.Cmd.formatted_completions. * Settables now have new initialization parameters. It is now a required parameter to supply the reference to the object that holds the settable attribute. cmd2.Cmd.settables is no longer a public dict attribute - it is now a property that aggregates all Settables across all registered CommandSets. * Failed transcript testing now sets self.exit_code to 1 instead of -1. * Renamed use_ipython keyword parameter of cmd2.Cmd.__init__() to include_ipy. * ipy command is only enabled if include_py parameter is True. * Removed ability to run Python commands from the command line with py. Now py takes no arguments and just opens an interactive Python shell. * Changed default behavior of runcmds_plus_hooks() to not stop when Ctrl-C is pressed and instead run the next command in its list. * Removed cmd2.Cmd.quit_on_sigint flag, which when True, quit the application when Ctrl-C was pressed at the prompt. * The history bug fix resulted in structure changes to the classes in cmd2.history. Therefore, persistent history files created with versions older than 2.0.0 are not compatible. Enhancements * Added support for custom tab completion and up-arrow input history to cmd2.Cmd2.read_input. * Added cmd2.exceptions.PassThroughException to raise unhandled command exceptions instead of printing them. * Added support for ANSI styles and newlines in tab completion results using cmd2.Cmd.formatted_completions. * cmd2 provides this capability automatically if you return argparse completion matches as CompletionItems. * Settables enhancements: + Settables may be optionally scoped to a CommandSet. + Settables added to CommandSets will appear when a CommandSet is registered and disappear when a CommandSet is unregistered. Optionally, scoped Settables may have a prepended prefix. + Settables now allow changes to be applied to any arbitrary object attribute. It no longer needs to match an + attribute added to the cmd2 instance itself. + Raising SystemExit or calling sys.exit() in a command or hook function will set self.exit_code to the exit code used in those calls. It will also result in the command loop stopping. + ipy command now includes all of self.py_locals in the IPython environment + Added include_py keyword parameter to cmd2.Cmd.__init__(). If False, then the py command will not be available. Defaults to False. run_pyscript is not affected by this parameter. + Made the amount of space between columns in a SimpleTable configurable On POSIX systems, shell commands and processes being piped to are now run in the user\'s preferred shell instead of /bin/sh. The preferred shell is obtained by reading the SHELL environment variable. If that doesn\'t exist or is empty, then /bin/sh is used. + Changed cmd2.Cmd._run_editor() to the public method cmd2.Cmd.run_editor() * Sun Apr 25 2021 Martin Hauke - 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. * Thu Dec 03 2020 Benjamin Greiner - Use correct sitelib macro in files section for multiple flavors gh#openSUSE/python-rpm-macros#66 * Thu Nov 26 2020 Dirk Mueller - 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 * Mon Nov 09 2020 Dirk Mueller - update to 1.3.8: * a few hundred changes, see included CHANGELOG.md for details * Thu Jun 04 2020 Tomáš Chvátal - Do not restrict pytest4 as it works quite fine with pytest5 * Thu Feb 27 2020 Dirk Mueller - 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. * Fri Jan 03 2020 Matej Cepl - 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() * Fri Nov 22 2019 Tomáš Chvátal - Fix up dependencies and everything after last update to 0.9.20 * Thu Nov 14 2019 Matej Cepl - 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. * Wed Oct 23 2019 Dirk Mueller - go back to 0.8.9, cliff (which is the only user) is not compatible with >= 0.9.0 atm * Fri Sep 13 2019 Tomáš Chvátal - 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 * Thu Aug 01 2019 pgajdosAATTsuse.com- fix pyperclip version in BuildRequires * Thu Aug 01 2019 pgajdosAATTsuse.com- version update to 0.9.15 * too long list, see CHANGELOG.md * Mon Apr 29 2019 Matej Cepl - 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. * Mon Apr 15 2019 Dirk Mueller - fix build for SLE12 and older * Tue Apr 09 2019 Thomas Bechtold - Fix Requires for older python3 versions * Fri Mar 15 2019 Tomáš Chvátal - Add vim to depends as it is used in tests as an editor * Thu Mar 14 2019 Matěj Cepl - Add vim to BR * Thu Mar 14 2019 Tomáš Chvátal - Update to 0.9.11: * too many changes to enumerate, see CHANGELOG.md- Really run tests * Thu Feb 28 2019 Thomas Bechtold - update to 0.9.10: * Fixed unit test that hangs on Windows * Fixed bug where the ``set`` command was not tab completing from the current ``settable`` dictionary. * Changed edit command to use do_shell() instead of calling os.system() * Fixed issue with echoing strings in StdSim. Because they were being sent to a binary buffer, line buffering was being ignored. * Made quit() and exit() functions available to scripts run with pyscript. This allows those scripts to exit back to the console\'s prompt instead of exiting the whole application. * Fixed bug when user chooses a zero or negative index when calling ``Cmd.select()`` * Restored behavior where ``cmd_echo`` always starts as False in a py script. This was broken in 0.9.5. * * *cmdloop * * now only attempts to register a custom signal handler for SIGINT if running in the main thread * commands run as a result of ``default_to_shell`` being * *True * * now run via ``do_shell()`` and are saved to history. * Added more tab completion to pyscript command. * Deleted ``Cmd.colorize()`` and ``Cmd._colorcodes`` which were deprecated in 0.9.5 * Replaced ``dir_exe_only`` and ``dir_only`` flags in ``path_complete`` with optional ``path_filter`` function that is used to filter paths out of completion results. * ``perror()`` no longer prepends \"ERROR: \" to the error message being printed * Fixed bug introduced in 0.9.5 caused by backing up and restoring `self.prompt` in `pseudo_raw_input`. As part of this fix, continuation prompts will not be redrawn with `async_update_prompt` or `async_alert`. * All platforms now depend on [wcwidth](https://pypi.python.org/pypi/wcwidth) to assist with asynchronous alerts. * Macros now accept extra arguments when called. These will be tacked onto the resolved command. * All cmd2 commands run via `py` now go through `onecmd_plus_hooks`. * Fixed bug where ``get_all_commands`` could return non-callable attributes * Fixed bug where * *alias * * command was dropping quotes around arguments * Fixed bug where running help on argparse commands didn\'t work if they didn\'t support -h * Fixed transcript testing bug where last command in transcript has no expected output * Fixed bugs with how AutoCompleter and ArgparseFunctor handle argparse arguments with nargs=argparse.REMAINDER. Tab completion now correctly matches how argparse will parse the values. Command strings generated by ArgparseFunctor should now be compliant with how argparse expects REMAINDER arguments to be ordered. * Fixed bugs with how AutoCompleter handles flag prefixes. It is no longer hard-coded to use \'-\' and will check against the prefix_chars in the argparse object. Also, single-character tokens that happen to be a prefix char are not treated as flags by argparse and AutoCompleter now matches that behavior. * Fixed bug where AutoCompleter was not distinguishing between a negative number and a flag * Fixed bug where AutoCompleter did not handle -- the same way argparse does (all args after -- are non-options) * Added ``exit_code`` attribute of ``cmd2.Cmd`` class * Enables applications to return a non-zero exit code when exiting from ``cmdloop`` * ``ACHelpFormatter`` now inherits from ``argparse.RawTextHelpFormatter`` to make it easier for formatting help/description text * Aliases are now sorted alphabetically * The * *set * * command now tab-completes settable parameter names * Added ``async_alert``, ``async_update_prompt``, and ``set_window_title`` functions * These allow you to provide feedback to the user in an asychronous fashion, meaning alerts can display when the user is still entering text at the prompt. * Cross-platform colored output support * Deprecated the built-in ``cmd2`` support for colors including ``Cmd.colorize()`` and ``Cmd._colorcodes`` * The ``preparse``, ``postparsing_precmd``, and ``postparsing_postcmd`` methods *deprecated * in the previous release have been deleted * The new application lifecycle hook system allows for registration of callbacks to be called at various points in the lifecycle and is more powerful and flexible than the previous system * ``alias`` is now a command with sub-commands to create, list, and delete aliases. Therefore its syntax has changed. All current alias commands in startup scripts or transcripts will break with this release. * `unalias` was deleted since ``alias delete`` replaced it- Drop remove-typing.patch . Applied upstream
|
|
|