Skip to content

Commit f6004c8

Browse files
authored
feat!: require python>=3.10 (#131)
Remove python versions that reached their EOL. See: https://devguide.python.org/versions/
1 parent 8991a45 commit f6004c8

File tree

3 files changed

+65
-77
lines changed

3 files changed

+65
-77
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -21,49 +21,46 @@ jobs:
2121
matrix:
2222
os: [ubuntu-latest, windows-latest]
2323
python-version:
24-
- '3.8'
25-
- '3.9'
26-
- '3.10'
27-
- '3.11'
28-
- '3.12'
29-
- '3.13'
30-
- '3.14'
24+
- "3.10"
25+
- "3.11"
26+
- "3.12"
27+
- "3.13"
28+
- "3.14"
3129
runs-on: ${{ matrix.os }}
3230

3331
name: ${{ matrix.os }}, Python ${{ matrix.python-version }}
3432
steps:
35-
- uses: actions/checkout@v6
33+
- uses: actions/checkout@v6
3634

37-
- name: Set up Python ${{ matrix.python-version }}
38-
uses: actions/setup-python@v6
39-
with:
40-
python-version: ${{ matrix.python-version }}
41-
allow-prereleases: true
35+
- name: Set up Python ${{ matrix.python-version }}
36+
uses: actions/setup-python@v6
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
allow-prereleases: true
4240

43-
- uses: astral-sh/setup-uv@v7
41+
- uses: astral-sh/setup-uv@v7
4442

45-
- name: Install tox
46-
run: uv tool install --with tox-gh-actions --with tox-uv tox
43+
- name: Install tox
44+
run: uv tool install --with tox-gh-actions --with tox-uv tox
4745

48-
- name: Run tests with PyTest 9
49-
run: tox
50-
if: matrix.python-version != '3.8' && matrix.python-version != '3.9'
51-
env:
52-
PYTEST_MAJOR_VERSION: 9
53-
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
46+
- name: Run tests with PyTest 9
47+
run: tox
48+
env:
49+
PYTEST_MAJOR_VERSION: 9
50+
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
5451

55-
- name: Run tests with PyTest 8
56-
run: tox
57-
env:
58-
PYTEST_MAJOR_VERSION: 8
59-
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
52+
- name: Run tests with PyTest 8
53+
run: tox
54+
env:
55+
PYTEST_MAJOR_VERSION: 8
56+
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
6057

61-
- name: Run tests with PyTest 7
62-
run: tox
63-
if: runner.os != 'Windows'
64-
env:
65-
PYTEST_MAJOR_VERSION: 7
66-
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
58+
- name: Run tests with PyTest 7
59+
run: tox
60+
if: runner.os != 'Windows'
61+
env:
62+
PYTEST_MAJOR_VERSION: 7
63+
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
6764

6865
post-test:
6966
name: All tests passed

pyproject.toml

Lines changed: 34 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
[build-system]
2-
requires = [
3-
"setuptools >= 64.0.0", # required by pyproject+setuptools_scm integration
4-
"setuptools_scm[toml] >= 7.0.5", # required for "no-local-version" scheme
5-
6-
]
7-
build-backend = "setuptools.build_meta"
8-
91
[project]
102
# https://peps.python.org/pep-0621/#readme
11-
requires-python = ">=3.8"
3+
requires-python = ">=3.10"
124
version = "0.3.0"
135
name = "pytest-github-actions-annotate-failures"
146
description = "pytest plugin to annotate failed tests with a workflow command for GitHub Actions"
@@ -19,67 +11,69 @@ license = { text = "MIT" }
1911
classifiers = [
2012
"Development Status :: 5 - Production/Stable",
2113
"Environment :: Console",
14+
"Framework :: Pytest",
2215
"Intended Audience :: Developers",
2316
"Intended Audience :: Information Technology",
2417
"Intended Audience :: System Administrators",
2518
"License :: OSI Approved :: MIT License",
26-
"Framework :: Pytest",
19+
"Programming Language :: Python",
2720
"Programming Language :: Python :: 3",
28-
"Programming Language :: Python :: 3.8",
29-
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3 :: Only",
3022
"Programming Language :: Python :: 3.10",
3123
"Programming Language :: Python :: 3.11",
3224
"Programming Language :: Python :: 3.12",
3325
"Programming Language :: Python :: 3.13",
3426
"Programming Language :: Python :: 3.14",
35-
"Programming Language :: Python :: 3 :: Only",
36-
"Programming Language :: Python",
37-
"Topic :: System :: Systems Administration",
3827
"Topic :: Software Development :: Quality Assurance",
3928
"Topic :: Software Development :: Testing",
29+
"Topic :: System :: Systems Administration",
4030
"Topic :: Utilities",
4131
]
42-
keywords = ["ansible", "testing", "molecule", "plugin"]
43-
dependencies = [
44-
"pytest>=7.0.0"
45-
]
32+
keywords = ["ansible", "molecule", "plugin", "testing"]
33+
dependencies = ["pytest>=7.0.0"]
4634

4735
[project.urls]
36+
changelog = "https://github.com/pytest-dev/pytest-github-actions-annotate-failures/releases"
4837
homepage = "https://github.com/pytest-dev/pytest-github-actions-annotate-failures"
4938
repository = "https://github.com/pytest-dev/pytest-github-actions-annotate-failures"
50-
changelog = "https://github.com/pytest-dev/pytest-github-actions-annotate-failures/releases"
5139

5240
[project.entry-points.pytest11]
5341
pytest_github_actions_annotate_failures = "pytest_github_actions_annotate_failures.plugin"
5442

5543
[dependency-groups]
56-
dev = [{ include-group = "test"}]
44+
dev = [{ include-group = "test" }]
5745
test = ["packaging"]
5846

47+
[build-system]
48+
requires = [
49+
"setuptools_scm[toml] >= 7.0.5", # required for "no-local-version" scheme
50+
"setuptools >= 64.0.0", # required by pyproject+setuptools_scm integration
51+
]
52+
build-backend = "setuptools.build_meta"
5953

6054
[tool.ruff.lint]
6155
extend-select = [
62-
"B", # flake8-bugbear
63-
"I", # isort
64-
"ARG", # flake8-unused-arguments
65-
"C4", # flake8-comprehensions
66-
"EM", # flake8-errmsg
67-
"ICN", # flake8-import-conventions
68-
"ISC", # flake8-implicit-str-concat
69-
"G", # flake8-logging-format
70-
"PGH", # pygrep-hooks
71-
"PIE", # flake8-pie
72-
"PL", # pylint
73-
"PT", # flake8-pytest-style
74-
"RET", # flake8-return
75-
"RUF", # Ruff-specific
76-
"SIM", # flake8-simplify
77-
"UP", # pyupgrade
78-
"YTT", # flake8-2020
79-
"EXE", # flake8-executable
56+
"B", # flake8-bugbear
57+
"I", # isort
58+
"ARG", # flake8-unused-arguments
59+
"C4", # flake8-comprehensions
60+
"EM", # flake8-errmsg
61+
"ICN", # flake8-import-conventions
62+
"ISC", # flake8-implicit-str-concat
63+
"G", # flake8-logging-format
64+
"PGH", # pygrep-hooks
65+
"PIE", # flake8-pie
66+
"PL", # pylint
67+
"PT", # flake8-pytest-style
68+
"RET", # flake8-return
69+
"RUF", # Ruff-specific
70+
"SIM", # flake8-simplify
71+
"UP", # pyupgrade
72+
"YTT", # flake8-2020
73+
"EXE", # flake8-executable
8074
]
8175
ignore = [
82-
"PLR", # Design related pylint codes
76+
"PLR", # Design related pylint codes
8377
]
8478
isort.required-imports = ["from __future__ import annotations"]
8579

tox.ini

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
[tox]
22
envlist =
3-
py{38,39,310,311,312,313,314}-pytest{7,8}
4-
py{310,311,312,313,314}-pytest9
3+
py{310,311,312,313,314}-pytest{7,8,9}
54

65
[gh-actions]
76
python =
8-
3.8: py38
9-
3.9: py39
107
3.10: py310
118
3.11: py311
129
3.12: py312

0 commit comments

Comments
 (0)