]> git.pld-linux.org Git - packages/python3-pytest-rerunfailures.git/blame - python3-pytest-rerunfailures.spec
- python-pytest-rerunfailures.spec updated to 9.1.1 (for python 3.5+/pytest 5 .....
[packages/python3-pytest-rerunfailures.git] / python3-pytest-rerunfailures.spec
CommitLineData
57f4d70c
JB
1#
2# Conditional build:
3%bcond_without tests # unit tests
4
5Summary: pytest plugin to re-run tests to eliminate flaky failures
6Summary(pl.UTF-8): Wtyczka pytesta do ponownego uruchamiania testów w celu wyeliminowania chwilowych niepowodzeń
7Name: python3-pytest-rerunfailures
8Version: 9.1.1
9Release: 1
10License: MPL v2.0
11Group: Libraries/Python
12#Source0Download: https://pypi.org/simple/pytest-rerunfailures/
13Source0: https://files.pythonhosted.org/packages/source/p/pytest-rerunfailures/pytest-rerunfailures-%{version}.tar.gz
14# Source0-md5: fe21612be35d540dd7ddd4a715f6f7f0
15URL: https://pypi.org/project/pytest-rerunfailures/
16BuildRequires: python3-modules >= 1:3.5
17BuildRequires: python3-setuptools >= 40.0
18%if %{with tests}
19BuildRequires: python3-pytest >= 5.0
20BuildRequires: python3-pytest < 6.2
21%endif
22BuildRequires: rpm-pythonprov
23BuildRequires: rpmbuild(macros) >= 1.714
24Requires: python3-modules >= 1:3.5
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29pytest-rerunfailures is a plugin for py.test that re-runs tests to
30eliminate intermittent failures.
31
32%description -l pl.UTF-8
33pytest-rerunfailures to wtyczka modułu py.test uruchamiająca ponownie
34testy, aby wyeliminować chwilowe niepowodzenia.
35
36%prep
37%setup -q -n pytest-rerunfailures-%{version}
38
39%build
40%py3_build
41
42%if %{with tests}
43PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
44PYTEST_PLUGINS="pytest_rerunfailures" \
45%{__python3} -m pytest test_pytest_rerunfailures.py
46%endif
47
48%install
49rm -rf $RPM_BUILD_ROOT
50
51%py3_install
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files
57%defattr(644,root,root,755)
58%doc CHANGES.rst LICENSE README.rst
59%{py3_sitescriptdir}/pytest_rerunfailures.py
60%{py3_sitescriptdir}/__pycache__/pytest_rerunfailures.cpython-*.py[co]
61%{py3_sitescriptdir}/pytest_rerunfailures-%{version}-py*.egg-info
This page took 0.107204 seconds and 4 git commands to generate.