6be9fcd
%global srcname pytest-repeat
6be9fcd
6be9fcd
Name:           python-%{srcname}
c0a1baa
Version:        0.9.1
43b41db
Release:        5%{?dist}
6be9fcd
Summary:        A pytest plugin for repeating test execution
6be9fcd
6be9fcd
License:        MPLv2.0
6be9fcd
URL:            https://github.com/pytest-dev/%{srcname}
6be9fcd
Source0:        https://github.com/pytest-dev/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
6be9fcd
6be9fcd
BuildArch:      noarch
6be9fcd
6be9fcd
%description
6be9fcd
pytest-repeat is a plugin for py.test that makes it easy to repeat a single
6be9fcd
test, or multiple tests, a specific number of times.
6be9fcd
6be9fcd
6be9fcd
%package -n python%{python3_pkgversion}-%{srcname}
6be9fcd
Summary:        %{summary}
6be9fcd
BuildRequires:  python%{python3_pkgversion}-devel
3772015
BuildRequires:  python%{python3_pkgversion}-setuptools
4d0cfa7
BuildRequires:  python%{python3_pkgversion}-pytest >= 3.6
6be9fcd
BuildRequires:  python%{python3_pkgversion}-setuptools_scm
4d0cfa7
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
6be9fcd
c0a1baa
%if %{undefined __pythondist_requires}
4d0cfa7
Requires:       python%{python3_pkgversion}-pytest >= 3.6
c0a1baa
%endif
6be9fcd
6be9fcd
%description -n python%{python3_pkgversion}-%{srcname}
6be9fcd
pytest-repeat is a plugin for py.test that makes it easy to repeat a single
6be9fcd
test, or multiple tests, a specific number of times.
6be9fcd
6be9fcd
6be9fcd
%prep
c0a1baa
%autosetup -n %{srcname}-%{version}
6be9fcd
6be9fcd
6be9fcd
%build
6be9fcd
SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %py3_build
6be9fcd
6be9fcd
6be9fcd
%install
6be9fcd
SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %py3_install
6be9fcd
6be9fcd
6be9fcd
%check
6be9fcd
PYTHONPATH=%{buildroot}%{python3_sitelib} \
6be9fcd
  py.test-%{python3_version} test_repeat.py
6be9fcd
6be9fcd
6be9fcd
%files -n python%{python3_pkgversion}-%{srcname}
6be9fcd
%license LICENSE
6be9fcd
%doc CHANGES.rst README.rst
6be9fcd
%{python3_sitelib}/pytest_repeat.py
6be9fcd
%{python3_sitelib}/__pycache__/pytest_repeat.cpython-*
6be9fcd
%{python3_sitelib}/pytest_repeat-%{version}-py%{python3_version}.egg-info/
6be9fcd
6be9fcd
6be9fcd
%changelog
43b41db
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-5
43b41db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
43b41db
01bdabc
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-4
01bdabc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
01bdabc
7d9b70d
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.9.1-3
7d9b70d
- Rebuilt for Python 3.10
7d9b70d
388ef58
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
388ef58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
388ef58
c0a1baa
* Mon Nov 02 2020 Scott K Logan <logans@cottsay.net> - 0.9.1-1
c0a1baa
- Update to 0.9.1 (rhbz#1893400)
c0a1baa
edc36bf
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-7
edc36bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
edc36bf
27fd11e
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-6
27fd11e
- Rebuilt for Python 3.9
27fd11e
267fc8a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-5
267fc8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
267fc8a
2528914
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-4
2528914
- Rebuilt for Python 3.8.0rc1 (#1748018)
2528914
03f31f7
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-3
03f31f7
- Rebuilt for Python 3.8
03f31f7
8aea338
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
8aea338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8aea338
4d0cfa7
* Mon Mar 18 2019 Scott K Logan <logans@cottsay.net> - 0.8.0-1
4d0cfa7
- Update to 0.8.0
4d0cfa7
- Require pytest 3.6
4d0cfa7
- Drop python3_other subpackage
4d0cfa7
6be9fcd
* Tue Feb 12 2019 Scott K Logan <logans@cottsay.net> - 0.7.0-1
6be9fcd
- Initial package