Merge "Move graphviz dependency to test stage"
This commit is contained in:
commit
77ab69cead
@ -17,7 +17,6 @@ from __future__ import print_function
|
|||||||
import contextlib
|
import contextlib
|
||||||
import datetime
|
import datetime
|
||||||
import errno
|
import errno
|
||||||
import graphviz
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
@ -859,6 +858,11 @@ class KollaWorker(object):
|
|||||||
self.images.append(image)
|
self.images.append(image)
|
||||||
|
|
||||||
def save_dependency(self, to_file):
|
def save_dependency(self, to_file):
|
||||||
|
try:
|
||||||
|
import graphviz
|
||||||
|
except ImportError:
|
||||||
|
LOG.error('"graphviz" is required for save dependency')
|
||||||
|
raise
|
||||||
dot = graphviz.Digraph(comment='Docker Images Dependency')
|
dot = graphviz.Digraph(comment='Docker Images Dependency')
|
||||||
dot.body.extend(['rankdir=LR'])
|
dot.body.extend(['rankdir=LR'])
|
||||||
for image in self.images:
|
for image in self.images:
|
||||||
|
@ -8,7 +8,6 @@ gitdb>=0.6.4 # BSD License (3 clause)
|
|||||||
GitPython>=1.0.1 # BSD License (3 clause)
|
GitPython>=1.0.1 # BSD License (3 clause)
|
||||||
six>=1.9.0 # MIT
|
six>=1.9.0 # MIT
|
||||||
oslo.config>=3.14.0 # Apache-2.0
|
oslo.config>=3.14.0 # Apache-2.0
|
||||||
graphviz!=0.5.0,>=0.4.0 # MIT License
|
|
||||||
setuptools!=24.0.0,>=16.0 # PSF/ZPL
|
setuptools!=24.0.0,>=16.0 # PSF/ZPL
|
||||||
pycrypto>=2.6 # Public Domain
|
pycrypto>=2.6 # Public Domain
|
||||||
netaddr!=0.7.16,>=0.7.13 # BSD
|
netaddr!=0.7.16,>=0.7.13 # BSD
|
||||||
|
@ -6,6 +6,7 @@ bashate>=0.2 # Apache-2.0
|
|||||||
beautifulsoup4 # MIT
|
beautifulsoup4 # MIT
|
||||||
doc8 # Apache-2.0
|
doc8 # Apache-2.0
|
||||||
extras # MIT
|
extras # MIT
|
||||||
|
graphviz!=0.5.0,>=0.4.0 # MIT License
|
||||||
hacking>=0.10.0
|
hacking>=0.10.0
|
||||||
oslo.log>=3.11.0 # Apache-2.0
|
oslo.log>=3.11.0 # Apache-2.0
|
||||||
oslotest>=1.10.0 # Apache-2.0
|
oslotest>=1.10.0 # Apache-2.0
|
||||||
|
Loading…
Reference in New Issue
Block a user