summaryrefslogtreecommitdiff
path: root/buildstream/_variables.py
Commit message (Collapse)AuthorAgeFilesLines
* _variables.py: Fix lint issue in `find_recursive_variable`Daniel Silverstone2018-10-251-2/+2
| | | | | | | | The python `for`/`else` construct only makes sense if the `for` loop body has a `break` statement. Otherwise the use of `else` causes pylint to raise an error. Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
* Add cyclic check within variable resolutionJosh Smith2018-08-291-4/+28
| | | | | This aims to address #600, this will raise an exception when a resolved variable contains a reference to the variable.
* Remove shebangs from python filesGökçen Nurlu2018-06-191-1/+0
| | | | Fixes #424
* Fix provenance in error message for undefined variables.Valentin David2018-05-061-1/+1
|
* _variables.py: Adhere to policy on private symbolsTristan Van Berkom2018-04-041-10/+10
| | | | This is a part of issue #285
* pylint - dealt with len-as-condition warningJames Ennis2018-03-141-1/+1
|
* _yaml.py: Prevent ruamel from removing underscoresPhillip Smyth2018-02-151-1/+2
| | | | | | | | | | The ruamel parser interprets values such as 1_2_3 as numbers, ignoring the underscores. However, for `track` we need the value as a verbatim string. This change configures ruamel to parse all values as strings, leaving potential conversions to node_get() with the `expected_type` parameter. This fixes #166 and adds tests
* Switch old-style string formattings to new '.format()'Gökçen Nurlu2017-11-171-1/+1
|
* Refactoring: Move exceptions module to be privateTristan Van Berkom2017-11-061-1/+1
| | | | Hide all of buildstream's internal exceptions from the API surface.
* Use _yaml.node_items() across the board, instead of casing _yaml.PROVENANCE_KEYTristan Van Berkom2017-10-011-7/+3
| | | | | Consequently improved _yaml.node_sanitize() to omit a crazy lambda which had no effect at all on the outcome of the function.
* Fixing permissions, some random python files became executableTristan Van Berkom2017-03-061-0/+0
|
* _variables.py: Special case to set max-jobs to 1 if notparallel was specifiedTristan Van Berkom2017-02-221-0/+6
|
* Remove apostrophes from grammatically incorrect instances of "it's"Paul Sherwood2017-02-111-1/+1
|
* _variables.py: Fix variable resolution to convert to stringsTristan Van Berkom2017-01-271-0/+3
| | | | | Not stringish values in variable resolution were not being converted to strings automatically.
* _variables.py: A new helper object for variable contextsTristan Van Berkom2017-01-061-0/+170
A helper object for resolving a loaded and composited dictionary of variables so that variable values themselves are expanded and errors properly detected. Object provides a subst() method allowing strings to be substituted with the variable context.