2 Commits

Author SHA256 Message Date
89564b3eac Accepting request 1226221 from devel:languages:python:pytest
- update to 15.0:
  * Drop support for Python 3.8.
  * Drop support for pytest < 7.4.
  * Fix compatibility with pytest 8.2.
  * Add support for pytest 8.2, 8.3.
  * Add --fail-on-flaky option to fail the test run with custom
    exit code when test passed on rerun.

OBS-URL: https://build.opensuse.org/request/show/1226221
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-rerunfailures?expand=0&rev=14
2024-11-26 19:55:22 +00:00
cd59675099 - update to 15.0:
* Drop support for Python 3.8.
  * Drop support for pytest < 7.4.
  * Fix compatibility with pytest 8.2.
  * Add support for pytest 8.2, 8.3.
  * Add --fail-on-flaky option to fail the test run with custom
    exit code when test passed on rerun.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-rerunfailures?expand=0&rev=29
2024-11-25 09:07:41 +00:00
4 changed files with 12 additions and 50 deletions

BIN
pytest-rerunfailures-15.0.tar.gz LFS Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -1,42 +1,4 @@
-------------------------------------------------------------------
Mon Feb 9 16:40:28 UTC 2026 - Andreas Prittwitz <m4ng4n@gmx.de>
- Update to version 16.1
* Change version requirements to specification.
* Change source path to reflect change in source name.
* Drop support for Python 3.9.
* Changed "localhost" to "127.0.0.1" to avoid bad
hostname resolution.
* Added ``--force-reruns`` to override rerun count globally.
Fixes #306
<https://github.com/pytest-dev/pytest-rerunfailures/issues/306>.
- Changes in version 16.0.1
* Reverted the ability to access error attributes because of an
incompatibility with
`pytest-xdist <https://github.com/pytest-dev/pytest-xdist/issues/843>.
Fixes #302
<https://github.com/pytest-dev/pytest-rerunfailures/issues/302>,
and #303
<https://github.com/pytest-dev/pytest-rerunfailures/issues/303>.
- Changes in version 16.0
* Drop support for pytest < 8.
* Add support for pytest 8.4.x.
* Add support for upcoming Python 3.14.
* Allow ``@pytest.mark.flaky(condition)`` to accept a callable or
a string to be evaluated. The evaluated string has access to
the exception instance via the ``error`` object. #230
<https://github.com/pytest-dev/pytest-rerunfailures/issues/230>.
- Changes in version 15.1
* Fix ``--fail-on-flaky`` option to fail the test run with custom
exit code only when reruns are detected. #287
<https://github.com/pytest-dev/pytest-rerunfailures/issues/287>
* Switched to using the SPDX license identifier in the
project metadata.
* Change exception filtering logic to match ``AssertionError``
raised via ``assert`` statements when filtering by
"AssertionError".#292
<https://github.com/pytest-dev/pytest-rerunfailures/issues/292>
-------------------------------------------------------------------
Mon Nov 25 09:07:34 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 15.0:

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest_rerunfailures
# spec file for package python-pytest-rerunfailures
#
# Copyright (c) 2026 SUSE LLC and contributors
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,24 +18,24 @@
%{?sle15_python_module_pythons}
Name: python-pytest-rerunfailures
Version: 16.1
Version: 15.0
Release: 0
Summary: A pytest plugin to re-run tests
License: MPL-2.0
URL: https://github.com/pytest-dev/pytest-rerunfailures
Source: https://files.pythonhosted.org/packages/source/p/pytest-rerunfailures/pytest_rerunfailures-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.10}
Source: https://files.pythonhosted.org/packages/source/p/pytest-rerunfailures/pytest-rerunfailures-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 40.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-packaging >= 17.1
Requires: python-pytest >= 8.0
Requires: python-pytest >= 7.4
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest >= 8.0}
BuildRequires: %{python_module pytest-xdist >= 2.3.0}
BuildRequires: %{python_module pytest >= 7.4}
BuildRequires: %{python_module pytest-xdist}
# /SECTION
%python_subpackages
@@ -44,7 +44,7 @@ The pytest-rerunfailures package is a plugin for Pytest that re-runs
tests to eliminate intermittent failures.
%prep
%setup -q -n pytest_rerunfailures-%{version}
%setup -q -n pytest-rerunfailures-%{version}
%build
%pyproject_wheel