From 1bc3268aa4163c9b80f9ff76dcc97927668614df7034dc8da620510a1e7b436c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 3 Oct 2022 16:04:44 +0000 Subject: [PATCH 1/2] - 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 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-termcolor?expand=0&rev=19 --- python-termcolor.changes | 10 ++++++++++ python-termcolor.spec | 5 +++-- termcolor-1.1.0.tar.gz | 3 --- termcolor-2.0.1.tar.gz | 3 +++ 4 files changed, 16 insertions(+), 5 deletions(-) delete mode 100644 termcolor-1.1.0.tar.gz create mode 100644 termcolor-2.0.1.tar.gz diff --git a/python-termcolor.changes b/python-termcolor.changes index 466ab06..6b33966 100644 --- a/python-termcolor.changes +++ b/python-termcolor.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +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 diff --git a/python-termcolor.spec b/python-termcolor.spec index 31630b2..53d652b 100644 --- a/python-termcolor.spec +++ b/python-termcolor.spec @@ -1,7 +1,7 @@ # # spec file for package python-termcolor # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,12 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-termcolor -Version: 1.1.0 +Version: 2.0.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 setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros diff --git a/termcolor-1.1.0.tar.gz b/termcolor-1.1.0.tar.gz deleted file mode 100644 index d5103cf..0000000 --- a/termcolor-1.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b -size 3912 diff --git a/termcolor-2.0.1.tar.gz b/termcolor-2.0.1.tar.gz new file mode 100644 index 0000000..7dc7604 --- /dev/null +++ b/termcolor-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b2cf769e93364a2676e1de56a7c0cff2cf5bd07f37e9cc80b0dd6320ebfe388 +size 9693 From d1bf063350b1bbc62cd9988067604255413a64ef18e679aec896d2056c5756fe Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 10 Oct 2022 07:44:47 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-termcolor?expand=0&rev=20 --- python-termcolor.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python-termcolor.spec b/python-termcolor.spec index 53d652b..ef71ddd 100644 --- a/python-termcolor.spec +++ b/python-termcolor.spec @@ -25,7 +25,11 @@ 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 @@ -40,15 +44,15 @@ Available attributes: bold, dark, underline, blink, reverse, concealed. %setup -q -n termcolor-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %license COPYING.txt -%doc CHANGES.rst README.rst +%doc CHANGES.md README.md %{python_sitelib}/* %changelog