15
0
Files
python-termcolor/python-termcolor.spec
Matej Cepl 0c5a0f9635 - 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
2025-11-29 22:19:25 +00:00

59 lines
1.9 KiB
RPMSpec

#
# 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