This repository has been archived by the owner on Oct 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
tox.ini
93 lines (69 loc) · 1.49 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[tox]
envlist=python
usedevelop=False
[tox:jenkins]
envlist=py35-django{18,111}
[testenv]
ignore_errors=True
passenv =
CI
TRAVIS
TRAVIS_*
whitelist_externals =
sh
rm
deps =
six
pytest
pytest-asyncio
coverage
commands =
- coverage erase
- rm -rf htmlcov/{envname}
sh -c "coverage run --source={envsitepackagesdir}/aiohttp_json_rpc `which pytest` -m 'not django'"
- coverage html -d htmlcov/{envname}
[testenv:django]
setenv =
DJANGO_SETTINGS_MODULE=django_project.settings
deps =
{[testenv]deps}
pytest-django==3.10.0
aiohttp-wsgi
{toxinidir}/tests/django_project
commands =
- coverage erase
- rm -rf htmlcov/{envname}
sh -c "coverage run --source={envsitepackagesdir}/aiohttp_json_rpc `which pytest`"
- coverage html -d htmlcov/{envname}
[testenv:django18]
setenv = {[testenv:django]setenv}
deps =
{[testenv:django]deps}
Django>=1.8,<1.9
commands = {[testenv:django]commands}
[testenv:django111]
setenv = {[testenv:django]setenv}
deps =
{[testenv:django]deps}
Django>=1.11,<1.12
commands = {[testenv:django]commands}
[testenv:lint]
deps =
flake8
commands =
flake8 aiohttp_json_rpc tests examples \
--exclude=env,examples
[testenv:dist]
deps =
setuptools>=36.5.0
commands =
python -m setup dists
[testenv:release-to-pypi]
whitelist_externals = rm
deps =
{[testenv:dist]deps}
twine
commands =
rm -rf dist build *.egg-info
python -m setup release
twine upload dist/*