14
0
forked from pool/python-rich
Files
python-rich/python-rich.spec
Dirk Mueller 4b5c196f3a - 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
2023-05-04 21:11:00 +00:00

74 lines
2.3 KiB
RPMSpec

#
# spec file for package python-rich
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2020-2021, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-rich
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 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.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-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
%endif
%if 0%{?python_version_nodots} < 37
Requires: python-dataclasses >= 0.7
%endif
BuildArch: noarch
%python_subpackages
%description
Render rich text, tables, progress bars, syntax highlighting,
markdown and more to the terminal.
%prep
%setup -q -n rich-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/rich
%{python_sitelib}/rich-%{version}*-info
%changelog