From 7e780ae3b63f0ec2cdbddab407d1c3a7f6051bc125949bce999b45771034406c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 05:39:06 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-accessible-pygments?expand=0&rev=8 --- python-accessible-pygments.changes | 5 +++++ python-accessible-pygments.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-accessible-pygments.changes b/python-accessible-pygments.changes index b5ae4b3..bd999b2 100644 --- a/python-accessible-pygments.changes +++ b/python-accessible-pygments.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 13 05:35:04 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Tue Sep 24 18:26:05 UTC 2024 - ecsos diff --git a/python-accessible-pygments.spec b/python-accessible-pygments.spec index 140fd0e..f319a64 100644 --- a/python-accessible-pygments.spec +++ b/python-accessible-pygments.spec @@ -1,7 +1,7 @@ # # spec file for package python-accessible-pygments # -# 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,8 +25,10 @@ Summary: A collection of accessible pygments styles License: BSD-3-Clause URL: https://github.com/Quansight-Labs/accessible-pygments Source: https://github.com/Quansight-Labs/accessible-pygments/archive/refs/tags/v%{version}.tar.gz#/accessible-pygments-%{version}-gh.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pygments >= 1.5 @@ -43,10 +45,10 @@ A collection of accessible pygments styles %setup -q -n accessible-pygments-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand rm -rf %{buildroot}%{$python_sitelib}/test %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -58,6 +60,6 @@ export PYTHONPATH=$PWD %doc README.md %license LICENSE %{python_sitelib}/a11y_pygments -%{python_sitelib}/accessible_pygments-%{version}*-info +%{python_sitelib}/accessible_pygments-%{version}.dist-info %changelog