[packages/python-pytest-rerunfailures] - initial
qboosh
qboosh at pld-linux.org
Wed Feb 3 22:05:36 CET 2021
commit e1dbc2715015c32cce1ef765df9236d7e92ed4ce
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Feb 3 22:05:52 2021 +0100
- initial
python-pytest-rerunfailures.spec | 120 +++++++++++++++++++++++++++++++++++++++
1 file changed, 120 insertions(+)
---
diff --git a/python-pytest-rerunfailures.spec b/python-pytest-rerunfailures.spec
new file mode 100644
index 0000000..df68836
--- /dev/null
+++ b/python-pytest-rerunfailures.spec
@@ -0,0 +1,120 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: pytest plugin to re-run tests to eliminate flaky failures
+Summary(pl.UTF-8): Wtyczka pytesta do ponownego uruchamiania testów w celu wyeliminowania chwilowych niepowodzeń
+Name: python-pytest-rerunfailures
+# NOTE:
+# 7.0 for pytest 3.10 through 4.3 (python 2.7, 3.4+)
+# 8.0 for pytest 4.4 through 5.2 (python 2.7, 3.5+)
+# 9.x for pytest 5 through 6.1 (python 3.5+ only)
+Version: 7.0
+Release: 1
+License: MPL v2.0
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-rerunfailures/
+Source0: https://files.pythonhosted.org/packages/source/p/pytest-rerunfailures/pytest-rerunfailures-%{version}.tar.gz
+# Source0-md5: 898c15d1c99f85d9c48005dd380fa3fe
+URL: https://pypi.org/project/pytest-rerunfailures/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-pytest >= 3.10
+%endif
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.4
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest >= 3.10
+BuildRequires: python3-pytest < 5
+%endif
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.7
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pytest-rerunfailures is a plugin for py.test that re-runs tests to
+eliminate intermittent failures.
+
+%description -l pl.UTF-8
+pytest-rerunfailures to wtyczka modułu py.test uruchamiająca ponownie
+testy, aby wyeliminować chwilowe niepowodzenia.
+
+%package -n python3-pytest-rerunfailures
+Summary: pytest plugin to re-run tests to eliminate flaky failures
+Summary(pl.UTF-8): Wtyczka pytesta do ponownego uruchamiania testów w celu wyeliminowania chwilowych niepowodzeń
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.4
+
+%description -n python3-pytest-rerunfailures
+pytest-rerunfailures is a plugin for py.test that re-runs tests to
+eliminate intermittent failures.
+
+%description -n python3-pytest-rerunfailures -l pl.UTF-8
+pytest-rerunfailures to wtyczka modułu py.test uruchamiająca ponownie
+testy, aby wyeliminować chwilowe niepowodzenia.
+
+%prep
+%setup -q -n pytest-rerunfailures-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_rerunfailures" \
+%{__python} -m pytest test_pytest_rerunfailures.py
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_rerunfailures" \
+%{__python3} -m pytest test_pytest_rerunfailures.py
+%endif
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.rst LICENSE README.rst
+%{py_sitescriptdir}/pytest_rerunfailures.py[co]
+%{py_sitescriptdir}/pytest_rerunfailures-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-pytest-rerunfailures
+%defattr(644,root,root,755)
+%doc CHANGES.rst LICENSE README.rst
+%{py3_sitescriptdir}/pytest_rerunfailures.py
+%{py3_sitescriptdir}/__pycache__/pytest_rerunfailures.cpython-*.py[co]
+%{py3_sitescriptdir}/pytest_rerunfailures-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pytest-rerunfailures.git/commitdiff/e1dbc2715015c32cce1ef765df9236d7e92ed4ce
More information about the pld-cvs-commit
mailing list