From 2052f26b7754237ef30e73874983b49a139b6a8de69a44ee4fdf073c6d4cbf32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 23 Mar 2020 09:06:38 +0000 Subject: [PATCH] - Update to 9.0: * Add support for pytest 5.4. * Add support for Python 3.8. * Drop support for python 2.7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-rerunfailures?expand=0&rev=11 --- pytest-rerunfailures-8.0.tar.gz | 3 --- pytest-rerunfailures-9.0.tar.gz | 3 +++ python-pytest-rerunfailures.changes | 8 ++++++++ python-pytest-rerunfailures.spec | 12 +++++++----- 4 files changed, 18 insertions(+), 8 deletions(-) delete mode 100644 pytest-rerunfailures-8.0.tar.gz create mode 100644 pytest-rerunfailures-9.0.tar.gz diff --git a/pytest-rerunfailures-8.0.tar.gz b/pytest-rerunfailures-8.0.tar.gz deleted file mode 100644 index 9816380..0000000 --- a/pytest-rerunfailures-8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:17c1236b9f8463f74a5df6c807f301c53c2ea1ab81b7509b7e23fab3b7cbe812 -size 13207 diff --git a/pytest-rerunfailures-9.0.tar.gz b/pytest-rerunfailures-9.0.tar.gz new file mode 100644 index 0000000..9ddab29 --- /dev/null +++ b/pytest-rerunfailures-9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:895ac2a6486c0da0468ae31768b818d9f3f7fceddef110970c7dbb09e7b4b8e4 +size 10023 diff --git a/python-pytest-rerunfailures.changes b/python-pytest-rerunfailures.changes index 450b9c0..77dd103 100644 --- a/python-pytest-rerunfailures.changes +++ b/python-pytest-rerunfailures.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Mar 23 09:00:46 UTC 2020 - Tomáš Chvátal + +- Update to 9.0: + * Add support for pytest 5.4. + * Add support for Python 3.8. + * Drop support for python 2.7 + ------------------------------------------------------------------- Wed Dec 4 11:57:57 UTC 2019 - Tomáš Chvátal diff --git a/python-pytest-rerunfailures.spec b/python-pytest-rerunfailures.spec index 3abadcd..bd1d47b 100644 --- a/python-pytest-rerunfailures.spec +++ b/python-pytest-rerunfailures.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-rerunfailures # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,8 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-pytest-rerunfailures -Version: 8.0 +Version: 9.0 Release: 0 Summary: A pytest plugin to re-run tests License: MPL-2.0 @@ -27,12 +28,11 @@ Source: https://files.pythonhosted.org/packages/source/p/pytest-rerunfai BuildRequires: %{python_module setuptools >= 40.0} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-pytest >= 4.4 +Requires: python-pytest >= 5.0 Requires: python-setuptools >= 40.0 BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module pytest >= 4.4} -BuildRequires: python-mock +BuildRequires: %{python_module pytest >= 5.0} # /SECTION %python_subpackages @@ -42,6 +42,8 @@ tests to eliminate intermittent failures. %prep %setup -q -n pytest-rerunfailures-%{version} +# do not depend on mock https://github.com/pytest-dev/pytest-rerunfailures/pull/107 +sed -i -e 's:import mock:from unittest import mock:g' test_pytest_rerunfailures.py %build %python_build