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 datetime
|
||||
import errno
|
||||
import graphviz
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
@ -859,6 +858,11 @@ class KollaWorker(object):
|
||||
self.images.append(image)
|
||||
|
||||
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.body.extend(['rankdir=LR'])
|
||||
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)
|
||||
six>=1.9.0 # MIT
|
||||
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
|
||||
pycrypto>=2.6 # Public Domain
|
||||
netaddr!=0.7.16,>=0.7.13 # BSD
|
||||
|
@ -6,6 +6,7 @@ bashate>=0.2 # Apache-2.0
|
||||
beautifulsoup4 # MIT
|
||||
doc8 # Apache-2.0
|
||||
extras # MIT
|
||||
graphviz!=0.5.0,>=0.4.0 # MIT License
|
||||
hacking>=0.10.0
|
||||
oslo.log>=3.11.0 # Apache-2.0
|
||||
oslotest>=1.10.0 # Apache-2.0
|
||||
|
Loading…
Reference in New Issue
Block a user