test-requirements.txt is added for unit test.
authorhelenyao <yaohelan@huawei.com>
Tue, 6 Dec 2016 03:24:43 +0000 (22:24 -0500)
committerhelenyao <yaohelan@huawei.com>
Tue, 6 Dec 2016 03:50:58 +0000 (22:50 -0500)
JIRA: FUNCTEST-639

Some requirement packages are only needed by unit test and there is no need to include them in requirement.txt.
This is the main reason to create a test-requirements.txt to hold all packages required by unit test.

Change-Id: Iefa9f54b57666d30044ec174adfeb22d63b6b139
Signed-off-by: helenyao <yaohelan@huawei.com>
requirements.txt
run_unit_tests.sh
setup.py
test-requirements.txt [new file with mode: 0644]

index 98745c3..e4d2877 100644 (file)
@@ -27,3 +27,4 @@ subprocess32
 shyaml
 dnspython
 Pillow==3.3.0
+click==6.6
\ No newline at end of file
index 9f7bb50..05b3c4e 100755 (executable)
@@ -43,7 +43,9 @@ source $WORKSPACE/functest_venv/bin/activate
 # install python packages
 easy_install -U setuptools
 easy_install -U pip
-pip install -r $WORKSPACE/requirements.txt
+pip install -r $WORKSPACE/test-requirements.txt
+
+
 pip install -e $WORKSPACE
 
 python $WORKSPACE/setup.py develop
index 872b089..58a9a48 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -17,10 +17,6 @@ setup(
     package_data={\r
     },\r
     url="https://www.opnfv.org",\r
-    install_requires=["coverage==4.1",\r
-                      "mock==1.3.0",\r
-                      "nose==1.3.7",\r
-                      "click"],\r
     entry_points={\r
         'console_scripts': [\r
             'functest=functest.cli.cli_base:cli'\r
diff --git a/test-requirements.txt b/test-requirements.txt
new file mode 100644 (file)
index 0000000..d65e12f
--- /dev/null
@@ -0,0 +1,23 @@
+#
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+coverage==4.1
+dnspython==1.15.0
+gitpython==1.0.1
+mock==1.3.0
+nose==1.3.7
+python-ceilometerclient==2.6.2
+python-congressclient==1.5.0
+python-keystoneclient==3.5.0
+python-neutronclient==6.0.0
+python-openstackclient==2.3.0
+pyyaml==3.10
+requests==2.8.0
+robotframework==2.9.1
+robotframework-requests==0.3.8
+robotframework-sshlibrary==2.1.1
+virtualenv==1.11.4
\ No newline at end of file