diff --git a/.gitignore b/.gitignore index 6f97ca1..28dde95 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +.tox build *.pyc diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..730cb69 --- /dev/null +++ b/requirements.txt @@ -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 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..5dc950d --- /dev/null +++ b/tox.ini @@ -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