Package Release Info

python-cmd2-2.5.11-bp160.1.1

Update Info: Base Release
Available in Package Hub : 16.0

platforms

AArch64
ppc64le
s390x
x86-64

subpackages

python313-cmd2

Change Logs

* Fri Jul 04 2025 Dirk Müller <dmueller@suse.com>
- update to 2.5.11:
  * Fixed duplicated parameter tables in API documentation.
  * Fixed docstring style for MkDocs API documentation so
    parameters are displayed properly.
  * Fixed 'index out of range' error when passing no arguments to
    an argparse-based command function.
* Wed Dec 18 2024 Martin Hauke <mardnh@gmx.de>
- Update to version 2.5.8
  Bug Fixes
  * Rolled back undocumented changes to printing functions
    introduced in 2.5.0.
* Sat Nov 23 2024 Martin Hauke <mardnh@gmx.de>
- Update to version 2.5.7
  * Fixed issue where argument parsers for overridden commands
    were not being created..
  * Fixed issue where Cmd.ppaged() was not writing to the passed
    in destination.
* Thu Nov 14 2024 Martin Hauke <mardnh@gmx.de>
- Update to version 2.5.6
  * Fixed type hint for with_default_category decorator which
    caused type checkers to mistype a subclass of CommandSet as a
    plain CommandSet.
- Update to version 2.5.5
  * Fixed type hints for passing a class method to with_argparser
    and as_subcommand_to.
  * Fixed issue where set command was not always printing a
    settable's current value.
* Thu Nov 07 2024 Martin Hauke <mardnh@gmx.de>
- Update to versino 2.5.4
  * Fixed ZeroDivisionError in async_alert() when
    shutil.get_terminal_size().columns is 0.
- Update to version 2.5.3
  * Changed CommandSet._cmd to a read-only property which never
    returns None because it is meant to be called after the
    CommandSet is registered. This addresses type checker errors
    that occurred if CommandSet._cmd wasn't cast or checked if
    None before use.
* Sun Nov 03 2024 Martin Hauke <mardnh@gmx.de>
- Update to version 2.5.2
  * Fixed default pytest execution when not using cmd2's custom
    invoke command via inv pytest.
- Update to version 2.5.1
  * Fixed readline bug when using ipy command with gnureadline
    and Python 3.13.
- Add patch:
  * cmd2-no-coverage-tests.patch
* Thu Oct 24 2024 Martin Hauke <mardnh@gmx.de>
- Update to version 2.5.0
  Breaking Change
  * cmd2 2.5 supports Python 3.8+
    (removed support for Python 3.6 and 3.7).
  Bug Fixes
  * Fixed issue where persistent history file was not saved upon
    SIGHUP and SIGTERM signals.
  * Multiline commands are no longer fragmented in up-arrow history
  * Fixed bug where async_alert() overwrites readline's incremental
    and non-incremental search prompts.
    + This fix introduces behavior where an updated prompt won't
    display after an aborted search.
    + until a user presses Enter. See async_printing.py
    + example for how to handle this case using
    Cmd.need_prompt_refresh() and Cmd.async_refresh_prompt().
  Enhancements
  * Removed dependency on attrs and replaced with dataclasses.
  * add allow_clipboard initialization parameter and attribute to
    disable ability to.
  * add output to the operating system clipboard.
  * Updated unit tests to be Python 3.13 compliant.
  * Fall back to bz2 compression of history file when lzma is not
    installed..
  * Added settable called scripts_add_to_history which determines
    whether scripts and pyscripts
  * add commands to history.
  Deletions (potentially breaking changes)
  * Removed apply_style from Cmd.pwarning().
* Sat Jan 28 2023 Dirk Müller <dmueller@suse.com>
- update to 2.4.3:
  * Fixed ValueError caused when passing `Cmd.columnize()` strings wider than
    `display_width`.
  * Renamed `utils.str_to_bool()` -> `utils.to_bool()`.
  * Enhanced `utils.to_bool()` so that it accepts and converts `bool`, `int`,
    and `float` in addition to `str`.
* Thu Aug 18 2022 Ben Greiner <code@bnavigator.de>
- Update to 2.4.2
  * Updated argparse decorator to remove annotations when the
    docstring is used for a command's help text.
  * Updated unit test to be Python 3.11 compliant.
- Clean specfile, remove coverage
* Sat Jun 04 2022 Dirk Müller <dmueller@suse.com>
- 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.
Version: 0.7.9-bp152.2.17
* Tue Feb 13 2018 dmueller@suse.com
- update to 0.7.9:
  * Bug Fixes
  * Fixed a couple broken examples
  * Enhancements
  * Improved documentation for modifying shortcuts (command aliases)
  * Made ``pyreadline`` a dependency on Windows to ensure tab-completion works
  * Other changes
  * Abandoned official support for Python 3.3.  It should still work, just don't have an easy way to test it anymore.
  * Bug Fixes
  * Fixed ``poutput()`` so it can print an integer zero and other **falsy** things
  * Fixed a bug which was causing autodoc to fail for building docs on Readthedocs
  * Fixed bug due to ``pyperclip`` dependency radically changing its project structure in latest version
  * Enhancements
  * Improved documentation for user-settable environment parameters
  * Improved documentation for overriding the default supported comment styles
  * Added ``runcmds_plus_hooks()`` method to run multiple commands w/o a cmdloop
  * Bug Fixes
  * Added workaround for bug which occurs in Python 2.7 on Linux when ``pygtk`` is installed
  * ``pfeedback()`` now honors feedback_to_output setting and won't redirect when it is ``False``
  * For ``edit`` command, both **editor** and **filename** can now have spaces in the name/path
  * Fixed a bug which occurred when stdin was a pipe instead of a tty due to input redirection
  * Enhancements
  * ``feedback_to_output`` now defaults to ``False`` so info like command timing won't redirect
  * Transcript regular expressions now have predictable, tested, and documented behavior
  * This makes a breaking change to the format and expectations of transcript testing
  * The prior behavior removed whitespace before making the comparison, now whitespace must match exactly
  * Prior version did not allow regexes with whitespace, new version allows any regex
  * Improved display for ``load`` command and input redirection when **echo** is ``True``
  * Bug Fixes
  * Case-sensitive command parsing was completely broken and has been fixed
  * ``<Ctrl>+d`` now properly quits when case-sensitive command parsing is enabled
  * Fixed some pyperclip clipboard interaction bugs on Linux
  * Fixed some timing bugs when running unit tests in parallel by using monkeypatch
  * Enhancements
  * Enhanced tab-completion of cmd2 command names to support case-insensitive completion
  * Added an example showing how to remove unused commands
  * Improved how transcript testing handles prompts with ANSI escape codes by stripping them
  * Greatly improved implementation for how command output gets piped to a shell command
* Mon Aug 07 2017 tbechtold@suse.com
- convert to singlespec
* Mon Aug 07 2017 tbechtold@suse.com
- update to 0.7.5:
  * `case_insensitive` is no longer a runtime-settable parameter, but it was still listed as such
  * Fixed a recursive loop bug when abbreviated commands are enabled and it could get stuck in the editor forever
  * Fixed argparse_example.py and pirate.py examples and transcript_regex.txt transcript
  * Fixed a bug in a unit test which occurred under unusual circumstances
  * Organized all attributes used to configure the ParserManager into a single location
  * Set the default value of `abbrev` to `False` (which controls whether or not abbreviated commands are allowed)
  * Improved implementation of `load` to use command queue instead of nested inner loop
  * Fixed a couple bugs in interacting with pastebuffer/clipboard on macOS and Linux
  * Fixed a couple bugs in edit and save commands if called when history is empty
  * Ability to pipe ``cmd2`` command output to a shell command is now more reliable, particularly on Windows
  * Fixed a bug in ``pyscript`` command on Windows related to ``\`` being interpreted as an escape
  * Ensure that path and shell command tab-completion results are alphabetically sorted
  * Removed feature for load command to load scripts from URLS
  * Removed presence of a default file name and default file extension
  * ``load`` command has better error checking and reporting
  * Clipboard copy and paste functionality is now handled by the **pyperclip** module
  * ``shell`` command now supports redirection and piping of output
  * Added a lot of unit tests
  * Removed pause command
  * Added a dependency on the **pyperclip** module
  * Fixed a bug in displaying a span of history items when only an end index is supplied
  * Fixed a bug which caused transcript test failures to display twice
  * Added the ability to exclude commands from the help menu (**eof** included by default)
  * Redundant **list** command removed and features merged into **history** command
  * Added **pyscript** command which supports tab-completion and running Python scripts with arguments
  * Improved tab-completion of file system paths, command names, and shell commands
  * Changed default value of USE_ARG_LIST to True - this affects the beavhior of all **@options** commands
  * Refactored code to encapsulate most of the pyparsing logic into a ParserManager class
  * Added a MANIFEST.ini file to make sure a few extra files get included in the PyPI source distribution
  * ``-`` wasn't being treated as a legal character
  * The allow_cli_args attribute wasn't properly disabling parsing of args at invocation when False
  * py command wasn't allowing scripts which used *cmd* function prior to entering an interactive Python session
  * Don't throw exception when piping output to a shell command
  * Transcript testing now properly calls ``preloop`` before and ``postloop`` after
  * Fixed readline bug related to ANSI color escape codes in the prompt
  * Added CONTRIBUTING.md and CODE_OF_CONDUCT.md files
  * Added unicode parsing unit tests and listed unicode support as a feature when using Python 3
  * Added more examples and improved documentation
  * Added CmdResult namedtumple for returning and storing results
  * Added local file system path completion for ``edit``, ``load``, ``save``, and ``shell`` commands
  * Add shell command completion for ``shell`` command or ``!`` shortcut
  * Abbreviated multiline commands are no longer allowed (they never worked correctly anyways)
  * Refactored to use six module for a unified codebase which supports both Python 2 and Python 3
  * Stabilized on all platforms (Windows, Mac, Linux) and all supported Python versions (2.7, 3.3, 3.4, 3.5, 3.6, PyPy)
  * Added lots of unit tests and fixed a number of bugs
  * Improved documentation and moved it to cmd2.readthedocs.io
* Mon Nov 14 2016 dmueller@suse.com
- update to 0.6.9:
  * Support Python 3 input()
* Fri Jan 09 2015 dmueller@suse.com
- update to 0.6.8:
  * In case when which is not installed, do not launch an editor
* Fri Sep 27 2013 dmueller@suse.com
- update to 0.6.7:
  * various python 3.x compat fixes
- remove cmd2-pyparsing201.patch, merged upstream
* Tue Sep 17 2013 speilicke@suse.com
- Add cmd2-pyparsing201.patch: Allow running with pyparsing>=2.0.1
* Tue Sep 03 2013 dmueller@suse.com
- update to 0.6.6.1:
  * go back to pyparsing 1.5.7
* Tue Aug 13 2013 dmueller@suse.com
- update to 0.6.6:
  * include editor search stderr fix
* Thu Jul 25 2013 dheidler@suse.de
- Backport editor stderr fix
* Mon Apr 29 2013 dmueller@suse.com
- update to 0.6.5.1:
  * Fix requires to python-pyparsing
* Fri Jan 11 2013 p.drouand@gmail.com
- Add python3 support
* Fri Jul 27 2012 saschpe@suse.de
- Initial version