easybuild.framework.easyconfig.format.yeb module¶
YAML easyconfig format (.yeb) Useful: http://www.yaml.org/spec/1.2/spec.html
Authors:
- Caroline De Brouwer (Ghent University)
- Kenneth Hoste (Ghent University)
-
class
easybuild.framework.easyconfig.format.yeb.FormatYeb¶ Bases:
easybuild.framework.easyconfig.format.format.EasyConfigFormatSupport for easyconfig YAML format
-
USABLE= True¶
-
dump(ecfg, default_values, templ_const, templ_val, toolchain_hierarchy=None)¶ Dump parsed easyconfig in .yeb format
-
extract_comments(txt)¶ Extract comments from easyconfig file
-
get_config_dict()¶ Return parsed easyconfig as a dictionary, based on specified arguments.
-
parse(**kwargs)¶
-
validate()¶ Format validation
-
-
easybuild.framework.easyconfig.format.yeb.is_yeb_format(filename, rawcontent)¶ Determine whether easyconfig is in .yeb format. If filename is None, rawcontent will be used to check the format.
-
easybuild.framework.easyconfig.format.yeb.quote_yaml_special_chars(val)¶ Single-quote values that contain special characters, specifically to be used in YAML context (.yeb files) Single quotes inside the string are escaped by doubling them. (see: http://symfony.com/doc/current/components/yaml/yaml_format.html#strings)
-
easybuild.framework.easyconfig.format.yeb.yaml_join(loader, node)¶ defines custom YAML join function. see http://stackoverflow.com/questions/5484016/
how-can-i-do-string-concatenation-or-string-replacement-in-yaml/23212524#23212524Parameters: - loader – the YAML Loader
- node – the YAML (sequence) node