15
0

Accepting request 612025 from devel:languages:python:misc

ANSI color output and colored highlighting and diffing

OBS-URL: https://build.opensuse.org/request/show/612025
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ansicolor?expand=0&rev=1
This commit is contained in:
Todd R
2018-05-24 20:56:28 +00:00
committed by Git OBS Bridge
commit d60ddca0ab
6 changed files with 111 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

13
LICENSE Normal file
View File

@@ -0,0 +1,13 @@
Copyright 2008-2014 Martin Matusiak
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

3
ansicolor-0.2.6.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d17e1b07b9dd7ded31699fbca53ae6cd373584f9b6dcbc124d1f321ebad31f1d
size 6224

13
python-ansicolor.changes Normal file
View File

@@ -0,0 +1,13 @@
-------------------------------------------------------------------
Thu May 24 17:26:59 UTC 2018 - toddrme2178@gmail.com
- Update to version 0.2.6
* First version supporting Python 3.4!
- Update to version 0.2.5
* ansicolor.highlight_string accepts a new kwarg colors. color has been deprecated.
- Spec file cleanups
-------------------------------------------------------------------
Fri Oct 20 16:13:04 UTC 2017 - toddrme2178@gmail.com
- initial version

58
python-ansicolor.spec Normal file
View File

@@ -0,0 +1,58 @@
#
# spec file for package python-ansicolor
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ansicolor
Version: 0.2.6
# For license file
%define tag a5a5c31dc6de5c864a0c5684ae326972573a712b
Release: 0
License: Apache-2.0
Summary: ANSI color output and colored highlighting and diffing
Url: https://github.com/numerodix/ansicolor
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/a/ansicolor/ansicolor-%{version}.tar.gz
Source10: https://raw.githubusercontent.com/numerodix/ansicolor/%{tag}/LICENSE
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
%description
Ansicolor is a library that makes it easy to use ANSI color markup in
command line programs.
%prep
%setup -q -n ansicolor-%{version}
cp %{SOURCE10} .
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%changelog