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