Add the tox.ini and requirement list so that we can start pep8 check by "tox -e pep8" 25/15425/3
authorzhifeng.jiang <jiang.zhifeng@zte.com.cn>
Sun, 12 Jun 2016 14:07:43 +0000 (22:07 +0800)
committerzhifeng.jiang <jiang.zhifeng@zte.com.cn>
Mon, 13 Jun 2016 05:07:50 +0000 (13:07 +0800)
JIRA:QTIP-89

Change-Id: Iff0792e2503be73865aa21c2995f1fb2252442fb
Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
requirements.txt [new file with mode: 0644]
test-requirements.txt [new file with mode: 0644]
tox.ini [new file with mode: 0644]

diff --git a/requirements.txt b/requirements.txt
new file mode 100644 (file)
index 0000000..cc04838
--- /dev/null
@@ -0,0 +1,8 @@
+pyyaml==3.10
+python-neutronclient==2.6.0
+python-novaclient==2.28.1
+python-glanceclient==1.1.0
+python-cinderclient==1.4.0
+python-heatclient==0.6.0
+python-keystoneclient==1.6.0
+reportlab==3.0
diff --git a/test-requirements.txt b/test-requirements.txt
new file mode 100644 (file)
index 0000000..e4a0274
--- /dev/null
@@ -0,0 +1,5 @@
+# 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.
+
+pytest
diff --git a/tox.ini b/tox.ini
new file mode 100644 (file)
index 0000000..3e5e1ef
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,31 @@
+# Tox (http://tox.testrun.org/) 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.
+
+[tox]
+envlist = py27
+skipsdist = True
+
+[testenv]
+changedir=tests
+deps =
+  -r{toxinidir}/requirements.txt
+  -r{toxinidir}/test-requirements.txt
+commands=
+  py.test \
+    --basetemp={envtmpdir}  \ # py.test tempdir setting
+    {posargs} # substitute with tox' positional arguments
+
+[testenv:pep8]
+deps = flake8
+commands = flake8 {toxinidir}
+
+[flake8]
+# H803 skipped on purpose per list discussion.
+# E123, E125 skipped as they are invalid PEP-8.
+
+show-source = True
+ignore = E123,E125,H803
+builtins = _
+exclude=.venv,.git,.tox,dist,doc,build