Move graphviz dependency to test stage
Graphviz is only helpful and used for developer. It is useless for deployment. So move it to test-requirements.txt file and warning users when he wants to save dependency feature. TrivialFix Change-Id: Id8de76baa6f1455ad032abe4738d9779cf0cc5a6
This commit is contained in:
parent
40e768ec2a
commit
c0fd4389c6
|
@ -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.13,!=0.7.16 # 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