Skip to content

Commit 4be684b

Browse files
authored
Merge pull request #107 from dmtucker/new-versions
Add support for Python 3.9
2 parents 7d2be37 + 9b2154a commit 4be684b

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
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-latest
66
strategy:
77
matrix:
8-
python-version: [3.5, 3.6, 3.7, 3.8]
8+
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
99
steps:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-python@v2

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def read(fname):
3939
'filelock>=3.0',
4040
'pytest>=3.5',
4141
'mypy>=0.500; python_version<"3.8"',
42-
'mypy>=0.700; python_version>="3.8"',
42+
'mypy>=0.700; python_version>="3.8" and python_version<"3.9"',
43+
'mypy>=0.780; python_version>="3.9"',
4344
],
4445
classifiers=[
4546
'Development Status :: 4 - Beta',
@@ -52,6 +53,7 @@ def read(fname):
5253
'Programming Language :: Python :: 3.6',
5354
'Programming Language :: Python :: 3.7',
5455
'Programming Language :: Python :: 3.8',
56+
'Programming Language :: Python :: 3.9',
5557
'Programming Language :: Python :: Implementation :: CPython',
5658
'Operating System :: OS Independent',
5759
'License :: OSI Approved :: MIT License',

tox.ini

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# For more information about tox, see https://tox.readthedocs.io/en/latest/
22
[tox]
3-
min_version = 3.7.0
3+
minversion = 3.20
44
isolated_build = true
55
envlist =
66
py35-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x, 6.0, 6.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x}
77
py36-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x, 6.0, 6.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x}
88
py37-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x, 6.0, 6.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x}
99
py38-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x, 6.0, 6.x}-mypy{0.71, 0.7x}
10+
py39-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x, 6.0, 6.x}-mypy{0.78, 0.7x}
1011
publish
1112
static
1213

@@ -16,6 +17,7 @@ python =
1617
3.6: py36-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x, 6.0, 6.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x}
1718
3.7: py37-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x, 6.0, 6.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x}
1819
3.8: py38-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x, 6.0, 6.x}-mypy{0.71, 0.7x}, publish, static
20+
3.9: py39-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x, 6.0, 6.x}-mypy{0.78, 0.7x}
1921

2022
[testenv]
2123
deps =
@@ -127,6 +129,7 @@ deps =
127129
mypy0.76: mypy >= 0.760, < 0.770
128130
mypy0.77: mypy >= 0.770, < 0.780
129131
mypy0.78: mypy >= 0.780, < 0.790
132+
mypy0.79: mypy >= 0.790, < 0.800
130133
mypy0.7x: mypy >= 0.700, < 0.800
131134

132135
commands = py.test -p no:mypy --cov pytest_mypy --cov-fail-under 100 --cov-report term-missing {posargs:-n auto} tests
@@ -144,7 +147,7 @@ commands =
144147
deps =
145148
bandit ~= 1.6.2
146149
flake8 ~= 3.8.3
147-
mypy >= 0.780, < 0.790
150+
mypy >= 0.790, < 0.800
148151
commands =
149152
bandit --recursive src
150153
flake8 setup.py src tests

0 commit comments

Comments
 (0)