From edae475603b260ffe33e4f5aa75335eeb7d75c67 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Wed, 7 Jun 2023 21:35:12 +0000 Subject: [PATCH] Use pyproject-rpm-macros This replaces %py3_build and %py3_install that rely on deprecated setuptools functionality. --- python-pathspec.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/python-pathspec.spec b/python-pathspec.spec index b2a3b8f..9d5deb2 100644 --- a/python-pathspec.spec +++ b/python-pathspec.spec @@ -9,7 +9,6 @@ Source0: %{pypi_source pathspec} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-setuptools BuildRequires: python3-pytest @@ -32,23 +31,26 @@ is derived from Rsync's wildmatch. Git uses wildmatch for its gitignore files. %autosetup -n pathspec-%{version} +%generate_buildrequires +%pyproject_buildrequires + + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files pathspec %check %pytest -%files -n python3-pathspec +%files -n python3-pathspec -f %{pyproject_files} %doc README.rst %license LICENSE -%{python3_sitelib}/pathspec -%{python3_sitelib}/pathspec-%{version}-py%{python3_version}.egg-info %changelog