-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtox.ini
55 lines (42 loc) · 1.07 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
# Tox (http://codespeak.net/~hpk/tox/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[flake8]
max-line-length=119
[tox]
minversion=1.8.0
envlist =
py{35,36,37}-django20
py{35,36,37}-django21
py{35,36,37}-django22
py{35,36,37}-django22-pika
isort
flake8
[testenv]
commands = python manage.py test
passenv = TEAMCITY_VERSION
deps =
-rtest_requirements.txt
coverage
pika: pika==1.1.0
django20: django >=2.0,<2.1
django21: django >=2.1,<2.2
django22: django >=2.2,<2.3
[testenv:flake8]
basepython = python3
usedevelop = false
deps = flake8
changedir = {toxinidir}
commands = flake8 dynamic_logging testproject
[testenv:isort]
basepython = python3
usedevelop = false
deps = isort
changedir = {toxinidir}
commands = isort --recursive --check-only --diff dynamic_logging testproject
[testenv:package]
deps = twine
commands =
python setup.py sdist
twine check dist/*