diff --git a/python-ansicolors.changes b/python-ansicolors.changes index 74296c1..280cd1e 100644 --- a/python-ansicolors.changes +++ b/python-ansicolors.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 13:20:42 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Nov 7 16:21:32 UTC 2019 - Matej Cepl diff --git a/python-ansicolors.spec b/python-ansicolors.spec index 859acc8..0daf135 100644 --- a/python-ansicolors.spec +++ b/python-ansicolors.spec @@ -1,7 +1,7 @@ # # spec file for package python-ansicolors # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ansicolors Version: 1.1.8 Release: 0 @@ -24,7 +23,9 @@ Summary: ANSI colors for Python License: ISC URL: https://github.com/jonathaneunice/colors/ Source: https://files.pythonhosted.org/packages/source/a/ansicolors/ansicolors-%{version}.zip +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -41,20 +42,19 @@ Add ANSI colors and decorations to your strings. %setup -q -n ansicolors-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -py.test-%{$python_bin_suffix} --assert=plain -} +%pytest %files %{python_files} %doc CHANGES.yml README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/colors +%{python_sitelib}/ansicolors-%{version}*-info %changelog