From 0aab1e9ddf62c37c0c5d0b82de43473738cd71ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 20 Nov 2023 16:59:29 +0100 Subject: [PATCH] Convert to pyproject-rpm-macros --- python-pluggy.spec | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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