Skip to content

Commit b9c6313

Browse files
authored
Merge pull request #186 from dmtucker/py37
Drop support for Python 3.7
2 parents 079de07 + 5cc46c6 commit b9c6313

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

.github/workflows/validation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-20.04
66
strategy:
77
matrix:
8-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
8+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
99
steps:
1010
- uses: actions/checkout@v3
1111
- uses: actions/setup-python@v4

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ classifiers = [
1919
"Operating System :: OS Independent",
2020
"Programming Language :: Python",
2121
"Programming Language :: Python :: 3",
22-
"Programming Language :: Python :: 3.7",
2322
"Programming Language :: Python :: 3.8",
2423
"Programming Language :: Python :: 3.9",
2524
"Programming Language :: Python :: 3.10",
@@ -29,7 +28,7 @@ classifiers = [
2928
"Programming Language :: Python :: Implementation :: CPython",
3029
"Topic :: Software Development :: Testing",
3130
]
32-
requires-python = ">=3.7"
31+
requires-python = ">=3.8"
3332
dependencies = [
3433
"filelock>=3.0",
3534
"mypy>=1.0",

src/pytest_mypy/__init__.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,4 @@ def pytest_terminal_summary(
420420

421421
def pytest_unconfigure(self, config: pytest.Config) -> None:
422422
"""Clean up the mypy results path."""
423-
try:
424-
config.stash[stash_key["config"]].mypy_results_path.unlink()
425-
except FileNotFoundError: # compat python < 3.8 (missing_ok=True)
426-
# No MypyItems executed.
427-
return
423+
config.stash[stash_key["config"]].mypy_results_path.unlink(missing_ok=True)

tox.ini

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
minversion = 4.4
44
isolated_build = true
55
envlist =
6-
py37-pytest{7.0, 7.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x}
76
py38-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x}
87
py39-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x}
98
py310-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x}
@@ -15,7 +14,6 @@ envlist =
1514

1615
[gh-actions]
1716
python =
18-
3.7: py37-pytest{7.0, 7.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x}
1917
3.8: py38-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x}
2018
3.9: py39-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x}
2119
3.10: py310-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x}

0 commit comments

Comments
 (0)