From d62832ded3ae83049fac9c1b77722f45ce261c93302aee5fe635a379909c3f60 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 7 Oct 2024 20:38:59 +0000 Subject: [PATCH 1/2] - update to 2.5.0: * drop python 3.8 * switch to ruff OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-termcolor?expand=0&rev=31 --- .gitattributes | 23 +++++++++ .gitignore | 1 + python-termcolor.changes | 100 +++++++++++++++++++++++++++++++++++++++ python-termcolor.spec | 58 +++++++++++++++++++++++ termcolor-2.4.0.tar.gz | 3 ++ termcolor-2.5.0.tar.gz | 3 ++ 6 files changed, 188 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.4.0.tar.gz create mode 100644 termcolor-2.5.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..4ecd8e1 --- /dev/null +++ b/python-termcolor.changes @@ -0,0 +1,100 @@ +------------------------------------------------------------------- +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..f261fba --- /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: 2.5.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.7} +BuildRequires: %{python_module hatch_vcs} +BuildRequires: %{python_module hatchling} +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.4.0.tar.gz b/termcolor-2.4.0.tar.gz new file mode 100644 index 0000000..06c245d --- /dev/null +++ b/termcolor-2.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aab9e56047c8ac41ed798fa36d892a37aca6b3e9159f3e0c24bc64a9b3ac7b7a +size 12664 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 From f54820e3001a4d33e99c4e4b59c74923382c011c322b7f7daf2e73c717ce6f90 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 7 Oct 2024 20:39:07 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-termcolor?expand=0&rev=32 --- python-termcolor.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-termcolor.spec b/python-termcolor.spec index f261fba..7ef80d0 100644 --- a/python-termcolor.spec +++ b/python-termcolor.spec @@ -24,7 +24,7 @@ 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 base >= 3.9} BuildRequires: %{python_module hatch_vcs} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip}