Use the provisional pyproject declarative buildsystem
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user