Skip to content

Commit

Permalink
Update versions (#279)
Browse files Browse the repository at this point in the history
- Drop support for Python 3.8
- Drop support for pytest < 7.4
- Add support for Python 3.13
- Add support for pytest 8.2 and 8.3.
- Exclude broken version

---------

Co-authored-by: anthony sottile <[email protected]>
  • Loading branch information
icemac and asottile-sentry authored Nov 19, 2024
1 parent e9996df commit 67e0056
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ jobs:
fail-fast: false
matrix:
python-version: [
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
"pypy-3.10",
]
pytest-version: [
"7.2.*",
"7.3.*",
"7.4.*",
"8.0.*",
"8.1.*",
"8.2.*",
"8.3.*",
"main",
]
steps:
Expand Down
10 changes: 9 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
Changelog
=========

14.1 (unreleased)
15.0 (unreleased)
-----------------

Breaking changes
++++++++++++++++

- Drop support for Python 3.8.

- Drop support for pytest < 7.4.

Features
++++++++

- Fix compatibility with pytest 8.2.
(`#267 <https://github.com/pytest-dev/pytest-rerunfailures/issues/267>`_)

- 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.
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Requirements

You will need the following prerequisites in order to use pytest-rerunfailures:

- Python 3.8+ or PyPy3
- pytest 7.2 or newer
- Python 3.9+ or PyPy3
- pytest 7.4 or newer

This plugin can recover from a hard crash with the following optional
prerequisites:
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ignore = [".pre-commit-config.yaml"]

[project]
name = "pytest-rerunfailures"
version = "14.1.dev0"
version = "15.0.dev0"
description = "pytest plugin to re-run tests to eliminate flaky failures"
dynamic = [
"readme",
Expand All @@ -23,7 +23,7 @@ keywords = [
]
license = {text = "Mozilla Public License 2.0 (MPL 2.0)"}
authors = [{name = "Leah Klearman", email = "[email protected]"}]
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Pytest",
Expand All @@ -33,11 +33,11 @@ classifiers = [
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Quality Assurance",
Expand All @@ -46,7 +46,7 @@ classifiers = [
]
dependencies = [
"packaging>=17.1",
"pytest>=7.2",
"pytest!=8.2.2,>=7.4",
]
urls = {Homepage = "https://github.com/pytest-dev/pytest-rerunfailures"}

Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ max-line-length = 88
[tox]
envlist =
linting
py{38,39,310,311,312,py3}-pytest{72,73,74,80,81,main}
py{39,310,311,312,313,py3}-pytest{74,80,81,82,83,main}
minversion = 4.0

[testenv]
commands = pytest tests/ {posargs}
deps =
pytest-xdist
pytest72: pytest==7.2.*
pytest73: pytest==7.3.*
pytest74: pytest==7.4.*
pytest80: pytest==8.0.*
pytest81: pytest==8.1.*
pytest82: pytest==8.2.*
pytest83: pytest==8.3.*
pytestmain: git+https://github.com/pytest-dev/pytest.git@main#egg=pytest

[testenv:linting]
Expand Down

0 comments on commit 67e0056

Please sign in to comment.