Use pip to install gerrit-dash-creator
Change-Id: I791233367dac6132c01586f5aa6c48903fcb5218
This commit is contained in:
parent
c0612a2ef6
commit
622df39583
|
@ -2,4 +2,4 @@ launchpadlib
|
||||||
PyYAML
|
PyYAML
|
||||||
Cheetah
|
Cheetah
|
||||||
simplejson
|
simplejson
|
||||||
-e git+https://git.openstack.org/openstack/gerrit-dash-creator#egg=gerrit_dash_creator
|
gerrit-dash-creator
|
||||||
|
|
|
@ -4,7 +4,6 @@ import html_helper
|
||||||
import subprocess
|
import subprocess
|
||||||
from Cheetah.Template import Template
|
from Cheetah.Template import Template
|
||||||
from distutils.dir_util import copy_tree
|
from distutils.dir_util import copy_tree
|
||||||
import gerrit_dash_creator
|
|
||||||
|
|
||||||
|
|
||||||
def prep_out_dir(out_dir):
|
def prep_out_dir(out_dir):
|
||||||
|
@ -55,15 +54,10 @@ def _create_data_html(out_dir, name_space={}):
|
||||||
|
|
||||||
|
|
||||||
def create_projects_dashboard(out_dir):
|
def create_projects_dashboard(out_dir):
|
||||||
gerrit_dash_bin = os.path.join(os.path.dirname(
|
|
||||||
gerrit_dash_creator.__file__), '../gerrit-dash-creator')
|
|
||||||
template_dir = os.path.join(os.path.dirname(
|
|
||||||
gerrit_dash_creator.__file__), '../templates')
|
|
||||||
dashboard_file = '%s/milestone.dash' % out_dir
|
dashboard_file = '%s/milestone.dash' % out_dir
|
||||||
os.system('bin/neutron -o %s' % dashboard_file)
|
os.system('bin/neutron -o %s' % dashboard_file)
|
||||||
p = subprocess.Popen([gerrit_dash_bin,
|
p = subprocess.Popen(['gerrit-dash-creator',
|
||||||
dashboard_file,
|
dashboard_file],
|
||||||
'--template-directory', '%s' % template_dir],
|
|
||||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
|
||||||
neutron_dash, err = p.communicate()
|
neutron_dash, err = p.communicate()
|
||||||
|
|
Loading…
Reference in New Issue