45913ed
%global pypi_name pytest-subtests
45913ed
45913ed
Name:           python-%{pypi_name}
45913ed
Version:        0.3.0
45913ed
Release:        1%{?dist}
45913ed
Summary:        Support for unittest subTest() and subtests fixture
45913ed
45913ed
License:        MIT
45913ed
URL:            https://github.com/pytest-dev/pytest-subtests
45913ed
Source0:        %{pypi_source}
45913ed
BuildArch:      noarch
45913ed
45913ed
%description
45913ed
pytest-subtests unittest subTest() support and subtests fixture.
45913ed
45913ed
%package -n     python3-%{pypi_name}
45913ed
Summary:        %{summary}
45913ed
45913ed
BuildRequires:  python3-devel
45913ed
BuildRequires:  python3-pytest
45913ed
BuildRequires:  python3-setuptools
45913ed
BuildRequires:  python3-setuptools_scm
45913ed
%{?python_provide:%python_provide python3-%{pypi_name}}
45913ed
 
45913ed
%description -n python3-%{pypi_name}
45913ed
pytest-subtests unittest subTest() support and subtests fixture.
45913ed
45913ed
%prep
45913ed
%autosetup -n %{pypi_name}-%{version}
45913ed
rm -rf %{pypi_name}.egg-info
45913ed
45913ed
%build
45913ed
%py3_build
45913ed
45913ed
%install
45913ed
%py3_install
45913ed
45913ed
%check
45913ed
# https://github.com/pytest-dev/pytest-subtests/issues/21
45913ed
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=%{buildroot}%{python3_sitelib} \
45913ed
  pytest-%{python3_version} -v tests \
45913ed
  -k "not TestFixture and not TestCapture and not test_simple_terminal"
45913ed
45913ed
%files -n python3-%{pypi_name}
45913ed
%license LICENSE
45913ed
%doc README.rst
45913ed
%{python3_sitelib}/__pycache__/*
45913ed
%{python3_sitelib}/pytest_subtests.py
45913ed
%{python3_sitelib}/pytest_subtests-%{version}-py*.egg-info/
45913ed
45913ed
%changelog
45913ed
* Mon Mar 23 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.0-1
45913ed
- Initial package for Fedora