diff --git a/python-pluggy.spec b/python-pluggy.spec index 28d3ccb..9cdef22 100644 --- a/python-pluggy.spec +++ b/python-pluggy.spec @@ -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