From bb3e530fdb2bf224429efdf04e69becf703b97fc Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Mon, 7 Jul 2025 21:54:03 -0400 Subject: [PATCH] Use the provisional pyproject declarative buildsystem --- python-pytest-subtests.spec | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/python-pytest-subtests.spec b/python-pytest-subtests.spec index 70ead4a..5ff2d8f 100644 --- a/python-pytest-subtests.spec +++ b/python-pytest-subtests.spec @@ -8,9 +8,11 @@ License: MIT URL: https://github.com/pytest-dev/pytest-subtests Source: %{pypi_source pytest_subtests} -BuildArch: noarch +BuildSystem: pyproject +BuildOption(install): -l pytest_subtests +BuildOption(generate_buildrequires): -t -BuildRequires: python3-devel +BuildArch: noarch %description pytest-subtests unittest subTest() support and subtests fixture. @@ -23,24 +25,7 @@ Summary: %{summary} %{summary}. -%prep -%autosetup -n pytest_subtests-%{version} - - -%generate_buildrequires -%pyproject_buildrequires -t - - -%build -%pyproject_wheel - - -%install -%pyproject_install -%pyproject_save_files -l pytest_subtests - - -%check +%check -a %tox -- -- -rs -v tests