[PATCH 0/4] Allow Morphologies to be written in YAML

Richard Maw richard.maw at codethink.co.uk
Mon Jan 21 18:15:56 GMT 2013


Repo: git://git.baserock.org/baserock/baserock/morph
Ref:  baserock/richardmaw/yaml
Sha1: b83d5eca7f8036ff295f9f5f07a8112074bdf016

Richard Maw (4):
  Move OrderedDict and json loading to morphlib.util
  Parse as YAML if not valid JSON
  Fix tests
  Test that systems can build with YAML morphologies

 morphlib/__init__.py                               |    3 +-
 morphlib/morph2.py                                 |   35 ++++---
 morphlib/morph2_tests.py                           |   19 +++-
 morphlib/morphologyfactory.py                      |    6 +-
 morphlib/morphologyfactory_tests.py                |    6 +-
 morphlib/util.py                                   |   10 ++
 morphlib/yamlparse.py                              |  100 +++++++++++++++++
 morphlib/yamlparse_tests.py                        |   69 ++++++++++++
 .../{lib => builds-with-yaml-morphologies.script}  |   22 +---
 tests.as-root/builds-with-yaml-morphologies.setup  |  117 ++++++++++++++++++++
 tests.as-root/lib                                  |    4 +-
 11 files changed, 348 insertions(+), 43 deletions(-)
 create mode 100644 morphlib/yamlparse.py
 create mode 100644 morphlib/yamlparse_tests.py
 copy tests.as-root/{lib => builds-with-yaml-morphologies.script} (55%)
 mode change 100644 => 100755
 create mode 100755 tests.as-root/builds-with-yaml-morphologies.setup

-- 
1.7.5.4





More information about the baserock-dev mailing list