From 0a29e9ec59e21dc46db0497187cc9d0de0844b05 Mon Sep 17 00:00:00 2001 From: liyin Date: Tue, 7 Feb 2017 15:29:50 +0800 Subject: Log_dir bug fix&Add function of test_ip init JIRA:BOTTLENECK-129 This patch fix the error of log_dir can't be found. And change several thing: 1.Add if config don't have test_ip, it will use local:8888 as test ip. 2.Fix the bug in setup.py. 3.Add parser init to logger file. Change-Id: I808c69e2b2ff3c04f271cc7f3e14e1ab406a4d1b Signed-off-by: liyin --- setup.py | 60 +++++++++++++++++++++++++++++++----------------------------- 1 file changed, 31 insertions(+), 29 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index d9852c95..5e32b238 100644 --- a/setup.py +++ b/setup.py @@ -7,38 +7,40 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## -'''This file realize the function of how to setup bottlenecks to your environment -This use setuptools tool to setup''' +'''This file realize the function of how to setup bottlenecks +to your environment. This use setuptools tool to setup''' from setuptools import setup, find_packages setup( - name="bottlenecks", - version="master", - py_modules=['bottlenecks_cli'], - packages=find_packages(), - include_package_data=True, - package_data={ - 'utils': [ - 'utils/infra_setup/heat/*.py', - 'utils/infra_setup/runner/*.py' - ], - 'config': [ - '*.yaml' - ], - 'testsuites': [ - 'posca/testcase_cfg/*', - 'posca/testcase_script/*', - 'posca/testsuite_story/*', - 'posca/testcase_dashboard/*' - ], - }, - url="https://www.opnfv.org", - install_requires=["click"], - entry_points={ - 'console_scripts': [ - 'bottlenecks=cli.bottlenecks_cli:main' - ], - }, + name="bottlenecks", + version="master", + py_modules=['bottlenecks_cli'], + packages=find_packages(), + include_package_data=True, + package_data={ + 'utils': [ + 'utils/infra_setup/heat/*.py', + 'utils/infra_setup/runner/*.py', + 'utils/*.py' + ], + 'config': [ + '*.yaml' + ], + 'testsuites': [ + 'posca/testcase_cfg/*', + 'posca/testcase_script/*', + 'posca/testsuite_story/*', + 'posca/testcase_dashboard/*' + ], + }, + url="https://www.opnfv.org", + install_requires=["click"], + entry_points={ + 'console_scripts': [ + 'bottlenecks=cli.bottlenecks_cli:main' + ], + }, ) + -- cgit 1.2.3-korg