Use pyproject-rpm-macros
This replaces %py3_build and %py3_install that rely on deprecated setuptools functionality.
This commit is contained in:
parent
6672bb2e7a
commit
edae475603
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user