Update setup.py to include plugin install/remove scripts and rename "script" director... 77/17477/2
authorJingLu5 <lvjing5@huawei.com>
Mon, 25 Jul 2016 03:01:36 +0000 (11:01 +0800)
committerJingLu5 <lvjing5@huawei.com>
Tue, 26 Jul 2016 00:37:56 +0000 (08:37 +0800)
Change-Id: I420b391acc15e6c65816c33b8568e86d8238bcc7
Signed-off-by: JingLu5 <lvjing5@huawei.com>
setup.py
yardstick/cmd/commands/plugin.py
yardstick/resources/scripts/install/sample.bash [moved from yardstick/resources/script/install/sample.bash with 100% similarity]
yardstick/resources/scripts/remove/sample.bash [moved from yardstick/resources/script/remove/sample.bash with 100% similarity]

index 8b37943..3503738 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,9 @@ setup(
             'benchmark/scenarios/networking/*.txt',
             'benchmark/scenarios/parser/*.sh',
             'benchmark/scenarios/storage/*.bash',
-            'resources/files/*'
+            'resources/files/*',
+            'resources/scripts/install/*.bash',
+            'resources/scripts/remove/*.bash'
         ]
     },
     url="https://www.opnfv.org",
index 52ecf20..8e3ddb5 100644 (file)
@@ -76,7 +76,7 @@ class PluginCommands(object):
         '''Deployment environment setup'''
         target_script = plugin_name + ".bash"
         self.script = pkg_resources.resource_filename(
-            'yardstick.resources', 'script/install/' + target_script)
+            'yardstick.resources', 'scripts/install/' + target_script)
 
         deployment_user = deployment.get("user")
         deployment_ip = deployment.get("ip")
@@ -95,7 +95,7 @@ class PluginCommands(object):
         '''Deployment environment setup'''
         target_script = plugin_name + ".bash"
         self.script = pkg_resources.resource_filename(
-            'yardstick.resources', 'script/remove/' + target_script)
+            'yardstick.resources', 'scripts/remove/' + target_script)
 
         deployment_user = deployment.get("user")
         deployment_ip = deployment.get("ip")