From 4c7a7bdf649a2580a308dda03f27f933cc6047b9 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Mon, 27 Apr 2015 11:00:29 -0700 Subject: [PATCH] Add a venv that can generate/write/update the states diagram Instead of requiring manual understanding of how to generate the states diagram, add an explicit virtualenv that can be used to create and generate that docs diagram (and replace the existing file with it). Change-Id: I1738da9bf08bfda9b9be01489e8456569a31709e --- tools/states_to_dot.py | 2 -- tox.ini | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/states_to_dot.py b/tools/states_to_dot.py index 4fa76fdcf3..2104a095cb 100755 --- a/tools/states_to_dot.py +++ b/tools/states_to_dot.py @@ -22,8 +22,6 @@ top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) sys.path.insert(0, top_dir) -# To get this installed you may have to follow: -# https://code.google.com/p/pydot/issues/detail?id=93 (until fixed). import pydot from ironic.common import states diff --git a/tox.ini b/tox.ini index 5b83d7f5a0..f4612cd0ae 100644 --- a/tox.ini +++ b/tox.ini @@ -18,6 +18,11 @@ commands = [tox:jenkins] downloadcache = ~/cache/pip +[testenv:genstates] +deps = {[testenv]deps} + pydot2 +commands = {toxinidir}/tools/states_to_dot.py -f {toxinidir}/doc/source/images/states.png + [testenv:pep8] commands = flake8 {posargs}