Add tox goodness

This commit is contained in:
Liam Young 2016-05-04 21:47:37 +00:00
parent ec574f2aa4
commit 453fe14856
3 changed files with 42 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.tox
build
*.pyc

13
requirements.txt Normal file
View File

@ -0,0 +1,13 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pbr>=1.8.0,<1.9.0
PyYAML>=3.1.0
simplejson>=2.2.0
netifaces>=0.10.4
netaddr>=0.7.12,!=0.7.16
Jinja2>=2.6 # BSD License (3 clause)
six>=1.9.0
dnspython>=1.12.0
psutil>=1.1.1,<2.0.0
python-neutronclient>=2.6.0

28
tox.ini Normal file
View File

@ -0,0 +1,28 @@
[tox]
skipsdist = True
envlist = generate
[testenv]
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
TERM=linux
INTERFACE_PATH={toxinidir}/interfaces
LAYER_PATH={toxinidir}/layers
JUJU_REPOSITORY={toxinidir}/build
passenv = http_proxy https_proxy
install_command =
pip install {opts} {packages}
deps =
-r{toxinidir}/requirements.txt
[testenv:generate]
basepython = python2.7
commands =
charm build --log-level DEBUG -o {toxinidir}/build .
[testenv:venv]
commands = {posargs}
[testenv:lint]
basepython = python2.7
commands = flake8 {posargs} charm/reactive charm/lib