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:
parent
cd715042e3
commit
8d38d82b41
@ -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,
|
||||
)
|
||||
|
@ -4,3 +4,4 @@
|
||||
pydot2>=1.0.32
|
||||
PyYAML>=3.1.0
|
||||
six>=1.9.0
|
||||
yamlordereddictloader
|
||||
|
Loading…
Reference in New Issue
Block a user