2020-07-01 09:58:09 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-rich
|
|
|
|
#
|
2021-01-25 11:32:56 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2021-03-06 17:34:19 +00:00
|
|
|
# Copyright (c) 2020-2021, Martin Hauke <mardnh@gmx.de>
|
2020-07-01 09:58:09 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-07-02 19:33:09 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2020-07-01 09:58:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-09-28 16:19:17 +00:00
|
|
|
%define skip_python2 1
|
2020-07-01 09:58:09 +00:00
|
|
|
Name: python-rich
|
2021-11-07 19:11:30 +00:00
|
|
|
Version: 10.13.0
|
2020-07-01 09:58:09 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A Python library for rich text and beautiful formatting in the terminal
|
2020-07-02 19:33:09 +00:00
|
|
|
License: MIT
|
2020-07-01 09:58:09 +00:00
|
|
|
Group: Development/Languages/Python
|
2020-07-02 19:33:09 +00:00
|
|
|
URL: https://github.com/willmcgugan/rich
|
2020-07-01 09:58:09 +00:00
|
|
|
Source: https://github.com/willmcgugan/rich/archive/v%{version}.tar.gz#/rich-%{version}.tar.gz
|
2021-01-25 11:32:56 +00:00
|
|
|
BuildRequires: %{python_module colorama >= 0.4.3}
|
|
|
|
BuildRequires: %{python_module commonmark >= 0.9.1}
|
2020-10-27 11:27:03 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module poetry-core}
|
2021-01-25 11:32:56 +00:00
|
|
|
BuildRequires: %{python_module pygments >= 2.6.0}
|
|
|
|
BuildRequires: %{python_module typing_extensions >= 3.7.4}
|
2020-07-02 19:33:09 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2021-01-25 11:32:56 +00:00
|
|
|
BuildRequires: (python3-dataclasses >= 0.7 if python3-base < 3.7 else python36-dataclasses >= 0.7)
|
2020-07-01 09:58:09 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
# /SECTION
|
|
|
|
BuildRequires: fdupes
|
2020-12-20 13:52:52 +00:00
|
|
|
Requires: python-colorama >= 0.4.3
|
|
|
|
Requires: python-commonmark >= 0.9.1
|
2020-07-01 09:58:09 +00:00
|
|
|
Requires: python-pygments >= 2.6.0
|
|
|
|
Requires: python-typing_extensions >= 3.7.4
|
2021-01-25 11:32:56 +00:00
|
|
|
Suggests: python-ipywidgets
|
|
|
|
%if 0%{?python_version_nodots} < 37
|
2020-07-01 09:58:09 +00:00
|
|
|
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
|
2020-10-27 11:27:03 +00:00
|
|
|
%pyproject_wheel
|
2020-07-01 09:58:09 +00:00
|
|
|
|
|
|
|
%install
|
2020-10-27 11:27:03 +00:00
|
|
|
%pyproject_install
|
2020-07-01 09:58:09 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-09-28 16:19:17 +00:00
|
|
|
%pytest -k 'not test_log'
|
2020-07-01 09:58:09 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGELOG.md README.md
|
2020-10-27 11:27:03 +00:00
|
|
|
%{python_sitelib}/rich
|
|
|
|
%{python_sitelib}/rich-%{version}*-info
|
2020-07-01 09:58:09 +00:00
|
|
|
|
|
|
|
%changelog
|