|
1 | 1 | [tox]
|
2 |
| -envlist = py36, py37, py38, py39, pypy3, format, mypy, lint, docs, packaging |
| 2 | +envlist = py36, py37, py38, py39, pypy3, lint, docs, packaging |
3 | 3 |
|
4 | 4 | [gh-actions]
|
5 | 5 | python =
|
6 | 6 | 3.6: py36
|
7 | 7 | 3.7: py37
|
8 |
| - 3.8: py38, format, mypy, lint, docs, packaging |
9 |
| - 3.9: py39 |
| 8 | + 3.8: py38 |
| 9 | + 3.9: py39, lint, docs, packaging |
10 | 10 | pypy3: pypy3
|
11 | 11 |
|
12 | 12 | [testenv]
|
13 | 13 | passenv =
|
14 | 14 | GITHUB_*
|
15 | 15 | deps =
|
16 |
| - pytest==6.1.2 |
17 |
| - pytest-cov==2.10.1 |
18 |
| - pytest-xdist==2.1.0 |
| 16 | + pytest>=6.1.2,<7 |
| 17 | + pytest-cov>=2.10.1,<3 |
| 18 | + pytest-xdist>=2.2.1,<3 |
19 | 19 | commands =
|
20 | 20 | pytest --cov-report=xml --cov-report=term --cov=wsproto {posargs}
|
21 | 21 |
|
22 | 22 | [testenv:pypy3]
|
23 | 23 | # temporarily disable coverage testing on PyPy due to performance problems
|
24 | 24 | commands = pytest {posargs}
|
25 | 25 |
|
26 |
| -[testenv:autobahn] |
27 |
| -changedir = {toxinidir}/compliance |
28 |
| -commands = |
29 |
| - python run-autobahn-tests.py {env:SIDE:} |
30 |
| - |
31 |
| -[testenv:format] |
32 |
| -basepython = python3.8 |
| 26 | +[testenv:lint] |
33 | 27 | deps =
|
| 28 | + prospector==1.3.1 |
34 | 29 | black==20.8b1
|
35 | 30 | isort==5.6.4
|
36 |
| -commands = |
37 |
| - black --check --diff src/ test/ example/ compliance/ bench/ |
38 |
| - isort --check --diff src/ test/ example/ compliance/ bench/ |
39 |
| - |
40 |
| -[testenv:mypy] |
41 |
| -basepython = python3.8 |
42 |
| -deps = |
43 | 31 | mypy==0.790
|
44 | 32 | pytest==6.1.2
|
45 | 33 | commands =
|
| 34 | + prospector |
| 35 | + black --check --diff src/ test/ example/ compliance/ bench/ |
| 36 | + isort --check --diff src/ test/ example/ compliance/ bench/ |
46 | 37 | mypy src/ test/ example/ bench/
|
47 | 38 |
|
48 |
| -[testenv:lint] |
49 |
| -basepython = python3.8 |
50 |
| -deps = |
51 |
| - prospector==1.3.1 |
52 |
| -commands = prospector |
53 |
| - |
54 | 39 | [testenv:docs]
|
55 |
| -basepython = python3.8 |
56 | 40 | deps =
|
57 |
| - sphinx==3.3.1 |
| 41 | + sphinx>=4.0.2,<5 |
58 | 42 | whitelist_externals = make
|
59 | 43 | changedir = {toxinidir}/docs
|
60 | 44 | commands =
|
61 | 45 | make clean
|
62 | 46 | make html
|
63 | 47 |
|
64 | 48 | [testenv:packaging]
|
65 |
| -basepython = python3.8 |
| 49 | +basepython = python3.9 |
66 | 50 | deps =
|
67 |
| - check-manifest==0.45 |
68 |
| - readme-renderer==28.0 |
69 |
| - twine==3.2.0 |
| 51 | + check-manifest==0.46 |
| 52 | + readme-renderer==29.0 |
| 53 | + twine>=3.4.1,<4 |
70 | 54 | whitelist_externals = rm
|
71 | 55 | commands =
|
72 | 56 | rm -rf dist/
|
73 | 57 | check-manifest
|
74 | 58 | python setup.py sdist bdist_wheel
|
75 | 59 | twine check dist/*
|
| 60 | + |
| 61 | +[testenv:publish] |
| 62 | +basepython = {[testenv:packaging]basepython} |
| 63 | +deps = |
| 64 | + {[testenv:packaging]deps} |
| 65 | +whitelist_externals = {[testenv:packaging]whitelist_externals} |
| 66 | +commands = |
| 67 | + {[testenv:packaging]commands} |
| 68 | + twine upload dist/* |
| 69 | + |
| 70 | +[testenv:autobahn] |
| 71 | +changedir = {toxinidir}/compliance |
| 72 | +commands = |
| 73 | + python run-autobahn-tests.py {env:SIDE:} |
0 commit comments