diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-07-16 12:22:34 +0000 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2015-07-19 20:20:00 +0000 |
commit | 7d3a901a14c1b3d6f636af9e60a5f84f5ad0777c (patch) | |
tree | 90dffb3c99ed28d084cd479f9e21c7e16b785662 | |
parent | f34c457b6c6f57251adc3df26cc8d8096bd35ca7 (diff) | |
download | definitions-7d3a901a14c1b3d6f636af9e60a5f84f5ad0777c.tar.gz |
Add ruamel.yaml library to 'build' and 'devel' systems
This is currently done by adding it to the 'morph-utils' stratum,
because it is used as a tool for working with .morph files.
The ruamel.yaml library allows writing YAML files while preserving
comments, ordering and some formatting form the input files. This makes
it more practical for us to write automated migration scripts for
Baserock definitions.
Change-Id: I886232dad4d64bcf1803f52e94ae25b0fa2d9969
-rw-r--r-- | strata/morph-utils.morph | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/strata/morph-utils.morph b/strata/morph-utils.morph index 58ca0db7..1189d4f8 100644 --- a/strata/morph-utils.morph +++ b/strata/morph-utils.morph @@ -42,3 +42,15 @@ chunks: - cmdtest - pyfilesystem - pylru + +# This chunk isn't required to use Morph, but is required to do automated +# migrations within the definitions.git repo. +# +# Currently we include a forked version that includes some support for +# preserving blank lines. This is quite useful when operating on .morph files. +# The patches have been submitted upstream here: +# https://bitbucket.org/ruamel/yaml/pull-request/3 +- name: ruamel.yaml + repo: upstream:python-packages/ruamel.yaml + ref: 840b3ccdb306c6aa6d874474e621ae5596595ae4 + unpetrify-ref: baserock/sam/blank-line-preservation-1 |