[packages/python3-pytest-rerunfailures] - python-pytest-rerunfailures.spec updated to 9.1.1 (for python 3.5+/pytest 5 .. 6.1) as python3-pyt

qboosh qboosh at pld-linux.org
Fri Feb 5 17:33:10 CET 2021


commit 57f4d70c1f93a4541e26d6c04fec33292d49d6b9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Feb 5 17:33:31 2021 +0100

    - python-pytest-rerunfailures.spec updated to 9.1.1 (for python 3.5+/pytest 5 .. 6.1) as python3-pytest-rerunfailures.spec

 python-pytest-rerunfailures.spec  | 118 --------------------------------------
 python3-pytest-rerunfailures.spec |  61 ++++++++++++++++++++
 2 files changed, 61 insertions(+), 118 deletions(-)
---
diff --git a/python-pytest-rerunfailures.spec b/python-pytest-rerunfailures.spec
deleted file mode 100644
index b039558..0000000
--- a/python-pytest-rerunfailures.spec
+++ /dev/null
@@ -1,118 +0,0 @@
-#
-# 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: keep 8.x here for python2/pytest 4.x support
-Version:	8.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:	565b70f1d9f0e3b996724d47fdcbb238
-URL:		https://pypi.org/project/pytest-rerunfailures/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-mock
-BuildRequires:	python-pytest >= 4.4
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-pytest >= 4.4
-BuildRequires:	python3-pytest < 5.3
-%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.5
-
-%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
diff --git a/python3-pytest-rerunfailures.spec b/python3-pytest-rerunfailures.spec
new file mode 100644
index 0000000..1b08c0b
--- /dev/null
+++ b/python3-pytest-rerunfailures.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+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:		python3-pytest-rerunfailures
+Version:	9.1.1
+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:	fe21612be35d540dd7ddd4a715f6f7f0
+URL:		https://pypi.org/project/pytest-rerunfailures/
+BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	python3-setuptools >= 40.0
+%if %{with tests}
+BuildRequires:	python3-pytest >= 5.0
+BuildRequires:	python3-pytest < 6.2
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.5
+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.
+
+%prep
+%setup -q -n pytest-rerunfailures-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_rerunfailures" \
+%{__python3} -m pytest test_pytest_rerunfailures.py
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-rerunfailures.git/commitdiff/57f4d70c1f93a4541e26d6c04fec33292d49d6b9



More information about the pld-cvs-commit mailing list