3 %bcond_with tests # unit tests (tox required)
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Plugin for nose or pytest that automatically reruns flaky tests
8 Summary(pl.UTF-8): Wtyczka dla nose lub pytesta automatycznie uruchamiająca ponownie niepewne testy
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/flaky/
15 Source0: https://files.pythonhosted.org/packages/source/f/flaky/flaky-%{version}.tar.gz
16 # Source0-md5: 7427c11cd74e8851f1d7bf2690b646b5
17 URL: https://pypi.org/project/flaky/
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
22 BuildRequires: python-pytest
23 BuildRequires: python-tox
27 BuildRequires: python3-modules >= 1:3.4
28 BuildRequires: python3-setuptools
30 BuildRequires: python3-pytest
31 BuildRequires: python3-tox
34 BuildRequires: rpm-pythonprov
35 BuildRequires: rpmbuild(macros) >= 1.714
36 Requires: python-modules >= 1:2.7
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Flaky is a plugin for nose or pytest that automatically reruns flaky
44 Ideally, tests reliably pass or fail, but sometimes test fixtures must
45 rely on components that aren't 100% reliable. With flaky, instead of
46 removing those tests or marking them to @skip, they can be
47 automatically retried.
49 %description -l pl.UTF-8
50 Flaky to wtyczka dla nose lub pytesta automatycznie uruchamiająca
51 ponownie niepewne testy.
53 Idealnie testy powinny deterministycznie powodzić się lub nie, ale
54 czasem wypozażenia testów muszą polegać na komponentach nie w pełni
55 deterministycznych. Przy pomocy modułu flaky, zamiast usuwania tych
56 testów lub oznaczania ich @skip, można je automatycznie ponowić.
58 %package -n python3-flaky
59 Summary: Plugin for nose or pytest that automatically reruns flaky tests
60 Summary(pl.UTF-8): Wtyczka dla nose lub pytesta automatycznie uruchamiająca ponownie niepewne testy
61 Group: Libraries/Python
62 Requires: python3-modules >= 1:3.4
64 %description -n python3-flaky
65 Flaky is a plugin for nose or pytest that automatically reruns flaky
68 Ideally, tests reliably pass or fail, but sometimes test fixtures must
69 rely on components that aren't 100% reliable. With flaky, instead of
70 removing those tests or marking them to @skip, they can be
71 automatically retried.
73 %description -n python3-flaky -l pl.UTF-8
74 Flaky to wtyczka dla nose lub pytesta automatycznie uruchamiająca
75 ponownie niepewne testy.
77 Idealnie testy powinny deterministycznie powodzić się lub nie, ale
78 czasem wypozażenia testów muszą polegać na komponentach nie w pełni
79 deterministycznych. Przy pomocy modułu flaky, zamiast usuwania tych
80 testów lub oznaczania ich @skip, można je automatycznie ponowić.
83 %setup -q -n flaky-%{version}
87 %py_build %{?with_tests:test}
91 %py3_build %{?with_tests:test}
95 rm -rf $RPM_BUILD_ROOT
108 rm -rf $RPM_BUILD_ROOT
112 %defattr(644,root,root,755)
114 %{py_sitescriptdir}/flaky
115 %{py_sitescriptdir}/flaky-%{version}-py*.egg-info
119 %files -n python3-flaky
120 %defattr(644,root,root,755)
122 %{py3_sitescriptdir}/flaky
123 %{py3_sitescriptdir}/flaky-%{version}-py*.egg-info