2012-11-19 13:43:46 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-colorama
|
|
|
|
|
#
|
2023-04-21 14:49:02 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-11-19 13:43:46 +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.
|
|
|
|
|
|
2018-11-13 14:28:17 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-04-29 13:26:11 +00:00
|
|
|
#
|
2012-11-19 13:43:46 +00:00
|
|
|
|
|
|
|
|
|
2017-04-25 22:47:12 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2022-03-08 14:13:40 +00:00
|
|
|
%define skip_python2 1
|
2023-04-21 14:49:02 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2012-11-19 13:43:46 +00:00
|
|
|
Name: python-colorama
|
- update to 0.4.6:
* https://github.com/tartley/colorama/pull/139 Add alternative to 'init()',
called 'just_fix_windows_console'. This fixes many longstanding problems
with 'init', such as working incorrectly on modern Windows terminals, and
wonkiness when init gets called multiple times. The intention is that it
just makes all Windows terminals treat ANSI the same way as other terminals
do. Many thanks the njsmith for fixing our messes.
* https://github.com/tartley/colorama/pull/352 Support Windows 10's ANSI/VT
console. This didn't exist when Colorama was created, and avoiding us
causing havok there is long overdue. Thanks to segeviner for the initial
approach, and to njsmith for getting it merged.
* https://github.com/tartley/colorama/pull/338 Internal overhaul of package
metadata declaration, which abolishes our use of the now heavily
discouraged setuptools (and hence setup.py, setup.cfg and MANIFEST.in), in
favor of hatchling (and hence pyproject.toml), generously contributed by
ofek (author of hatchling). This includes dropping support Python3.5 and
3.6, which are EOL, and were already dropped from setuptools, so this
should not affect our users.
* https://github.com/tartley/colorama/pull/353 Attention to detail award to
LqdBcnAtWork for a spelling fix in demo06
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colorama?expand=0&rev=32
2022-10-29 12:52:47 +00:00
|
|
|
Version: 0.4.6
|
2012-11-19 13:43:46 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Cross-platform colored terminal text
|
2013-04-29 13:26:11 +00:00
|
|
|
License: BSD-3-Clause
|
2012-11-19 13:43:46 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-11-13 14:28:17 +00:00
|
|
|
URL: https://github.com/tartley/colorama
|
2018-11-13 14:34:25 +00:00
|
|
|
Source: https://github.com/tartley/colorama/archive/%{version}.tar.gz
|
- update to 0.4.6:
* https://github.com/tartley/colorama/pull/139 Add alternative to 'init()',
called 'just_fix_windows_console'. This fixes many longstanding problems
with 'init', such as working incorrectly on modern Windows terminals, and
wonkiness when init gets called multiple times. The intention is that it
just makes all Windows terminals treat ANSI the same way as other terminals
do. Many thanks the njsmith for fixing our messes.
* https://github.com/tartley/colorama/pull/352 Support Windows 10's ANSI/VT
console. This didn't exist when Colorama was created, and avoiding us
causing havok there is long overdue. Thanks to segeviner for the initial
approach, and to njsmith for getting it merged.
* https://github.com/tartley/colorama/pull/338 Internal overhaul of package
metadata declaration, which abolishes our use of the now heavily
discouraged setuptools (and hence setup.py, setup.cfg and MANIFEST.in), in
favor of hatchling (and hence pyproject.toml), generously contributed by
ofek (author of hatchling). This includes dropping support Python3.5 and
3.6, which are EOL, and were already dropped from setuptools, so this
should not affect our users.
* https://github.com/tartley/colorama/pull/353 Attention to detail award to
LqdBcnAtWork for a spelling fix in demo06
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colorama?expand=0&rev=32
2022-10-29 12:52:47 +00:00
|
|
|
BuildRequires: %{python_module hatchling}
|
|
|
|
|
BuildRequires: %{python_module pip}
|
2018-11-13 14:34:25 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
- update to 0.4.6:
* https://github.com/tartley/colorama/pull/139 Add alternative to 'init()',
called 'just_fix_windows_console'. This fixes many longstanding problems
with 'init', such as working incorrectly on modern Windows terminals, and
wonkiness when init gets called multiple times. The intention is that it
just makes all Windows terminals treat ANSI the same way as other terminals
do. Many thanks the njsmith for fixing our messes.
* https://github.com/tartley/colorama/pull/352 Support Windows 10's ANSI/VT
console. This didn't exist when Colorama was created, and avoiding us
causing havok there is long overdue. Thanks to segeviner for the initial
approach, and to njsmith for getting it merged.
* https://github.com/tartley/colorama/pull/338 Internal overhaul of package
metadata declaration, which abolishes our use of the now heavily
discouraged setuptools (and hence setup.py, setup.cfg and MANIFEST.in), in
favor of hatchling (and hence pyproject.toml), generously contributed by
ofek (author of hatchling). This includes dropping support Python3.5 and
3.6, which are EOL, and were already dropped from setuptools, so this
should not affect our users.
* https://github.com/tartley/colorama/pull/353 Attention to detail award to
LqdBcnAtWork for a spelling fix in demo06
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colorama?expand=0&rev=32
2022-10-29 12:52:47 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-08-25 16:25:05 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-11-13 14:28:17 +00:00
|
|
|
BuildRequires: unzip
|
2012-11-19 13:43:46 +00:00
|
|
|
BuildArch: noarch
|
2017-04-25 22:47:12 +00:00
|
|
|
%python_subpackages
|
2012-11-19 13:43:46 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Makes ANSI escape character sequences, for producing colored terminal text and
|
|
|
|
|
cursor positioning, work under MS Windows.
|
|
|
|
|
|
|
|
|
|
ANSI escape character sequences have long been used to produce colored terminal
|
|
|
|
|
text and cursor positioning on Unix and Macs. Colorama makes this work on
|
|
|
|
|
Windows, too. It also provides some shortcuts to help generate ANSI sequences,
|
|
|
|
|
and works fine in conjunction with any other ANSI sequence generation library,
|
|
|
|
|
such as Termcolor.
|
|
|
|
|
|
|
|
|
|
This has the upshot of providing a simple cross-platform API for printing
|
|
|
|
|
colored terminal text from Python, and has the happy side-effect that existing
|
|
|
|
|
applications or libraries which use ANSI sequences to produce colored output on
|
|
|
|
|
Linux or Macs can now also work on Windows, simply by calling colorama.init().
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n colorama-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
- update to 0.4.6:
* https://github.com/tartley/colorama/pull/139 Add alternative to 'init()',
called 'just_fix_windows_console'. This fixes many longstanding problems
with 'init', such as working incorrectly on modern Windows terminals, and
wonkiness when init gets called multiple times. The intention is that it
just makes all Windows terminals treat ANSI the same way as other terminals
do. Many thanks the njsmith for fixing our messes.
* https://github.com/tartley/colorama/pull/352 Support Windows 10's ANSI/VT
console. This didn't exist when Colorama was created, and avoiding us
causing havok there is long overdue. Thanks to segeviner for the initial
approach, and to njsmith for getting it merged.
* https://github.com/tartley/colorama/pull/338 Internal overhaul of package
metadata declaration, which abolishes our use of the now heavily
discouraged setuptools (and hence setup.py, setup.cfg and MANIFEST.in), in
favor of hatchling (and hence pyproject.toml), generously contributed by
ofek (author of hatchling). This includes dropping support Python3.5 and
3.6, which are EOL, and were already dropped from setuptools, so this
should not affect our users.
* https://github.com/tartley/colorama/pull/353 Attention to detail award to
LqdBcnAtWork for a spelling fix in demo06
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colorama?expand=0&rev=32
2022-10-29 12:52:47 +00:00
|
|
|
%pyproject_wheel
|
2012-11-19 13:43:46 +00:00
|
|
|
|
|
|
|
|
%install
|
- update to 0.4.6:
* https://github.com/tartley/colorama/pull/139 Add alternative to 'init()',
called 'just_fix_windows_console'. This fixes many longstanding problems
with 'init', such as working incorrectly on modern Windows terminals, and
wonkiness when init gets called multiple times. The intention is that it
just makes all Windows terminals treat ANSI the same way as other terminals
do. Many thanks the njsmith for fixing our messes.
* https://github.com/tartley/colorama/pull/352 Support Windows 10's ANSI/VT
console. This didn't exist when Colorama was created, and avoiding us
causing havok there is long overdue. Thanks to segeviner for the initial
approach, and to njsmith for getting it merged.
* https://github.com/tartley/colorama/pull/338 Internal overhaul of package
metadata declaration, which abolishes our use of the now heavily
discouraged setuptools (and hence setup.py, setup.cfg and MANIFEST.in), in
favor of hatchling (and hence pyproject.toml), generously contributed by
ofek (author of hatchling). This includes dropping support Python3.5 and
3.6, which are EOL, and were already dropped from setuptools, so this
should not affect our users.
* https://github.com/tartley/colorama/pull/353 Attention to detail award to
LqdBcnAtWork for a spelling fix in demo06
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colorama?expand=0&rev=32
2022-10-29 12:52:47 +00:00
|
|
|
%pyproject_install
|
2017-04-25 22:47:12 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2012-11-19 13:43:46 +00:00
|
|
|
|
2018-11-13 14:34:25 +00:00
|
|
|
%check
|
|
|
|
|
%python_expand script -eqc "pytest-%{$python_version} -vv -s" /dev/null
|
|
|
|
|
|
2017-04-25 22:47:12 +00:00
|
|
|
%files %{python_files}
|
2018-11-13 14:28:17 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc CHANGELOG.rst README.rst
|
2017-04-25 22:47:12 +00:00
|
|
|
%doc demos/
|
2018-11-13 14:28:17 +00:00
|
|
|
%dir %{python_sitelib}/colorama
|
|
|
|
|
%{python_sitelib}/colorama/*
|
- update to 0.4.6:
* https://github.com/tartley/colorama/pull/139 Add alternative to 'init()',
called 'just_fix_windows_console'. This fixes many longstanding problems
with 'init', such as working incorrectly on modern Windows terminals, and
wonkiness when init gets called multiple times. The intention is that it
just makes all Windows terminals treat ANSI the same way as other terminals
do. Many thanks the njsmith for fixing our messes.
* https://github.com/tartley/colorama/pull/352 Support Windows 10's ANSI/VT
console. This didn't exist when Colorama was created, and avoiding us
causing havok there is long overdue. Thanks to segeviner for the initial
approach, and to njsmith for getting it merged.
* https://github.com/tartley/colorama/pull/338 Internal overhaul of package
metadata declaration, which abolishes our use of the now heavily
discouraged setuptools (and hence setup.py, setup.cfg and MANIFEST.in), in
favor of hatchling (and hence pyproject.toml), generously contributed by
ofek (author of hatchling). This includes dropping support Python3.5 and
3.6, which are EOL, and were already dropped from setuptools, so this
should not affect our users.
* https://github.com/tartley/colorama/pull/353 Attention to detail award to
LqdBcnAtWork for a spelling fix in demo06
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colorama?expand=0&rev=32
2022-10-29 12:52:47 +00:00
|
|
|
%{python_sitelib}/colorama-%{version}*.dist-info
|
2012-11-19 13:43:46 +00:00
|
|
|
|
|
|
|
|
%changelog
|