SHA256
1
0
forked from pool/python-cmd2

Compare commits

...

10 Commits

Author SHA256 Message Date
Ana Guerrero
45d2a824aa 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
Steve Kowalik
c4b3151610 - 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/package/show/devel:languages:python/python-cmd2?expand=0&rev=106
2024-12-19 08:21:07 +00:00
Ana Guerrero
7fca6b6cf8 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
0b61a039c6 - 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/package/show/devel:languages:python/python-cmd2?expand=0&rev=104
2024-11-23 22:32:42 +00:00
Ana Guerrero
8fce606d76 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
158893169b - 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/package/show/devel:languages:python/python-cmd2?expand=0&rev=102
2024-11-15 08:40:30 +00:00
59eaf493fd 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
19da392b61 - 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/package/show/devel:languages:python/python-cmd2?expand=0&rev=100
2024-11-07 23:51:59 +00:00
Ana Guerrero
c2f40fbd78 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
7cc1bbd489 - 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/package/show/devel:languages:python/python-cmd2?expand=0&rev=98
2024-11-05 21:50:12 +00:00
5 changed files with 117 additions and 15 deletions

View File

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

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

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

View File

@ -0,0 +1,17 @@
diff --git a/pyproject.toml b/pyproject.toml
index bfd8d44..f88999e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -54,12 +54,6 @@ warn_unused_ignores = false
testpaths = [
"tests",
]
-addopts = [
- "--cov=cmd2",
- "--cov-append",
- "--cov-report=term",
- "--cov-report=html",
-]
[tool.ruff]
# Exclude a variety of commonly ignored directories.

View File

@ -1,3 +1,90 @@
-------------------------------------------------------------------
Wed Dec 18 17:37:07 UTC 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 11:09:05 UTC 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 19:27:34 UTC 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 7 16:32:16 UTC 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 3 19:58:40 UTC 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 18:43:27 UTC 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 14:33:56 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-cmd2
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,17 +16,16 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-cmd2
Version: 2.4.3
Version: 2.5.8
Release: 0
Summary: Extra features for standard library's cmd module
License: MIT
URL: https://github.com/python-cmd2/cmd2
Source: https://files.pythonhosted.org/packages/source/c/cmd2/cmd2-%{version}.tar.gz
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
Source: https://github.com/python-cmd2/cmd2/archive/refs/tags/%{version}.tar.gz#/cmd2-%{version}.tar.gz
Patch0: cmd2-no-coverage-tests.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: %{pythons}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -72,16 +71,15 @@ Drop-in replacement adds several features for command-prompt tools:
* test apps against sample session transcript (see example/example.py)
%prep
%setup -q -n cmd2-%{version}
%autosetup -p1 -n cmd2-%{version}
# Fix spurious-executable-perm
chmod a-x README.md
sed -i '/--cov/d' setup.cfg
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@ -92,6 +90,6 @@ sed -i '/--cov/d' setup.cfg
%license LICENSE
%doc CHANGELOG.md README.md
%{python_sitelib}/cmd2
%{python_sitelib}/cmd2-%{version}*-info
%{python_sitelib}/cmd2-*-info
%changelog