Sync from SUSE:SLFO:Main python-termcolor revision 3262069f8bd47220950e3963a28dedb9

This commit is contained in:
Adrian Schröter 2024-05-03 23:13:33 +02:00
commit 3628477750
4 changed files with 159 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

75
python-termcolor.changes Normal file
View File

@ -0,0 +1,75 @@
-------------------------------------------------------------------
Sat Jun 10 11:51:43 UTC 2023 - ecsos <ecsos@opensue.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Mon Jan 2 09:55:10 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2.1.1:
* Add __main__ to re-enable demo via python -m termcolor
-------------------------------------------------------------------
Sat Dec 3 01:09:36 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to 2.1.0
* Support FORCE_COLOR and detect tty (#25) @hugovk
* Deprecate __ALL__, use __all__ instead (#23) @hugovk
-------------------------------------------------------------------
Mon Oct 3 16:03:35 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 2.0.1:
* Add support for Python 3.11 and PyPy
* Add support for Python 3.10
* Support NO_COLOR
* Add type annotations to the project and run mypy on CI
* Add tests
-------------------------------------------------------------------
Mon Oct 14 14:44:45 UTC 2019 - Matej Cepl <mcepl@suse.com>
- Replace %fdupes -s with plain %fdupes; hardlinks are better.
-------------------------------------------------------------------
Tue Dec 4 12:55:06 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Wed Jul 5 08:49:09 UTC 2017 - aloisio@gmx.com
- Converted to single-spec
-------------------------------------------------------------------
Thu Oct 24 11:15:45 UTC 2013 - speilicke@suse.com
- Require python-setuptools instead of distribute (upstreams merged)
-------------------------------------------------------------------
Tue Jan 15 17:20:00 UTC 2013 - p.drouand@gmail.com
- Initial python3 support
-------------------------------------------------------------------
Mon Nov 19 13:37:43 UTC 2012 - saschpe@suse.de
- Macro cleanup
-------------------------------------------------------------------
Fri Sep 23 10:36:16 UTC 2011 - saschpe@suse.de
- Update to version 1.1.0:
* Added cprint function.
-------------------------------------------------------------------
Thu Nov 26 22:29:36 UTC 2009 - poeml@cmdline.net
- add missing tarball
- add changes file
-------------------------------------------------------------------
Tue Nov 24 00:00:00 UTC 2009 - cfarrell1980@gmail.com
- First build

58
python-termcolor.spec Normal file
View File

@ -0,0 +1,58 @@
#
# spec file for package python-termcolor
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-termcolor
Version: 2.1.1
Release: 0
Summary: ANSII Color formatting for output in terminal
License: MIT
URL: https://pypi.python.org/pypi/termcolor
Source: https://files.pythonhosted.org/packages/source/t/termcolor/termcolor-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Available text colors: grey, red, green, yellow, blue, magenta, cyan, white.
Available text highlights: on_grey, on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white.
Available attributes: bold, dark, underline, blink, reverse, concealed.
%prep
%setup -q -n termcolor-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license COPYING.txt
%doc CHANGES.md README.md
%{python_sitelib}/*
%changelog

BIN
termcolor-2.1.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.