From 7d3a901a14c1b3d6f636af9e60a5f84f5ad0777c Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Thu, 16 Jul 2015 12:22:34 +0000 Subject: 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 --- strata/morph-utils.morph | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'strata') 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 -- cgit v1.2.1