Accepting request 787374 from devel:languages:python:pytest

- 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/request/show/787374
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-rerunfailures?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2020-03-23 11:51:58 +00:00 committed by Git OBS Bridge
commit 9638ec3dce
4 changed files with 18 additions and 8 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:17c1236b9f8463f74a5df6c807f301c53c2ea1ab81b7509b7e23fab3b7cbe812
size 13207

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:895ac2a6486c0da0468ae31768b818d9f3f7fceddef110970c7dbb09e7b4b8e4
size 10023

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Mar 23 09:00:46 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- 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 <tchvatal@suse.com> Wed Dec 4 11:57:57 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-rerunfailures # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,8 +17,9 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pytest-rerunfailures Name: python-pytest-rerunfailures
Version: 8.0 Version: 9.0
Release: 0 Release: 0
Summary: A pytest plugin to re-run tests Summary: A pytest plugin to re-run tests
License: MPL-2.0 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: %{python_module setuptools >= 40.0}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-pytest >= 4.4 Requires: python-pytest >= 5.0
Requires: python-setuptools >= 40.0 Requires: python-setuptools >= 40.0
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module pytest >= 4.4} BuildRequires: %{python_module pytest >= 5.0}
BuildRequires: python-mock
# /SECTION # /SECTION
%python_subpackages %python_subpackages
@ -42,6 +42,8 @@ tests to eliminate intermittent failures.
%prep %prep
%setup -q -n pytest-rerunfailures-%{version} %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 %build
%python_build %python_build