Hello community,
here is the log from the commit of package python-pytest-rerunfailures for
openSUSE:Factory checked in at 2020-03-23 12:51:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-rerunfailures (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-rerunfailures.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-rerunfailures"
Mon Mar 23 12:51:58 2020 rev:5 rq:787374 version:9.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-rerunfailures/python-pytest-rerunfailures.changes
2019-12-04 14:21:13.174480596 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-rerunfailures.new.3160/python-pytest-rerunfailures.changes
2020-03-23 12:53:10.492054918 +0100
@@ -1,0 +2,8 @@
+Mon Mar 23 09:00:46 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Update to 9.0:
+ * Add support for pytest 5.4.
+ * Add support for Python 3.8.
+ * Drop support for python 2.7
+
+-------------------------------------------------------------------
Old:
----
pytest-rerunfailures-8.0.tar.gz
New:
----
pytest-rerunfailures-9.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-rerunfailures.spec ++++++
--- /var/tmp/diff_new_pack.lVm3sN/_old 2020-03-23 12:53:11.964055842 +0100
+++ /var/tmp/diff_new_pack.lVm3sN/_new 2020-03-23 12:53:11.992055860 +0100
@@ -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 @@
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 @@
%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
++++++ pytest-rerunfailures-8.0.tar.gz -> pytest-rerunfailures-9.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-8.0/.gitignore
new/pytest-rerunfailures-9.0/.gitignore
--- old/pytest-rerunfailures-8.0/.gitignore 2019-11-18 15:14:01.000000000
+0100
+++ new/pytest-rerunfailures-9.0/.gitignore 1970-01-01 01:00:00.000000000
+0100
@@ -1,13 +0,0 @@
-*.pyc
-*egg*
-.DS_Store
-.Python
-.cache/
-.idea/
-.python-version
-.tox*
-bin/
-build/*
-include/
-lib/
-pip-selfcheck.json
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-8.0/.travis.yml
new/pytest-rerunfailures-9.0/.travis.yml
--- old/pytest-rerunfailures-8.0/.travis.yml 2019-11-18 15:14:01.000000000
+0100
+++ new/pytest-rerunfailures-9.0/.travis.yml 1970-01-01 01:00:00.000000000
+0100
@@ -1,45 +0,0 @@
-language: python
-dist: xenial
-sudo: true
-python:
- - 2.7
- - 3.5
- - 3.6
- - 3.7
- - 3.7-dev
- - pypy2.7-5.10.0
- - pypy3.5
-env:
- - PYTEST=4.4.2
- - PYTEST=4.5.0
- - PYTEST=4.6.6
-matrix:
- include:
- - python: 3.5
- env: PYTEST=5.0.1
- - python: 3.6
- env: PYTEST=5.0.1
- - python: 3.7
- env: PYTEST=5.0.1
- - python: pypy3.5
- env: PYTEST=5.0.1
- - python: 3.5
- env: PYTEST=5.1.3
- - python: 3.6
- env: PYTEST=5.1.3
- - python: 3.7
- env: PYTEST=5.1.3
- - python: pypy3.5
- env: PYTEST=5.1.3
- - python: 3.5
- env: PYTEST=5.2.1
- - python: 3.6
- env: PYTEST=5.2.1
- - python: 3.7
- env: PYTEST=5.2.1
- - python: pypy3.5
- env: PYTEST=5.2.1
-install:
- - pip install -q pytest==$PYTEST
- - pip install -q -e .
-script: py.test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-8.0/CHANGES.rst
new/pytest-rerunfailures-9.0/CHANGES.rst
--- old/pytest-rerunfailures-8.0/CHANGES.rst 2019-11-18 15:14:01.000000000
+0100
+++ new/pytest-rerunfailures-9.0/CHANGES.rst 2020-03-18 09:18:08.000000000
+0100
@@ -1,6 +1,25 @@
Changelog
=========
+9.0 (2020-03-18)
+----------------
+
+Backwards incompatible changes
+++++++++++++++++++++++++++++++
+
+- Drop support for pytest version 4.4, 4.5 and 4.6.
+
+- Drop support for Python 2.7.
+
+
+Features
+++++++++
+
+- Add support for pytest 5.4.
+
+- Add support for Python 3.8.
+
+
8.0 (2019-11-18)
----------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-8.0/PKG-INFO
new/pytest-rerunfailures-9.0/PKG-INFO
--- old/pytest-rerunfailures-8.0/PKG-INFO 2019-11-18 15:14:03.000000000
+0100
+++ new/pytest-rerunfailures-9.0/PKG-INFO 2020-03-18 09:18:08.000000000
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pytest-rerunfailures
-Version: 8.0
+Version: 9.0
Summary: pytest plugin to re-run tests to eliminate flaky failures
Home-page: https://github.com/pytest-dev/pytest-rerunfailures
Author: Leah Klearman
@@ -29,8 +29,8 @@
You will need the following prerequisites in order to use
pytest-rerunfailures:
- - Python 2.7, 3.4, 3.5, 3.6, 3.7, PyPy, or PyPy3
- - pytest 4.3 or newer
+ - Python 3.5, up to 3.8, or PyPy3
+ - pytest 5.0 or newer
This package is currently tested against the last 5 minor pytest
releases. In
case you work with an older version of pytest you should consider
updating or
@@ -145,6 +145,25 @@
Changelog
=========
+ 9.0 (2020-03-18)
+ ----------------
+
+ Backwards incompatible changes
+ ++++++++++++++++++++++++++++++
+
+ - Drop support for pytest version 4.4, 4.5 and 4.6.
+
+ - Drop support for Python 2.7.
+
+
+ Features
+ ++++++++
+
+ - Add support for pytest 5.4.
+
+ - Add support for Python 3.8.
+
+
8.0 (2019-11-18)
----------------
@@ -352,9 +371,9 @@
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
-Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-8.0/README.rst
new/pytest-rerunfailures-9.0/README.rst
--- old/pytest-rerunfailures-8.0/README.rst 2019-11-18 15:14:01.000000000
+0100
+++ new/pytest-rerunfailures-9.0/README.rst 2020-03-18 09:18:08.000000000
+0100
@@ -19,8 +19,8 @@
You will need the following prerequisites in order to use pytest-rerunfailures:
-- Python 2.7, 3.4, 3.5, 3.6, 3.7, PyPy, or PyPy3
-- pytest 4.3 or newer
+- Python 3.5, up to 3.8, or PyPy3
+- pytest 5.0 or newer
This package is currently tested against the last 5 minor pytest releases. In
case you work with an older version of pytest you should consider updating or
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-rerunfailures-8.0/pytest_rerunfailures.egg-info/PKG-INFO
new/pytest-rerunfailures-9.0/pytest_rerunfailures.egg-info/PKG-INFO
--- old/pytest-rerunfailures-8.0/pytest_rerunfailures.egg-info/PKG-INFO
2019-11-18 15:14:02.000000000 +0100
+++ new/pytest-rerunfailures-9.0/pytest_rerunfailures.egg-info/PKG-INFO
2020-03-18 09:18:08.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pytest-rerunfailures
-Version: 8.0
+Version: 9.0
Summary: pytest plugin to re-run tests to eliminate flaky failures
Home-page: https://github.com/pytest-dev/pytest-rerunfailures
Author: Leah Klearman
@@ -29,8 +29,8 @@
You will need the following prerequisites in order to use
pytest-rerunfailures:
- - Python 2.7, 3.4, 3.5, 3.6, 3.7, PyPy, or PyPy3
- - pytest 4.3 or newer
+ - Python 3.5, up to 3.8, or PyPy3
+ - pytest 5.0 or newer
This package is currently tested against the last 5 minor pytest
releases. In
case you work with an older version of pytest you should consider
updating or
@@ -145,6 +145,25 @@
Changelog
=========
+ 9.0 (2020-03-18)
+ ----------------
+
+ Backwards incompatible changes
+ ++++++++++++++++++++++++++++++
+
+ - Drop support for pytest version 4.4, 4.5 and 4.6.
+
+ - Drop support for Python 2.7.
+
+
+ Features
+ ++++++++
+
+ - Add support for pytest 5.4.
+
+ - Add support for Python 3.8.
+
+
8.0 (2019-11-18)
----------------
@@ -352,9 +371,9 @@
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
-Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-rerunfailures-8.0/pytest_rerunfailures.egg-info/SOURCES.txt
new/pytest-rerunfailures-9.0/pytest_rerunfailures.egg-info/SOURCES.txt
--- old/pytest-rerunfailures-8.0/pytest_rerunfailures.egg-info/SOURCES.txt
2019-11-18 15:14:03.000000000 +0100
+++ new/pytest-rerunfailures-9.0/pytest_rerunfailures.egg-info/SOURCES.txt
2020-03-18 09:18:08.000000000 +0100
@@ -1,5 +1,3 @@
-.gitignore
-.travis.yml
CHANGES.rst
LICENSE
MANIFEST.in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-rerunfailures-8.0/pytest_rerunfailures.egg-info/requires.txt
new/pytest-rerunfailures-9.0/pytest_rerunfailures.egg-info/requires.txt
--- old/pytest-rerunfailures-8.0/pytest_rerunfailures.egg-info/requires.txt
2019-11-18 15:14:02.000000000 +0100
+++ new/pytest-rerunfailures-9.0/pytest_rerunfailures.egg-info/requires.txt
2020-03-18 09:18:08.000000000 +0100
@@ -1,2 +1,2 @@
setuptools>=40.0
-pytest>=4.4
+pytest>=5.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-8.0/pytest_rerunfailures.py
new/pytest-rerunfailures-9.0/pytest_rerunfailures.py
--- old/pytest-rerunfailures-8.0/pytest_rerunfailures.py 2019-11-18
15:14:01.000000000 +0100
+++ new/pytest-rerunfailures-9.0/pytest_rerunfailures.py 2020-03-18
09:18:08.000000000 +0100
@@ -7,6 +7,7 @@
from _pytest.runner import runtestprotocol
from _pytest.resultlog import ResultLog
+PYTEST_GTE_54 = pkg_resources.parse_version(pytest.__version__) >=
pkg_resources.parse_version("5.4")
def works_with_current_xdist():
"""Returns compatibility with installed pytest-xdist version.
@@ -54,6 +55,24 @@
"between re-runs.")
+def _get_resultlog(config):
+ if PYTEST_GTE_54:
+ # hack
+ from _pytest.resultlog import resultlog_key
+ return config._store.get(resultlog_key, default=None)
+ else:
+ return getattr(config, '_resultlog', None)
+
+
+def _set_resultlog(config, resultlog):
+ if PYTEST_GTE_54:
+ # hack
+ from _pytest.resultlog import resultlog_key
+ config._store[resultlog_key] = resultlog
+ else:
+ config._resultlog = resultlog
+
+
# making sure the options make sense
# should run before / at the begining of pytest_cmdline_main
def check_options(config):
@@ -63,12 +82,14 @@
if config.option.usepdb: # a core option
raise pytest.UsageError("--reruns incompatible with --pdb")
- resultlog = getattr(config, '_resultlog', None)
+
+ resultlog = _get_resultlog(config)
if resultlog:
logfile = resultlog.logfile
config.pluginmanager.unregister(resultlog)
- config._resultlog = RerunResultLog(config, logfile)
- config.pluginmanager.register(config._resultlog)
+ new_resultlog = RerunResultLog(config, logfile)
+ _set_resultlog(config, new_resultlog)
+ config.pluginmanager.register(new_resultlog)
def _get_marker(item):
@@ -131,10 +152,13 @@
for fixture_def_str in getattr(fixture_info, 'name2fixturedefs', ()):
fixture_defs = fixture_info.name2fixturedefs[fixture_def_str]
for fixture_def in fixture_defs:
- if hasattr(fixture_def, cached_result):
+ if getattr(fixture_def, cached_result, None) is not None:
result, cache_key, err = getattr(fixture_def, cached_result)
if err: # Deleting cached results for only failed fixtures
- delattr(fixture_def, cached_result)
+ if PYTEST_GTE_54:
+ setattr(fixture_def, cached_result, None)
+ else:
+ delattr(fixture_def, cached_result)
def _remove_failed_setup_state_from_session(item):
@@ -262,5 +286,7 @@
longrepr = str(report.longrepr[2])
elif report.outcome == 'rerun':
longrepr = str(report.longrepr)
+ else:
+ longrepr = str(report.longrepr)
self.log_outcome(report, code, longrepr)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-8.0/setup.cfg
new/pytest-rerunfailures-9.0/setup.cfg
--- old/pytest-rerunfailures-8.0/setup.cfg 2019-11-18 15:14:03.000000000
+0100
+++ new/pytest-rerunfailures-9.0/setup.cfg 2020-03-18 09:18:08.000000000
+0100
@@ -1,8 +1,5 @@
[bdist_wheel]
-universal = 1
-
-[zest.releaser]
-create-wheel = yes
+universal = 0
[egg_info]
tag_build =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-8.0/setup.py
new/pytest-rerunfailures-9.0/setup.py
--- old/pytest-rerunfailures-8.0/setup.py 2019-11-18 15:14:01.000000000
+0100
+++ new/pytest-rerunfailures-9.0/setup.py 2020-03-18 09:18:08.000000000
+0100
@@ -8,7 +8,7 @@
changelog.read())
setup(name='pytest-rerunfailures',
- version='8.0',
+ version='9.0',
description='pytest plugin to re-run tests to eliminate flaky failures',
long_description=long_description,
author='Leah Klearman',
@@ -16,7 +16,10 @@
url='https://github.com/pytest-dev/pytest-rerunfailures',
py_modules=['pytest_rerunfailures'],
entry_points={'pytest11': ['rerunfailures = pytest_rerunfailures']},
- install_requires=['setuptools>=40.0', 'pytest >= 4.4'],
+ install_requires=[
+ 'setuptools>=40.0',
+ 'pytest >= 5.0',
+ ],
license='Mozilla Public License 2.0 (MPL 2.0)',
keywords='py.test pytest rerun failures flaky',
zip_safe=False,
@@ -31,10 +34,10 @@
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
'Topic :: Utilities',
- 'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
+ 'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-rerunfailures-8.0/test_pytest_rerunfailures.py
new/pytest-rerunfailures-9.0/test_pytest_rerunfailures.py
--- old/pytest-rerunfailures-8.0/test_pytest_rerunfailures.py 2019-11-18
15:14:01.000000000 +0100
+++ new/pytest-rerunfailures-9.0/test_pytest_rerunfailures.py 2020-03-18
09:18:08.000000000 +0100
@@ -1,12 +1,8 @@
+import mock
+import pytest
import random
import time
-try:
- from unittest import mock
-except ImportError:
- import mock
-
-import pytest
pytest_plugins = 'pytester'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-8.0/tox.ini
new/pytest-rerunfailures-9.0/tox.ini
--- old/pytest-rerunfailures-8.0/tox.ini 2019-11-18 15:14:01.000000000
+0100
+++ new/pytest-rerunfailures-9.0/tox.ini 2020-03-18 09:18:08.000000000
+0100
@@ -4,15 +4,14 @@
# and then run "tox" from this directory.
[tox]
-envlist =
py{27,35,36,37,py,py3}-pytest{44,45,46},py{35,36,37,py3}-pytest{50,51,52},
+envlist = py{35,36,37,38,py3}-pytest{50,51,52,53,54},
[testenv]
commands = py.test test_pytest_rerunfailures.py {posargs}
deps =
mock
- pytest44: pytest==4.4.*
- pytest45: pytest==4.5.*
- pytest46: pytest==4.6.*
pytest50: pytest==5.0.*
pytest51: pytest==5.1.*
pytest52: pytest==5.2.*
+ pytest53: pytest==5.3.*
+ pytest54: pytest==5.4.*