From 4b5c196f3ac8b36751a173f3391625f27ee5322854c51b95ddae60150b0fc074 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 4 May 2023 21:11:00 +0000 Subject: [PATCH] - update to 13.3.5: * Fixed italic indent guides in SVG output * Fixed for `is_terminal` ignoring FORCE_COLOR https://github.com/Textualize/rich/pull/2923 * Added Style.clear_meta_and_links * Reversed `pre` and `code` tags in base HTML format * Fix syntax error when building with nuitka * Fixed pretty printing of empty dataclass * Use `Console(stderr=True)` in `rich.traceback.install` to support io redirection. * Fixes superfluous spaces in html output * Fixed duplicate output in Jupyter * Filter ANSI character-encoding-change codes in `Text.from_ansi` parser * Fixes traceback failing when a frame filename is unreadable * Fix for live update rendering console markup * `rich.progress.track()` will now show the elapsed time after finishing the task * Fixed truecolor to eight bit color conversion * Fixed failing tests due to Pygments dependency * Relaxed ipywidgets * v13.2.0 replaces the unmaintained `commonmark` library with `markdown-it-py`. This new parser has a lot more capabilities and will allow us to implement a number of additional Markdown features in the future. * Switch Markdown parsing from commonmark to markdown-it-py * Fixed wrong filenames in Jupyter tracebacks * Added locals_hide_dunder and locals_hide_sunder to Tracebacks, to hide double underscore and single underscore * Tracebacks will now hide double underscore names from locals OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rich?expand=0&rev=47 --- _service | 4 ---- python-rich.changes | 54 +++++++++++++++++++++++++++++++++++++++++++++ python-rich.spec | 10 ++++----- rich-12.6.0.tar.gz | 3 --- rich-13.3.5.tar.gz | 3 +++ 5 files changed, 62 insertions(+), 12 deletions(-) delete mode 100644 _service delete mode 100644 rich-12.6.0.tar.gz create mode 100644 rich-13.3.5.tar.gz diff --git a/_service b/_service deleted file mode 100644 index 1bd86b8..0000000 --- a/_service +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/python-rich.changes b/python-rich.changes index d3e2d3c..68053da 100644 --- a/python-rich.changes +++ b/python-rich.changes @@ -1,3 +1,57 @@ +------------------------------------------------------------------- +Thu May 4 21:06:58 UTC 2023 - Dirk Müller + +- update to 13.3.5: + * Fixed italic indent guides in SVG output + * Fixed for `is_terminal` ignoring FORCE_COLOR + https://github.com/Textualize/rich/pull/2923 + * Added Style.clear_meta_and_links + * Reversed `pre` and `code` tags in base HTML format + * Fix syntax error when building with nuitka + * Fixed pretty printing of empty dataclass + * Use `Console(stderr=True)` in `rich.traceback.install` to + support io redirection. + * Fixes superfluous spaces in html output + * Fixed duplicate output in Jupyter + * Filter ANSI character-encoding-change codes in + `Text.from_ansi` parser + * Fixes traceback failing when a frame filename is unreadable + * Fix for live update rendering console markup + * `rich.progress.track()` will now show the elapsed time after + finishing the task + * Fixed truecolor to eight bit color conversion + * Fixed failing tests due to Pygments dependency + * Relaxed ipywidgets + * v13.2.0 replaces the unmaintained `commonmark` library with + `markdown-it-py`. This new parser has a lot more capabilities + and will allow us to implement a number of additional + Markdown features in the future. + * Switch Markdown parsing from commonmark to markdown-it-py + * Fixed wrong filenames in Jupyter tracebacks + * Added locals_hide_dunder and locals_hide_sunder to + Tracebacks, to hide double underscore and single underscore + * Tracebacks will now hide double underscore names from locals + by default. Set `locals_hide_dunder=False` to restore + previous behaviour. + * Fixed issue with Segment.split_cells for mixed single and + double cell widths + * Some relatively minor fixes and improvements. The most + significant update (and the reason for the major version + bump) is that Rich has dropped Python3.6 support. + * Reversed `pre` and `code` tags in base HTML format + * Improved detection of `attrs` library, that isn't confused by + the presence of the `attr` library. + * Fixed issue with `locals_max_length` parameter not being + respected in Traceback + * Handling of broken `fileno` made more robust. Fixes + * Fixed missing `fileno` on FileProxy + * Bumped minimum Python version to 3.7 + * Pretty-printing of "tagged" `__repr__` results is now greedy + when matching tags + * `progress.track` now supports deriving total from + `__length_hint__` + * Add type annotation for key_separator of pretty.Node + ------------------------------------------------------------------- Fri Apr 21 12:33:21 UTC 2023 - Dirk Müller diff --git a/python-rich.spec b/python-rich.spec index 6552437..6b105b8 100644 --- a/python-rich.spec +++ b/python-rich.spec @@ -20,26 +20,26 @@ %define skip_python2 1 %{?sle15_python_module_pythons} Name: python-rich -Version: 12.6.0 +Version: 13.3.5 Release: 0 Summary: A Python library for rich text and beautiful formatting in the terminal License: MIT Group: Development/Languages/Python URL: https://github.com/Textualize/rich Source: https://files.pythonhosted.org/packages/source/r/rich/rich-%{version}.tar.gz -BuildRequires: %{python_module commonmark >= 0.9.0} BuildRequires: %{python_module dataclasses >= 0.7 if %python-base < 3.7} +BuildRequires: %{python_module markdown-it-py >= 2.2.0} BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry-core} -BuildRequires: %{python_module pygments >= 2.6.0} +BuildRequires: %{python_module pygments >= 2.13.0} BuildRequires: %{python_module typing_extensions >= 4.0.0 if %python-base < 3.9} BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module pytest} # /SECTION BuildRequires: fdupes -Requires: python-commonmark >= 0.9.0 -Requires: python-pygments >= 2.6.0 +Requires: python-markdown-it-py >= 2.2.0 +Requires: python-pygments >= 2.13.0 Suggests: python-ipywidgets >= 7.5.1 %if 0%{?python_version_nodots} < 39 Requires: python-typing_extensions >= 4.0.0 diff --git a/rich-12.6.0.tar.gz b/rich-12.6.0.tar.gz deleted file mode 100644 index 087a55d..0000000 --- a/rich-12.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ba3a3775974105c221d31141f2c116f4fd65c5ceb0698657a11e9f295ec93fd0 -size 220114 diff --git a/rich-13.3.5.tar.gz b/rich-13.3.5.tar.gz new file mode 100644 index 0000000..e352f9e --- /dev/null +++ b/rich-13.3.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d11b9b8dd03868f09b4fffadc84a6a8cda574e40dc90821bd845720ebb8e89c +size 219245