forked from apache/libcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (53 loc) · 1.32 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
[tox]
envlist = py25,py26,py27,pypy,py32,py33,py34,lint
setenv =
PIP_USE_MIRRORS=1
[testenv]
deps = mock
unittest2
lockfile
paramiko
commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
python setup.py test
[testenv:py26]
deps = mock
unittest2
lockfile
paramiko
coverage
commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
python setup.py test
python setup.py coverage
[testenv:py25]
setenv = PIP_INSECURE=1
deps = mock
unittest2
lockfile
ssl
simplejson
paramiko
[testenv:py32]
deps = mock
lockfile
[testenv:py33]
deps = mock
lockfile
[testenv:py34]
# At some point we can switch to use the stdlib provided mock module on
# Python3.4+
deps = mock
lockfile
[testenv:docs]
deps = sphinx
basepython = python2.7
changedir = docs
commands = python ../contrib/generate_provider_feature_matrix_table.py
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
[testenv:lint]
deps = flake8
commands = flake8 --exclude="test" libcloud/
flake8 --max-line-length=160 libcloud/test/
flake8 demos/
flake8 --ignore=E902 docs/examples/
flake8 --ignore=E902 contrib/
python -mjson.tool libcloud/data/pricing.json