From 2244e74b392c7422cc302e14e280afacf2bd18f8a1bd4fc6ce8e2f7f78948124 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 6 Dec 2021 18:06:27 +0000 Subject: [PATCH] - 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 --- cmd2-2.2.0.tar.gz | 3 --- cmd2-2.3.2.tar.gz | 3 +++ python-cmd2.changes | 27 +++++++++++++++++++++++++++ python-cmd2.spec | 4 +--- 4 files changed, 31 insertions(+), 6 deletions(-) delete mode 100644 cmd2-2.2.0.tar.gz create mode 100644 cmd2-2.3.2.tar.gz diff --git a/cmd2-2.2.0.tar.gz b/cmd2-2.2.0.tar.gz deleted file mode 100644 index 4023d10..0000000 --- a/cmd2-2.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:34cd12424d9e2835eff125146af3d9f4a4c2931c6bc5a3cea9790bd4f55756d9 -size 667076 diff --git a/cmd2-2.3.2.tar.gz b/cmd2-2.3.2.tar.gz new file mode 100644 index 0000000..272eb12 --- /dev/null +++ b/cmd2-2.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cad18787a26147dad4b161d75c5ab7de16ffe91fef1cfad8e6f18b712746e800 +size 675745 diff --git a/python-cmd2.changes b/python-cmd2.changes index f327e67..02bac23 100644 --- a/python-cmd2.changes +++ b/python-cmd2.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Mon Dec 6 18:04:09 UTC 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 21:48:02 UTC 2021 - Dirk Müller diff --git a/python-cmd2.spec b/python-cmd2.spec index ea4864d..7f58e16 100644 --- a/python-cmd2.spec +++ b/python-cmd2.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-cmd2 -Version: 2.2.0 +Version: 2.3.2 Release: 0 Summary: Extra features for standard library's cmd module License: MIT @@ -33,7 +33,6 @@ BuildRequires: python-rpm-macros BuildRequires: vim Requires: python Requires: python-attrs >= 16.3.0 -Requires: python-colorama >= 0.3.7 Requires: python-pyperclip >= 1.6 Requires: python-wcwidth >= 0.1.7 BuildArch: noarch @@ -43,7 +42,6 @@ Requires: python-typing %endif # SECTION Test requirements BuildRequires: %{python_module attrs >= 16.3.0} -BuildRequires: %{python_module colorama >= 0.3.7} BuildRequires: %{python_module mock} BuildRequires: %{python_module pyperclip >= 1.6} BuildRequires: %{python_module pytest-cov}