forked from apache/libcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (45 loc) · 1.44 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
[tox]
envlist = py{2.5,2.6,2.7,pypy,3.2,3.3,3.4,3.5},lint
[testenv]
deps =
-r{toxinidir}/requirements-tests.txt
lockfile
py{2.5,2.6,2.7}: paramiko
py{2.5,2.6}: unittest2
commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
python setup.py test
basepython =
py2.5: python2.5
py2.6: python2.6
{py2.7,lint,pylint,docs}: python2.7
pypypy: pypy
py3.2: python3.2
py3.3: python3.3
py3.4: python3.4
py3.5: python3.5
whitelist_externals = cp
[testenv:docs]
deps = sphinx
pysphere
backports.ssl_match_hostname
changedir = docs
commands = python ../contrib/generate_provider_feature_matrix_table.py
sphinx-apidoc -d 2 ../libcloud/ -o apidocs/
sphinx-build -b html -d {envtmpdir}/doctrees . _build/html
[testenv:scrape-ec2-prices]
deps = requests
demjson
commands = python contrib/scrape-ec2-prices.py
[testenv:pylint]
deps = pylint
backports.ssl_match_hostname
commands = pylint --rcfile=.pylintrc -E libcloud/
[testenv:lint]
deps = -r{toxinidir}/requirements-tests.txt
backports.ssl_match_hostname
commands = flake8 --ignore=E402 --exclude="test" libcloud/
flake8 --ignore=E402 --max-line-length=160 libcloud/test/
flake8 --ignore=E402 demos/
flake8 --ignore=E402,E902 docs/examples/
flake8 --ignore=E402,E902 --max-line-length=160 contrib/
python -mjson.tool libcloud/data/pricing.json