From 79da4b669f183aaa4cb816be2a79f1ccc17349a54fe9c0b0f93ca6554cc76518 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 20 Dec 2020 13:52:52 +0000 Subject: [PATCH] Accepting request 856924 from home:mnhauke - Update to version 9.5.1 * Fixed hex number highlighting - Update to version 9.5.0 Changed * If file is not specified on Console then the Console.file will return the current sys.stdout. Prior to 9.5.0 sys.stdout was cached on the Console, which could break code that wrapped sys.stdout after the Console was constructed. * Changed Color.__str__ to not include ansi codes * Changed Console.size to get the terminal dimensions via sys.stdin. This means that if you set file to be an io.StringIO file (for example) then the width will be set to the current terminal dimensions and not a default of 80. Added * Added stderr parameter to Console * Added rich.reconfigure * Added Color.__rich__ * Added Console.style parameter * Added Table.highlight parameter to enable highlighting ofcells * Added Panel.highlight parameter to enable highlighting of panel title * Added highlight to ConsoleOptions Fixed * Fixed double output in rich.live #485 * Fixed Console.out highlighting not reflecting defaults #827 * FileProxy now raises TypeError for empty non-str arguments #828 - Update to version 9.5.0 Added * Added rich.live #382 * Added algin parameter to Rule and Console.rule OBS-URL: https://build.opensuse.org/request/show/856924 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rich?expand=0&rev=20 --- python-rich.changes | 76 +++++++++++++++++++++++++++++++++++++++++++++ python-rich.spec | 10 +++--- rich-9.1.0.tar.gz | 3 -- rich-9.5.1.tar.gz | 3 ++ 4 files changed, 84 insertions(+), 8 deletions(-) delete mode 100644 rich-9.1.0.tar.gz create mode 100644 rich-9.5.1.tar.gz diff --git a/python-rich.changes b/python-rich.changes index f5c8727..bc34a6d 100644 --- a/python-rich.changes +++ b/python-rich.changes @@ -1,3 +1,79 @@ +------------------------------------------------------------------- +Fri Dec 18 19:46:52 UTC 2020 - Martin Hauke + +- Update to version 9.5.1 + * Fixed hex number highlighting +- Update to version 9.5.0 + Changed + * If file is not specified on Console then the Console.file will + return the current sys.stdout. Prior to 9.5.0 sys.stdout was + cached on the Console, which could break code that wrapped + sys.stdout after the Console was constructed. + * Changed Color.__str__ to not include ansi codes + * Changed Console.size to get the terminal dimensions via + sys.stdin. This means that if you set file to be an + io.StringIO file (for example) then the width will be set to + the current terminal dimensions and not a default of 80. + Added + * Added stderr parameter to Console + * Added rich.reconfigure + * Added Color.__rich__ + * Added Console.style parameter + * Added Table.highlight parameter to enable highlighting ofcells + * Added Panel.highlight parameter to enable highlighting of panel + title + * Added highlight to ConsoleOptions + Fixed + * Fixed double output in rich.live #485 + * Fixed Console.out highlighting not reflecting defaults #827 + * FileProxy now raises TypeError for empty non-str arguments #828 +- Update to version 9.5.0 + Added + * Added rich.live #382 + * Added algin parameter to Rule and Console.rule + * Added rich.Status class and Console.status + * Added getitem to Text + * Added style parameter to Console.log + * Added rich.diagnose command + Changed + * Table.add_row style argument now applies to entire line and not + just cells + * Added end_section parameter to Table.add_row to force a line + underneath row + Fixed + * Fixed suppressed traceback context #468 +- Update to version 9.3.0 + Added + * Added get_datetime parameter to Console, to allow for + repeatable tests + * Added get_time parameter to Console + * Added rich.abc.RichRenderable + * Added expand_all to rich.pretty.install() + * Added locals_max_length, and locals_max_string to Traceback and + logging.RichHandler + * Set defaults of max_length and max_string for Traceback to 10 + and 80 + * Added disable argument to Progress + Changed + * Reformatted test card (python -m rich) + Fixed + * Fixed redirecting of stderr in Progress + * Fixed broken expanded tuple of one #445 + * Fixed justify argument not working in console.log #460 +- Update to version 9.2.0 + Added + * Added tracebacks_show_locals parameter to RichHandler + * Added max_string to Pretty + * Added rich.ansi.AnsiDecoder + * Added decoding of ansi codes to captured stdout in Progress + * Added expand_all to rich.pretty.pprint + Changed + * Applied dim=True to indent guide styles + * Factored out RichHandler.get_style_and_level to allow for + overriding in subclasses + * Hid progress bars from html export + * rich.pretty.pprint now soft wraps + ------------------------------------------------------------------- Tue Oct 27 00:12:00 UTC 2020 - Benjamin Greiner diff --git a/python-rich.spec b/python-rich.spec index bba89fe..36ac81c 100644 --- a/python-rich.spec +++ b/python-rich.spec @@ -20,7 +20,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-rich -Version: 9.1.0 +Version: 9.5.1 Release: 0 Summary: A Python library for rich text and beautiful formatting in the terminal License: MIT @@ -31,15 +31,15 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry-core} BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module colorama >= 0.4.0} -BuildRequires: %{python_module commonmark >= 0.9.0} +BuildRequires: %{python_module colorama >= 0.4.3} +BuildRequires: %{python_module commonmark >= 0.9.1} BuildRequires: %{python_module pygments >= 2.6.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module typing_extensions >= 3.7.4} # /SECTION BuildRequires: fdupes -Requires: python-colorama >= 0.4.0 -Requires: python-commonmark >= 0.9.0 +Requires: python-colorama >= 0.4.3 +Requires: python-commonmark >= 0.9.1 Requires: python-pygments >= 2.6.0 Requires: python-typing_extensions >= 3.7.4 %if %{python_version_nodots} < 37 diff --git a/rich-9.1.0.tar.gz b/rich-9.1.0.tar.gz deleted file mode 100644 index c973639..0000000 --- a/rich-9.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:013485d3ee944d275333003f98b00656dade07ca367c0adc6f3218566e4dd78a -size 11325303 diff --git a/rich-9.5.1.tar.gz b/rich-9.5.1.tar.gz new file mode 100644 index 0000000..f10e7fe --- /dev/null +++ b/rich-9.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e91d52ecfea9a081aedc81a972b0d8e3c9d36d431ad3311986e3f279fb8d2dc4 +size 13680022