show deliverables in the order listed in the projects file

Use an ordered dictionary loader to maintain the order items appear in
the projects file so we can produce them in the same order in the
output.

Change-Id: I96707f96056cc94a34cf9f4b9edfb73f42f7bb27
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-01-11 16:32:35 -05:00
parent cd715042e3
commit 8d38d82b41
2 changed files with 6 additions and 2 deletions

View File

@ -17,7 +17,7 @@ import copy
import os.path
import yaml
import yamlordereddictloader
_projects_yaml = {}
@ -38,4 +38,7 @@ def setup(app):
filename = os.path.abspath('reference/projects.yaml')
app.info('reading %s' % filename)
with open(filename, 'r', encoding='utf-8') as f:
_projects_yaml = yaml.safe_load(f.read())
_projects_yaml = yaml.load(
f.read(),
Loader=yamlordereddictloader.Loader,
)

View File

@ -4,3 +4,4 @@
pydot2>=1.0.32
PyYAML>=3.1.0
six>=1.9.0
yamlordereddictloader