From dc10f567430fc4b858f9246d6201414a8b5b6f02459dc016fa88e178c1ca183b Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 3 May 2018 06:17:22 +0000 Subject: [PATCH] Accepting request 603495 from devel:languages:python:misc Needed by python-spyder-terminal OBS-URL: https://build.opensuse.org/request/show/603495 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coloredlogs?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + coloredlogs-7.3.tar.gz | 3 ++ python-coloredlogs.changes | 12 +++++ python-coloredlogs.spec | 90 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 129 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 coloredlogs-7.3.tar.gz create mode 100644 python-coloredlogs.changes create mode 100644 python-coloredlogs.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/coloredlogs-7.3.tar.gz b/coloredlogs-7.3.tar.gz new file mode 100644 index 0000000..a0c88a7 --- /dev/null +++ b/coloredlogs-7.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:894641ed5e8c48e01fa0b1d62b15cd32030c6c16e1dda42f6ce5f966ac558cae +size 288313 diff --git a/python-coloredlogs.changes b/python-coloredlogs.changes new file mode 100644 index 0000000..0c56d59 --- /dev/null +++ b/python-coloredlogs.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Wed Sep 6 18:00:41 UTC 2017 - toddrme2178@gmail.com + +- Update to version 7.3 + * No changelog +- Implement single-spec version + +------------------------------------------------------------------- +Mon Oct 10 20:41:08 UTC 2016 - mardnh@gmx.de + +- initial package, version 5.1.1 + diff --git a/python-coloredlogs.spec b/python-coloredlogs.spec new file mode 100644 index 0000000..9b44506 --- /dev/null +++ b/python-coloredlogs.spec @@ -0,0 +1,90 @@ +# +# spec file for package python-coloredlogs +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016, Martin Hauke +# +# 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-%{**}} +%bcond_with test +Name: python-coloredlogs +Version: 7.3 +Release: 0 +License: MIT +Summary: Colored terminal output for Python's logging module +Url: https://coloredlogs.readthedocs.io +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/c/coloredlogs/coloredlogs-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module humanfriendly >= 3.2} +BuildRequires: %{python_module setuptools} +%if %{with test} +BuildRequires: %{python_module capturer >= 2.4} +BuildRequires: %{python_module mock >= 1.0.1} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-cov >= 2.3.1} +BuildRequires: %{python_module verboselogs} +%endif +Requires: python-capturer >= 2.4 +Requires: python-humanfriendly >= 3.2 +Recommends: python-verboselogs +BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives + +%python_subpackages + +%description +The `coloredlogs` package enables colored terminal output for Python's logging_ +module. The ColoredFormatter_ class inherits from `logging.Formatter`_ and uses +`ANSI escape sequences`_ to render your logging messages in color. It uses only +standard colors so it should work on any UNIX terminal. It's currently tested +on Python 2.6, 2.7, 3.4, 3.5 and PyPy. On Windows `coloredlogs` automatically +pulls in Colorama_ as a dependency and enables ANSI escape sequence translation +using Colorama. + +%prep +%setup -q -n coloredlogs-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/coloredlogs +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative coloredlogs + +%postun +%python_uninstall_alternative coloredlogs + +%if %{with test} +%check +%python_exec setup.py test +popd +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc README.rst LICENSE.txt +%python_alternative %{_bindir}/coloredlogs +%{python_sitelib}/coloredlogs/ +%{python_sitelib}/coloredlogs.pth +%{python_sitelib}/coloredlogs-%{version}-py*.egg-info + +%changelog