8000 Merge pull request #156 from dmtucker/py36 · realpython/pytest-mypy@76b392b · GitHub
[go: up one dir, main page]

Skip to content

Commit 76b392b

Browse files
authored
Merge pull request #156 from dmtucker/py36
Drop Python 3.6 support and use PEP 621 metadata
2 parents 4a20182 + 9b9ee9e commit 76b392b

File tree

4 files changed

+51
-71
lines changed

4 files changed

+51
-71
lines changed

.github/workflows/validation.yml

Lines changed: 1 addition & 1 deletion
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.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
8+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
99
steps:
1010
- uses: actions/checkout@v3
1111
- uses: actions/setup-python@v4

pyproject.toml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
[build-system]
2-
requires = ["setuptools >= 59.6", "setuptools-scm[toml] >= 6.4", "wheel >= 0.37.1"]
2+
requires = ["setuptools >= 61.0", "setuptools-scm >= 7.1", "wheel >= 0.40"]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "pytest-mypy"
7+
dynamic = ["version"]
8+
description = "A Pytest Plugin for Mypy"
9+
readme = "README.rst"
10+
license = {file = "LICENSE"}
11+
maintainers = [
12+
{name = "David Tucker", email = "david@tucker.name"}
13+
]
14+
classifiers = [
15+
"Development Status :: 4 - Beta",
16+
"Framework :: Pytest",
17+
"Intended Audience :: Developers",
18+
"License :: OSI Approved :: MIT License",
19+
"Operating System :: OS Independent",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.7",
23+
"Programming Language :: Python :: 3.8",
24+
"Programming Language :: Python :: 3.9",
25+
"Programming Language :: Python :: 3.10",
26+
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: Implementation :: CPython",
28+
"Topic :: Software Development :: Testing",
29+
]
30+
requires-python = ">=3.7"
31+
dependencies = [
32+
"attrs>=19.0",
33+
"filelock>=3.0",
34+
"pytest>=4.6; python_version<'3.10'",
35+
"pytest>=6.2; python_version>='3.10'",
36+
"mypy>=0.500; python_version<'3.8'",
37+
"mypy>=0.700; python_version>='3.8' and python_version<'3.9'",
38+
"mypy>=0.780; python_version>='3.9' and python_version<'3.11'",
39+
"mypy>=0.900; python_version>='3.11'",
40+
]
41+
42+
[project.entry-points.pytest11]
43+
mypy = "pytest_mypy"
44+
45+
[project.urls]
46+
homepage = "https://github.com/realpython/pytest-mypy"
47+
548
[tool.setuptools_scm]

setup.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

tox.ini

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
minversion = 3.20
44
isolated_build = true
55
envlist =
6-
py36-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x, 0.80, 0.8x, 0.90, 0.9x}
76
py37-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x, 0.80, 0.8x, 0.90, 0.9x}
87
py38-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.71, 0.7x, 0.80, 0.8x, 0.90, 0.9x}
98
py39-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.78, 0.7x, 0.80, 0.8x, 0.90, 0.9x}
@@ -14,7 +13,6 @@ envlist =
1413

1514
[gh-actions]
1615
python =
17-
3.6: py36-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x, 0.80, 0.8x, 0.90, 0.9x}
1816
3.7: py37-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x, 0.80, 0.8x, 0.90, 0.9x}
1917
3.8: py38-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.71, 0.7x, 0.80, 0.8x, 0.90, 0.9x}, publish, static
2018
3.9: py39-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.78, 0.7x, 0.80, 0.8x, 0.90, 0.9x}
@@ -94,8 +92,8 @@ deps =
9492
build[virtualenv] ~= 0.9.0
9593
twine ~= 4.0.0
9694
commands =
97-
{envpython} -m build --outdir {distdir} .
98-
twine {posargs:check} {distdir}/*
95+
{envpython} -m build --outdir {envtmpdir} .
96+
twine {posargs:check} {envtmpdir}/*
9997

10098
[testenv:static]
10199
deps =
@@ -104,10 +102,10 @@ deps =
104102
flake8 ~= 4.0.0
105103
mypy >= 0.900, < 0.910
106104
commands =
107-
black --check src setup.py tests
108-
flake8 src setup.py tests
109-
mypy src setup.py
110-
bandit --recursive src setup.py
105+
black --check src tests
106+
flake8 src tests
107+
mypy src
108+
bandit --recursive src
111109

112110
[flake8]
113111
max-line-length = 88

0 commit comments

Comments
 (0)
0