Convert to pyproject-rpm-macros
This commit is contained in:
parent
98bf2c6027
commit
0aab1e9ddf
@ -15,9 +15,9 @@ Source: %{pypi_source pluggy}
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-setuptools_scm
|
||||
|
||||
%if %{with tests}
|
||||
# the [testing] extra includes benchmarking dependencies
|
||||
BuildRequires: python3-pytest
|
||||
%endif
|
||||
|
||||
@ -36,12 +36,18 @@ Summary: %summary
|
||||
%autosetup -p1 -n pluggy-%{version}
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
%pyproject_save_files pluggy
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
@ -49,11 +55,8 @@ Summary: %summary
|
||||
%endif
|
||||
|
||||
|
||||
%files -n python3-pluggy
|
||||
%{python3_sitelib}/pluggy/
|
||||
%{python3_sitelib}/pluggy-%{version}-py%{python3_version}.egg-info/
|
||||
%files -n python3-pluggy -f %{pyproject_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
|
||||
|
||||
%changelog
|
||||
|
||||
Loading…
Reference in New Issue
Block a user