b1dc75
%global pypi_name colorama
b1dc75
b1dc75
Name:           python-%{pypi_name}
b1dc75
Version:        0.4.6
b1dc75
Release:        %autorelease
b1dc75
Summary:        Cross-platform colored terminal text
b1dc75
b1dc75
License:        BSD-3-Clause
b1dc75
URL:            https://github.com/tartley/colorama
b1dc75
Source0:        %{url}/archive/%{version}/colorama-%{version}.tar.gz
b1dc75
BuildArch:      noarch
b1dc75
b1dc75
BuildRequires:  python3-devel
b1dc75
# for check
b1dc75
BuildRequires:  python3dist(pytest)
b1dc75
b1dc75
b1dc75
%description
b1dc75
Makes ANSI escape character sequences, for producing colored
b1dc75
terminal text and cursor positioning, work under MS Windows.
b1dc75
b1dc75
ANSI escape character sequences have long been used to produce colored terminal
b1dc75
text and cursor positioning on Unix and Macs. Colorama makes this work on
b1dc75
Windows, too.
b1dc75
It also provides some shortcuts to help generate ANSI sequences, and works fine
b1dc75
in conjunction with any other ANSI sequence generation library, such as
b1dc75
Termcolor.
b1dc75
b1dc75
%package -n python3-%{pypi_name}
b1dc75
Summary:        Cross-platform colored terminal text
b1dc75
b1dc75
%description -n python3-%{pypi_name}
b1dc75
Makes ANSI escape character sequences, for producing colored
b1dc75
terminal text and cursor positioning, work under MS Windows.
b1dc75
b1dc75
ANSI escape character sequences have long been used to produce colored terminal
b1dc75
text and cursor positioning on Unix and Macs. Colorama makes this work on
b1dc75
Windows, too.
b1dc75
It also provides some shortcuts to help generate ANSI sequences, and works fine
b1dc75
in conjunction with any other ANSI sequence generation library, such as
b1dc75
Termcolor.
b1dc75
b1dc75
%prep
b1dc75
%autosetup -n %{pypi_name}-%{version}
b1dc75
b1dc75
%generate_buildrequires
b1dc75
%pyproject_buildrequires -r
b1dc75
b1dc75
%build
b1dc75
%pyproject_wheel
b1dc75
b1dc75
%install
b1dc75
%pyproject_install
b1dc75
%pyproject_save_files colorama
b1dc75
b1dc75
%check
b1dc75
%pytest
b1dc75
b1dc75
%files -n python3-%{pypi_name} -f %{pyproject_files}
b1dc75
%doc CHANGELOG.rst README.rst
b1dc75
%license LICENSE.txt
b1dc75
b1dc75
%changelog
b1dc75
%autochangelog