Skip to content

Commit

Permalink
Drop support for pytest < 6.2. Add support for pytest 7.3, 7.4. (#223)
Browse files Browse the repository at this point in the history
* Drop support for pytest < 6.2. Add support for pytest 7.3, 7.4.
* pytest-main no longer supports Python 3.7
  • Loading branch information
Michael Howitz authored Jul 3, 2023
1 parent 1a63b6a commit 5f5734a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,17 @@ jobs:
"pypy-3.9",
]
pytest-version: [
"6.0.*",
"6.1.*",
"6.2.*",
"7.0.*",
"7.1.*",
"7.2.*",
"7.3.*",
"7.4.*",
"main",
]
exclude:
# Only pytest 6.2+ supports Python 3.10
- { python-version: "3.10", pytest-version: "6.0.*" }
- { python-version: "3.10", pytest-version: "6.1.*" }
# Only pytest 6.2+ supports Python 3.11
- { python-version: "3.11", pytest-version: "6.0.*" }
- { python-version: "3.11", pytest-version: "6.1.*" }
# pytest-main opnly supports Python 3.8+
- { python-version: "3.7", pytest-version: "main" }
steps:
- uses: actions/checkout@v3

Expand Down
9 changes: 8 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
Changelog
=========

11.2 (unreleased)
12.0 (unreleased)
-----------------

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

- Drop support for pytest < 6.2.

Features
++++++++

- Add ``only_rerun`` and ``rerun_except`` arguments to ``@pytest.mark.flaky`` marker.

- Add support for pytest 7.3, 7.4.


11.1.2 (2023-03-09)
-------------------
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ignore =

[metadata]
name = pytest-rerunfailures
version = 11.2.dev0
version = 12.0.dev0
url = https://github.com/pytest-dev/pytest-rerunfailures
description = pytest plugin to re-run tests to eliminate flaky failures
long_description = file: HEADER.rst, README.rst, CHANGES.rst
Expand Down Expand Up @@ -42,7 +42,7 @@ py_modules = pytest_rerunfailures
python_requires = >= 3.7
install_requires =
packaging >= 17.1
pytest >= 5.3
pytest >= 6.2
importlib-metadata>=1;python_version<"3.8"

[options.entry_points]
Expand Down
9 changes: 4 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,20 @@ max-line-length = 88
[tox]
envlist =
linting
py{37,38,39,py3}-pytest{60,61}
py{37,38,39,310,311,py3}-pytest{62,70,71,72}
py{37,38,39,310,311,py3}-pytest{main}
py{37,38,39,310,311,py3}-pytest{62,70,71,72,73,74}
py{38,39,310,311,py3}-pytest{main}
minversion = 4.0

[testenv]
commands = pytest test_pytest_rerunfailures.py {posargs}
deps =
pytest-xdist
pytest60: pytest==6.0.*
pytest61: pytest==6.1.*
pytest62: pytest==6.2.*
pytest70: pytest==7.0.*
pytest71: pytest==7.1.*
pytest72: pytest==7.2.*
pytest73: pytest==7.3.*
pytest74: pytest==7.4.*
pytestmain: git+https://github.com/pytest-dev/pytest.git@main#egg=pytest

[testenv:linting]
Expand Down

0 comments on commit 5f5734a

Please sign in to comment.