From 07513a4285110e7d3599b4e1a62cd36f51a9cb7e438131a98b4236b5af25ae90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 10:22:10 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygments-ansi-color?expand=0&rev=15 --- python-pygments-ansi-color.changes | 5 +++++ python-pygments-ansi-color.spec | 20 +++++++++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) 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