Skip to content

Commit 003f0bc

Browse files
authored
Merge pull request #200 from dmtucker/py38-py39
Drop support for Python 3.8 & 3.9
2 parents b5df17d + 5d8e733 commit 003f0bc

5 files changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/publication.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: actions/checkout@v6
1010
- uses: actions/setup-python@v6
1111
with:
12-
python-version: '3.8'
12+
python-version: "3.10"
1313
- run: python -m pip install --upgrade tox-gh-actions
1414
- env:
1515
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

.github/workflows/validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
8+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
99
steps:
1010
- uses: actions/checkout@v6
1111
- uses: actions/setup-python@v6

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ classifiers = [
1919
"Operating System :: OS Independent",
2020
"Programming Language :: Python",
2121
"Programming Language :: Python :: 3",
22-
"Programming Language :: Python :: 3.8",
23-
"Programming Language :: Python :: 3.9",
2422
"Programming Language :: Python :: 3.10",
2523
"Programming Language :: Python :: 3.11",
2624
"Programming Language :: Python :: 3.12",
@@ -29,7 +27,7 @@ classifiers = [
2927
"Programming Language :: Python :: Implementation :: CPython",
3028
"Topic :: Software Development :: Testing",
3129
]
32-
requires-python = ">=3.8"
30+
requires-python = ">=3.10"
3331
dependencies = [
3432
"filelock>=3.0",
3533
"mypy>=1.0",

src/pytest_mypy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from xdist.workermanage import WorkerController # type: ignore
3535

3636

37-
@dataclass(frozen=True) # compat python < 3.10 (kw_only=True)
37+
@dataclass(frozen=True, kw_only=True)
3838
class MypyConfigStash:
3939
"""Plugin data stored in the pytest.Config stash."""
4040

@@ -299,7 +299,7 @@ def runtest(self) -> None:
299299
raise MypyError(f"mypy exited with status {results.status}.")
300300

301301

302-
@dataclass(frozen=True) # compat python < 3.10 (kw_only=True)
302+
@dataclass(frozen=True, kw_only=True)
303303
class MypyResults:
304304
"""Parsed results from Mypy."""
305305

tox.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
minversion = 4.4
44
isolated_build = true
55
envlist =
6-
py38-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{2.0, 2.x, 3.0, 3.x}
7-
py39-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{2.0, 2.x, 3.0, 3.x}
86
py310-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
97
py311-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
108
py312-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
@@ -15,8 +13,6 @@ envlist =
1513

1614
[gh-actions]
1715
python =
18-
3.8: py38-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{2.0, 2.x, 3.0, 3.x}
19-
3.9: py39-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{2.0, 2.x, 3.0, 3.x}
2016
3.10: py310-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
2117
3.11: py311-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
2218
3.12: py312-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}, static, publish

0 commit comments

Comments
 (0)