From 0c5a0f9635c4ef38cdad63672d11adcb7e605c1267c6d68798f56cbd6bd25c01 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 29 Nov 2025 22:19:25 +0000 Subject: [PATCH] - Update to 3.2.0 * Expose can_colorize as public API (#114) @hugovk * Add support for Python 3.15 (#123) @hugovk * Drop support for Python 3.9 (#121) @hugovk * Replace action-pre-commit-uv with prek-action (#124) @hugovk - from version 3.1.0 * Add true colour RGB option as input arguments (#102) @icyveins7 * Cache system lookups to save invocation time (#107) @miketheman * Advertise typing via classifier (#104) @miketheman * Migrate coverage configuration to pyproject.toml (#105) @miketheman - from version 3.0.1 * Fix licence filename in metadata (#100) @hugovk - from version 3.0.0 * Add support for Python 3.14 (#87) @hugovk * Only apply FORCE_COLOR, NO_COLOR and ANSI_COLORS_DISABLED when present and not an empty string (#92) @hugovk * Replace deprecated classifier with licence expression (PEP 639) (#95) @hugovk * Speedup: move typing imports into type-checking block (#94) @hugovk * Lint with faster action-pre-commit-uv: 1m22s -> 48s and 21s -> 15s (#86) @hugovk * Replace literal types with strings (#97) @hugovk * Remove deprecated __ALL__, use __all__ instead (#93) @hugovk - Update BuildRequires from pyproject.toml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-termcolor?expand=0&rev=34 --- .gitattributes | 23 +++++++ .gitignore | 1 + python-termcolor.changes | 126 +++++++++++++++++++++++++++++++++++++++ python-termcolor.spec | 58 ++++++++++++++++++ termcolor-2.5.0.tar.gz | 3 + termcolor-3.2.0.tar.gz | 3 + 6 files changed, 214 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-termcolor.changes create mode 100644 python-termcolor.spec create mode 100644 termcolor-2.5.0.tar.gz create mode 100644 termcolor-3.2.0.tar.gz 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/python-termcolor.changes b/python-termcolor.changes new file mode 100644 index 0000000..534e1b7 --- /dev/null +++ b/python-termcolor.changes @@ -0,0 +1,126 @@ +------------------------------------------------------------------- +Fri Nov 28 10:55:38 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 3.2.0 + * Expose can_colorize as public API (#114) @hugovk + * Add support for Python 3.15 (#123) @hugovk + * Drop support for Python 3.9 (#121) @hugovk + * Replace action-pre-commit-uv with prek-action (#124) @hugovk +- from version 3.1.0 + * Add true colour RGB option as input arguments (#102) @icyveins7 + * Cache system lookups to save invocation time (#107) @miketheman + * Advertise typing via classifier (#104) @miketheman + * Migrate coverage configuration to pyproject.toml (#105) @miketheman +- from version 3.0.1 + * Fix licence filename in metadata (#100) @hugovk +- from version 3.0.0 + * Add support for Python 3.14 (#87) @hugovk + * Only apply FORCE_COLOR, NO_COLOR and ANSI_COLORS_DISABLED when present + and not an empty string (#92) @hugovk + * Replace deprecated classifier with licence expression (PEP 639) (#95) @hugovk + * Speedup: move typing imports into type-checking block (#94) @hugovk + * Lint with faster action-pre-commit-uv: 1m22s -> 48s and 21s -> 15s (#86) @hugovk + * Replace literal types with strings (#97) @hugovk + * Remove deprecated __ALL__, use __all__ instead (#93) @hugovk +- Update BuildRequires from pyproject.toml + +------------------------------------------------------------------- +Mon Oct 7 20:37:45 UTC 2024 - Dirk Müller + +- update to 2.5.0: + * drop python 3.8 + * switch to ruff + +------------------------------------------------------------------- +Wed Dec 27 16:10:59 UTC 2023 - Dirk Müller + +- update to 2.4.0: + * document terminal colour detection overrides (#60) @hugovk + * Add support for Python 3.13 (#55) @hugovk + * Improve isatty check (#56) @XiaoliChan + * Improve typing (#44) @marcin-serwin + * Drop support for EOL Python 3.7 (#47) @hugovk + +------------------------------------------------------------------- +Mon Nov 27 16:16:22 UTC 2023 - Dirk Müller + +- update to 2.3.0: + * Add no_color and force_color parameters to override env vars + * Add support for Python 3.12 + * Add light shades, dark grey and black + +------------------------------------------------------------------- +Sat Jun 10 11:51:43 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Mon Jan 2 09:55:10 UTC 2023 - Dirk Müller + +- 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 + +- 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 + +- 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 + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Tue Dec 4 12:55:06 UTC 2018 - Matej Cepl + +- 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 + diff --git a/python-termcolor.spec b/python-termcolor.spec new file mode 100644 index 0000000..c146074 --- /dev/null +++ b/python-termcolor.spec @@ -0,0 +1,58 @@ +# +# spec file for package python-termcolor +# +# Copyright (c) 2024 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: 3.2.0 +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.10} +BuildRequires: %{python_module hatch_vcs} +BuildRequires: %{python_module hatchling >= 1.27} +BuildRequires: %{python_module pip} +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}/termcolor +%{python_sitelib}/termcolor-%{version}.dist-info + +%changelog diff --git a/termcolor-2.5.0.tar.gz b/termcolor-2.5.0.tar.gz new file mode 100644 index 0000000..cc89401 --- /dev/null +++ b/termcolor-2.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:998d8d27da6d48442e8e1f016119076b690d962507531df4890fcd2db2ef8a6f +size 13057 diff --git a/termcolor-3.2.0.tar.gz b/termcolor-3.2.0.tar.gz new file mode 100644 index 0000000..7c54a2a --- /dev/null +++ b/termcolor-3.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:610e6456feec42c4bcd28934a8c87a06c3fa28b01561d46aa09a9881b8622c58 +size 14423