forked from pool/python-rich
- Update to version 4.2.1 - Added show_time and show_level parameters to RichHandler https://github.com/willmcgugan/rich/pull/182 - Fixed progress.track iterator exiting early https://github.com/willmcgugan/rich/issues/189 - Added workaround for Python bug https://bugs.python.org/issue37871, fixing https://github.com/willmcgugan/rich/issues/186 - Set overflow=fold for log messages https://github.com/willmcgugan/rich/issues/190 - Fixed missing new lines https://github.com/willmcgugan/rich/issues/178 - Fixed Progress.track https://github.com/willmcgugan/rich/issues/184 - Remove control codes from exported text https://github.com/willmcgugan/rich/issues/181 - Implemented auto-detection and color rendition of 16-color mode - Optimized progress.track for very quick iterations - Force default size of 80x25 if get_terminal_size reports size of 0,0 - Added markup switch to RichHandler https://github.com/willmcgugan/rich/issues/171 - Change signature of Text.stylize to accept style first - Remove Text.stylize_all which is no longer necessary - Fixed rendering of Confirm prompt https://github.com/willmcgugan/rich/issues/170 OBS-URL: https://build.opensuse.org/request/show/823699 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rich?expand=0&rev=9
76 lines
2.4 KiB
RPMSpec
76 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-rich
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
# Copyright (c) 2020, 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-rich
|
|
Version: 4.2.1
|
|
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/willmcgugan/rich
|
|
Source: https://github.com/willmcgugan/rich/archive/v%{version}.tar.gz#/rich-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: python-dephell-rpm-macros
|
|
BuildRequires: python-rpm-macros
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module colorama >= 0.4.0}
|
|
BuildRequires: %{python_module commonmark >= 0.9.0}
|
|
BuildRequires: %{python_module pprintpp >= 0.4.0}
|
|
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-pprintpp >= 0.4.0
|
|
Requires: python-pygments >= 2.6.0
|
|
Requires: python-typing_extensions >= 3.7.4
|
|
%if %{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
|
|
%dephell_gensetup
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc CHANGELOG.md README.md
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|