diff --git a/python-pygments-ansi-color.changes b/python-pygments-ansi-color.changes index edea64e..d45e71a 100644 --- a/python-pygments-ansi-color.changes +++ b/python-pygments-ansi-color.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 10:21:48 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Sep 7 11:46:08 UTC 2023 - Dirk Müller diff --git a/python-pygments-ansi-color.spec b/python-pygments-ansi-color.spec index f2560d3..8426c1c 100644 --- a/python-pygments-ansi-color.spec +++ b/python-pygments-ansi-color.spec @@ -1,7 +1,7 @@ # # spec file for package python-pygments-ansi-color # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -25,15 +25,16 @@ License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/chriskuehl/pygments-ansi-color Source: https://github.com/chriskuehl/pygments-ansi-color/archive/v%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pygments} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -Requires: python-pygments -BuildRequires: python-rpm-macros -Requires: python-setuptools +BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pygments +Requires: python-setuptools BuildArch: noarch - %python_subpackages %description @@ -43,18 +44,19 @@ An ANSI color-code highlighting lexer for Pygments. %setup -q -n pygments-ansi-color-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v +%pytest %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/* +%{python_sitelib}/pygments[-_]ansi[-_]color +%{python_sitelib}/pygments[-_]ansi[-_]color-%{version}*-info %changelog