Skip to content

Support Python 3.13 and pytest 8, drop Python 3.7-3.8 and pytest 4 #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/pypi-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ permissions:
contents: read
id-token: write

env:
FORCE_COLOR: 1

jobs:
build-package:
name: Build & verify package
Expand Down
35 changes: 19 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:

pull_request:

env:
FORCE_COLOR: 1

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -31,23 +33,23 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.10"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "pypy3.10"]
os: [ubuntu-latest, windows-latest]
include:
- python: "3.7"
tox_env: "py37-pytest7"
- python: "3.8"
tox_env: "py38-pytest7"
- python: "3.9"
tox_env: "py39-pytest7"
tox_env: "py39-pytest8"
- python: "3.10"
tox_env: "py310-pytest7"
tox_env: "py310-pytest8"
- python: "3.11"
tox_env: "py311-pytest7"
tox_env: "py311-pytest8"
- python: "3.12"
tox_env: "py312-pytest7"
tox_env: "py312-pytest8"
- python: "3.13"
tox_env: "py313-pytest8"
- python: "3.14"
tox_env: "py314-pytest8"
- python: "pypy3.10"
tox_env: "pypy3-pytest7"
tox_env: "pypy3-pytest8"

steps:
- uses: actions/checkout@v4
Expand All @@ -62,6 +64,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true

- name: Install tox
run: |
Expand All @@ -82,14 +85,14 @@ jobs:
strategy:
fail-fast: false
matrix:
pytest: ["4", "5", "6"]
pytest: ["5", "6", "7"]
include:
- pytest: "4"
tox_env: "py37-pytest4"
- pytest: "5"
tox_env: "py37-pytest5"
tox_env: "py39-pytest5"
- pytest: "6"
tox_env: "py37-pytest6"
tox_env: "py39-pytest6"
- pytest: "7"
tox_env: "py39-pytest7"

steps:
- uses: actions/checkout@v4
Expand All @@ -103,7 +106,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.7"
python-version: "3.9"

- name: Install tox
run: |
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Requirements

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

- Python 3.7+ or PyPy3
- pytest 4 or newer
- Python 3.9+ or PyPy3
- pytest 5 or newer

Installation
------------
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "pytest plugin for repeating tests"
readme = "README.rst"
license = {file = "LICENSE"}
authors = [{name = "Bob Silverberg"}]
requires-python = ">=3.7"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Pytest",
Expand All @@ -15,12 +15,11 @@ classifiers = [
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"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",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
Expand Down
2 changes: 1 addition & 1 deletion pytest_repeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def pytest_generate_tests(metafunc):
metafunc.fixturenames.append("__pytest_repeat_step_number")

def make_progress_id(i, n=count):
return '{0}-{1}'.format(i + 1, n)
return f'{i + 1}-{n}'

scope = metafunc.config.option.repeat_scope
metafunc.parametrize(
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
minversion = 4.0
isolated_build = true
envlist =
py{37,38,39,310,311,312,py3}-pytest7
py37-pytest{4,5,6}
py{310,311,312,313,314,py3}-pytest8
py39-pytest{5,6,7}
flake8


Expand All @@ -12,10 +12,10 @@ commands = pytest {posargs}
package = wheel
wheel_build_env = .pkg
deps =
pytest4: pytest~=4.6
pytest5: pytest~=5.4
pytest6: pytest~=6.2
pytest7: pytest>=7
pytest8: pytest>=8


[testenv:flake8]
Expand Down