14
0

Accepting request 673611 from home:jengelh:branches:devel:languages:python

- Trim bias, other OS mentions, and programmer's manual
  from descriptions.

OBS-URL: https://build.opensuse.org/request/show/673611
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colorclass?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2019-02-12 11:29:42 +00:00
committed by Git OBS Bridge
parent c694f2d18a
commit 1265a51527
2 changed files with 15 additions and 13 deletions

View File

@@ -13,37 +13,33 @@
# 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-colorclass
Version: 2.2.0
Release: 0
Summary: ANSI text color library for Python
License: MIT
Summary: Colorful worry-free console applications for Linux, Mac OS X, and Windows
Url: https://github.com/Robpol86/colorclass
Group: Development/Languages/Python
Url: https://github.com/Robpol86/colorclass
Source: https://files.pythonhosted.org/packages/source/c/colorclass/colorclass-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Yet another ANSI color text library for Python. Provides "auto colors" for dark/light terminals. Works on Linux, OS X,
and Windows. For Windows support you just need to call ``Windows.enable()`` in your application.
Yet another ANSI color text library for Python. It provides "auto
colors" for dark/light terminals.
On Linux/OS X ``autocolors`` are toggled by calling ``set_light_background()`` and ``set_dark_background()``. On Windows
this can be done automatically if you call ``Windows.enable(auto_colors=True)``. Even though the latest Windows 10 does
support ANSI color codes natively, you still need to run Windows.enable() to take advantage of automatically detecting
the console's background color.
In Python 2.x, this library subclasses `unicode`, while on
Python 3.x, it subclasses `str`.
In Python2.x this library subclasses ``unicode``, while on Python3.x it subclasses ``str``.
* Python 2.6, 2.7, PyPy, PyPy3, 3.3, 3.4, and 3.5 supported on Linux and OS X.
* Python 2.6, 2.7, 3.3, 3.4, and 3.5 supported on Windows (both 32 and 64 bit versions of Python).
* Python 2.6, 2.7, PyPy, PyPy3, 3.3, 3.4, and 3.5 are supported
%prep
%setup -q -n colorclass-%{version}