14
0
2025-06-04 10:22:10 +00:00
committed by Git OBS Bridge
parent ac8b9c504a
commit 07513a4285
2 changed files with 16 additions and 9 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 4 10:21:48 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 7 11:46:08 UTC 2023 - Dirk Müller <dmueller@suse.com> Thu Sep 7 11:46:08 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pygments-ansi-color # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -25,15 +25,16 @@ License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/chriskuehl/pygments-ansi-color URL: https://github.com/chriskuehl/pygments-ansi-color
Source: https://github.com/chriskuehl/pygments-ansi-color/archive/v%{version}.tar.gz Source: https://github.com/chriskuehl/pygments-ansi-color/archive/v%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pygments} BuildRequires: %{python_module pygments}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
Requires: python-pygments BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
Requires: python-setuptools
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pygments
Requires: python-setuptools
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -43,18 +44,19 @@ An ANSI color-code highlighting lexer for Pygments.
%setup -q -n pygments-ansi-color-%{version} %setup -q -n pygments-ansi-color-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v %pytest
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%{python_sitelib}/* %{python_sitelib}/pygments[-_]ansi[-_]color
%{python_sitelib}/pygments[-_]ansi[-_]color-%{version}*-info
%changelog %changelog