From 67e0056038dc8d0debf3fb242d205c3339db77f0 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Tue, 19 Nov 2024 09:06:34 +0100 Subject: [PATCH] Update versions (#279) - 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 <103459774+asottile-sentry@users.noreply.github.com> --- .github/workflows/test.yml | 6 +++--- CHANGES.rst | 10 +++++++++- README.rst | 4 ++-- pyproject.toml | 8 ++++---- tox.ini | 6 +++--- 5 files changed, 21 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index acd82c8..44306cc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: diff --git a/CHANGES.rst b/CHANGES.rst index 8c13f67..3abdade 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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 `_) +- 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. diff --git a/README.rst b/README.rst index d5aa333..1ca22c5 100644 --- a/README.rst +++ b/README.rst @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 4656e99..dee3a48 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -23,7 +23,7 @@ keywords = [ ] license = {text = "Mozilla Public License 2.0 (MPL 2.0)"} authors = [{name = "Leah Klearman", email = "lklrmn@gmail.com"}] -requires-python = ">=3.8" +requires-python = ">=3.9" classifiers = [ "Development Status :: 5 - Production/Stable", "Framework :: Pytest", @@ -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", @@ -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"} diff --git a/tox.ini b/tox.ini index 1d89b15..924a5f7 100644 --- a/tox.ini +++ b/tox.ini @@ -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]