|
|
b67df0 |
%global pypi_name flaky
|
|
|
b67df0 |
Name: python-%{pypi_name}
|
|
|
b67df0 |
Version: 3.7.0
|
|
|
b67df0 |
Release: 2%{?dist}
|
|
|
b67df0 |
Summary: Plugin for nose or py.test that automatically reruns flaky tests
|
|
|
b67df0 |
License: ASL 2.0
|
|
|
b67df0 |
URL: https://github.com/box/flaky
|
|
|
b67df0 |
|
|
|
b67df0 |
Source0: %{pypi_source}
|
|
|
b67df0 |
BuildArch: noarch
|
|
|
b67df0 |
|
|
|
b67df0 |
BuildRequires: python3-devel
|
|
|
b67df0 |
BuildRequires: python3dist(genty)
|
|
|
b67df0 |
BuildRequires: python3dist(nose)
|
|
|
b67df0 |
BuildRequires: python3dist(pytest)
|
|
|
b67df0 |
BuildRequires: python3dist(setuptools)
|
|
|
b67df0 |
|
|
|
b67df0 |
%description
|
|
|
b67df0 |
Flaky is a plugin for nose or py.test that automatically reruns flaky
|
|
|
b67df0 |
tests. Ideally, tests reliably pass or fail, but sometimes test fixtures must
|
|
|
b67df0 |
rely on components that aren't 100% reliable. With flaky, instead of removing
|
|
|
b67df0 |
those tests or marking them to @skip, they can be automatically retried.
|
|
|
b67df0 |
|
|
|
b67df0 |
|
|
|
b67df0 |
%package -n python3-%{pypi_name}
|
|
|
b67df0 |
Summary: %{summary}
|
|
|
b67df0 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
b67df0 |
Requires: python3dist(setuptools)
|
|
|
b67df0 |
|
|
|
b67df0 |
%description -n python3-%{pypi_name}
|
|
|
b67df0 |
Flaky is a plugin for nose or py.test that automatically reruns flaky
|
|
|
b67df0 |
tests. Ideally, tests reliably pass or fail, but sometimes test fixtures must
|
|
|
b67df0 |
rely on components that aren't 100% reliable. With flaky, instead of removing
|
|
|
b67df0 |
those tests or marking them to @skip, they can be automatically retried.
|
|
|
b67df0 |
|
|
|
b67df0 |
|
|
|
b67df0 |
%prep
|
|
|
b67df0 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
b67df0 |
|
|
|
b67df0 |
# Use mock from standard library:
|
|
|
b67df0 |
sed -i -e 's/import mock/from unittest import mock/' \
|
|
|
b67df0 |
-e 's/from mock/from unittest.mock/' \
|
|
|
b67df0 |
test/test_*/test_*.py
|
|
|
b67df0 |
|
|
|
b67df0 |
|
|
|
b67df0 |
%build
|
|
|
b67df0 |
%py3_build
|
|
|
b67df0 |
|
|
|
b67df0 |
|
|
|
b67df0 |
%install
|
|
|
b67df0 |
%py3_install
|
|
|
b67df0 |
|
|
|
b67df0 |
|
|
|
b67df0 |
%check
|
|
|
b67df0 |
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
b67df0 |
# adapted from upstream's tox.ini
|
|
|
b67df0 |
%{__python3} -m nose -v --with-flaky --exclude="test_nose_options_example" test/test_nose/
|
|
|
b67df0 |
%{__python3} -m pytest -v -k 'example and not options' --doctest-modules test/test_pytest/
|
|
|
b67df0 |
%{__python3} -m pytest -v -k 'example and not options' test/test_pytest/
|
|
|
b67df0 |
%{__python3} -m pytest -v -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py
|
|
|
b67df0 |
%{__python3} -m nose -v --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py
|
|
|
b67df0 |
%{__python3} -m pytest -v --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py
|
|
|
b67df0 |
|
|
|
b67df0 |
|
|
|
b67df0 |
%files -n python3-%{pypi_name}
|
|
|
b67df0 |
%license LICENSE
|
|
|
b67df0 |
%doc README.rst
|
|
|
b67df0 |
%{python3_sitelib}/%{pypi_name}
|
|
|
b67df0 |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
|
b67df0 |
|
|
|
b67df0 |
|
|
|
b67df0 |
%changelog
|
|
|
b67df0 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.0-2
|
|
|
b67df0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
b67df0 |
|
|
|
b67df0 |
* Wed Sep 23 2020 Tomas Hrnciar <thrnciar@redhat.com> - 3.7.0-1
|
|
|
b67df0 |
- Update to 3.7.0
|
|
|
b67df0 |
|
|
|
b67df0 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-3
|
|
|
b67df0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
b67df0 |
|
|
|
b67df0 |
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 3.6.1-2
|
|
|
b67df0 |
- Rebuilt for Python 3.9
|
|
|
b67df0 |
|
|
|
b67df0 |
* Wed Mar 11 2020 Tomas Hrnciar <thrnciar@redhat.com> - 3.6.1-1
|
|
|
b67df0 |
- Update to 3.6.1
|
|
|
b67df0 |
|
|
|
b67df0 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.3-5
|
|
|
b67df0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
b67df0 |
|
|
|
b67df0 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.3-4
|
|
|
b67df0 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
b67df0 |
|
|
|
b67df0 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.3-3
|
|
|
b67df0 |
- Rebuilt for Python 3.8
|
|
|
b67df0 |
|
|
|
b67df0 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.3-2
|
|
|
b67df0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
b67df0 |
|
|
|
b67df0 |
* Tue Apr 30 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.3-1
|
|
|
b67df0 |
- Update to 3.5.3
|
|
|
b67df0 |
|
|
|
b67df0 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-2
|
|
|
b67df0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
b67df0 |
|
|
|
b67df0 |
* Mon Jul 30 2018 Miro Hrončok <mhroncok@redhat.com> - 3.4.0-1
|
|
|
b67df0 |
- Initial package
|