summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-07-16 12:22:34 +0000
committerBaserock Gerrit <gerrit@baserock.org>2015-07-19 20:20:00 +0000
commit7d3a901a14c1b3d6f636af9e60a5f84f5ad0777c (patch)
tree90dffb3c99ed28d084cd479f9e21c7e16b785662
parentf34c457b6c6f57251adc3df26cc8d8096bd35ca7 (diff)
downloaddefinitions-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.morph12
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