53 lines
1.3 KiB
RPMSpec
53 lines
1.3 KiB
RPMSpec
%global pypi_name pytest-subtests
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 0.13.1
|
|
Release: %autorelease
|
|
Summary: Support for unittest subTest() and subtests fixture
|
|
|
|
# SPDX
|
|
License: MIT
|
|
URL: https://github.com/pytest-dev/pytest-subtests
|
|
Source0: %{pypi_source pytest_subtests}
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
pytest-subtests unittest subTest() support and subtests fixture.
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: %{summary}
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3dist(pytest)
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
%description -n python3-%{pypi_name}
|
|
pytest-subtests unittest subTest() support and subtests fixture.
|
|
|
|
%prep
|
|
%autosetup -n pytest_subtests-%{version}
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires -r
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files pytest_subtests
|
|
|
|
%check
|
|
# https://github.com/pytest-dev/pytest-subtests/issues/21
|
|
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
|
pytest-%{python3_version} -v tests \
|
|
-k "not TestFixture and not TestCapture and not test_simple_terminal"
|
|
|
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
%doc CHANGELOG.rst README.rst
|
|
%license LICENSE
|
|
|
|
%changelog
|
|
%autochangelog
|