12 Commits

Author SHA256 Message Date
36246176ce Accepting request 1290634 from devel:languages:python
- 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.

  * Added `ArgumentParser.get_ap_completer_type()` and
  * 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)
  * The ``preparse``, ``postparsing_precmd``, and ``postparsing_postcmd`` methods *deprecated* in the previous release
    * Fixed bug in parsing of multiline commands where matching quote is on another line
- update to 0.6.5.1:

OBS-URL: https://build.opensuse.org/request/show/1290634
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=52
2025-07-06 15:03:49 +00:00
c37f4d0614 - 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.
  * Added `ArgumentParser.get_ap_completer_type()` and
  * 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)
  * The ``preparse``, ``postparsing_precmd``, and ``postparsing_postcmd`` methods *deprecated* in the previous release
    * Fixed bug in parsing of multiline commands where matching quote is on another line
- update to 0.6.5.1:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=108
2025-07-04 09:05:31 +00:00
9b664c08be Accepting request 1232033 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1232033
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=51
2024-12-19 20:40:14 +00:00
821fc55aa5 Accepting request 1231942 from home:mnhauke
- Update to version 2.5.8
  Bug Fixes
  * Rolled back undocumented changes to printing functions
    introduced in 2.5.0.

OBS-URL: https://build.opensuse.org/request/show/1231942
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=106
2024-12-19 08:21:07 +00:00
342722bcb4 Accepting request 1226013 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1226013
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=50
2024-11-26 19:55:21 +00:00
686620a41f Accepting request 1225968 from home:mnhauke
- 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.

OBS-URL: https://build.opensuse.org/request/show/1225968
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=104
2024-11-23 22:32:42 +00:00
701704c3c2 Accepting request 1224394 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1224394
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=49
2024-11-15 14:38:22 +00:00
2e833d7c93 Accepting request 1224302 from home:mnhauke
- 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.

OBS-URL: https://build.opensuse.org/request/show/1224302
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=102
2024-11-15 08:40:30 +00:00
2c750af644 Accepting request 1222604 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1222604
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=48
2024-11-09 19:52:46 +00:00
fa3d1957b8 Accepting request 1222510 from home:mnhauke
- 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.

OBS-URL: https://build.opensuse.org/request/show/1222510
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=100
2024-11-07 23:51:59 +00:00
9a4671699d Accepting request 1221615 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1221615
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=47
2024-11-06 15:49:23 +00:00
2a59f59d2b Accepting request 1221253 from home:mnhauke
- 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

- 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.

OBS-URL: https://build.opensuse.org/request/show/1221253
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=98
2024-11-05 21:50:12 +00:00
4 changed files with 11 additions and 26 deletions

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

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

View File

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

View File

@@ -1,18 +1,3 @@
-------------------------------------------------------------------
Mon Sep 8 12:59:18 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 2.7.0
* removed support for Python 3.8
* Added support for Python 3.14
* Added new Cmd.ppretty() method for pretty printing arbitrary
Python data structures
* Clarified help text for -t/--transcript argument to the history
command
* Added explicit support for free-threaded versions of Python,
starting with version 3.14
* Integrated rich-argparse with cmd2's default argparse help
formatter (Cmd2HelpFormatter).
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 4 09:05:16 UTC 2025 - Dirk Müller <dmueller@suse.com> Fri Jul 4 09:05:16 UTC 2025 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-cmd2 # spec file for package python-cmd2
# #
# Copyright (c) 2025 SUSE LLC and contributors # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: python-cmd2 Name: python-cmd2
Version: 2.7.0 Version: 2.5.11
Release: 0 Release: 0
Summary: Extra features for standard library's cmd module Summary: Extra features for standard library's cmd module
License: MIT License: MIT
@@ -31,16 +31,16 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: vim BuildRequires: vim
Requires: python Requires: python
Requires: python-pyperclip >= 1.8 Requires: python-attrs >= 16.3.0
Requires: python-rich-argparse >= 1.7.1 Requires: python-pyperclip >= 1.6
Requires: python-wcwidth >= 0.2.10 Requires: python-wcwidth >= 0.1.7
BuildArch: noarch BuildArch: noarch
# SECTION Test requirements # SECTION Test requirements
BuildRequires: %{python_module pyperclip >= 1.8} BuildRequires: %{python_module attrs >= 16.3.0}
BuildRequires: %{python_module pyperclip >= 1.6}
BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module rich-argparse >= 1.7.1} BuildRequires: %{python_module wcwidth >= 0.1.7}
BuildRequires: %{python_module wcwidth >= 0.2.10}
BuildRequires: vim BuildRequires: vim
# /SECTION # /SECTION
%python_subpackages %python_subpackages