summaryrefslogtreecommitdiff
path: root/buildstream/_options
Commit message (Collapse)AuthorAgeFilesLines
* Add support for include '(@)' in project.conf and .bst filesValentin David2018-08-031-5/+8
| | | | Fixes #331.
* Remove shebangs from python filesGökçen Nurlu2018-06-198-8/+0
| | | | Fixes #424
* buildstream/_options/optionpool.py: Fixing unused variablesTristan Van Berkom2018-04-191-3/+5
|
* Allow 'None' as a default_value for _yaml.node_getTristan Maat2018-04-072-4/+4
|
* _options/option.py: Assert valid symbol names for variable exportsTristan Van Berkom2018-04-061-0/+5
|
* _options/optionpool.py: Assert valid symbol names for option names.Tristan Van Berkom2018-04-061-1/+5
| | | | These must be alphanumeric and may not contain dashes.
* _options package: Adhere to policy on private symbolsTristan Van Berkom2018-04-051-46/+80
| | | | | | | | This also adds a couple of methods to OptionPool to avoid exposing some internals to other parts of the codebase, and calls those new methods from _project.py and _frontend/widget.py This is a part of issue #285
* pylint - dealt with import warningsJames Ennis2018-03-141-1/+2
|
* _options: Support transform function for variable substitutionJürg Billeter2018-02-085-7/+15
|
* Remove unused importsGökçen Nurlu2017-12-072-2/+0
|
* Issue #142: Ensure we don't append provenances twiceTristan Maat2017-11-301-2/+9
|
* _options/optionpool.py: Split load_valuesJürg Billeter2017-11-301-5/+12
| | | | | Split load_values into load_yaml_values and load_cli_values to allow independent loading from multiple YAML nodes.
* Switch old-style string formattings to new '.format()'Gökçen Nurlu2017-11-171-1/+1
|
* Refactor, remove some unused imports138-aborting-bst-push-command-causes-stack-traceAngelos Evripiotis2017-11-131-1/+0
| | | | | | | When reading element.py, I was surprised that it was importing 'inspect'. Remove that import and some other unused ones to improve readability.
* Refactoring: Move exceptions module to be privateTristan Van Berkom2017-11-064-4/+4
| | | | Hide all of buildstream's internal exceptions from the API surface.
* _options/optionpool.py: Be strict with evaluation of undefined variables.Tristan Van Berkom2017-10-231-3/+7
| | | | And also ensure that expression errors are reported with provenance.
* _options/optionpool.py: Use _yaml.composite() instead of _yaml.composite_dict()Tristan Van Berkom2017-10-171-1/+1
| | | | We want the one which provides a nice LoadError
* _options: Options can now be exported to variables in string formTristan Van Berkom2017-10-144-1/+28
| | | | | | | | | | This patch adds a `variable` attribute to all option definitions, which if specified, can be used to override and declare variable at the project.conf level. A new `get_value()` method was added allowing implementations to create a string for the value of the option - main subclasses updated to support the string conversion with `get_value()`
* _options/optionpool.py: Implement the (!) assertion directiveTristan Van Berkom2017-10-111-2/+11
| | | | | | These are processed inline with conditionals and before each iteration of conditional processing, ensuring that we always trigger the first assertion ever composited.
* _options: OptionPool implementation, core project options moduleTristan Van Berkom2017-10-088-0/+649
This sub package includes the OptionPool which is the buildstream facing API for handling project options, loading them, evaluating expressions based on options and pre-processing loaded YAML. This also includes an abstract Option class and an implementation for each supported option type.