summaryrefslogtreecommitdiff
path: root/buildstream/_plugincontext.py
Commit message (Collapse)AuthorAgeFilesLines
* _plugincontext.py: Fix third party plugin loadingexternal_plugin_errorsTristan Maat2017-10-121-15/+28
|
* Add loaded plugins to logTristan Maat2017-09-141-1/+6
|
* Add support for YAML default config loadingTristan Maat2017-09-141-3/+17
|
* _plugincontext.py: Add support for pip-installed pluginsTristan Maat2017-09-141-5/+42
|
* _plugincontext.py: Added some new assertionsTristan Van Berkom2017-08-301-21/+43
| | | | | | | | | | | | | | | | Added assertions: o Bail out with a PluginError instead of an ImportError in the case that PluginSource.load_plugin() fails to import the plugin. o Assert that the running buildstream version is new enough for any loaded plugin, otherwise bail out with a PluginError. Also changed all string formatting here to be consistent with the rest of buildstream and use "{}".format("foo") instead of "%s" % "foo".
* _plugincontext.py: Load plugins on demandTristan Van Berkom2017-08-291-13/+13
| | | | This fixes issue #79
* Fixing permissions, some random python files became executableTristan Van Berkom2017-03-061-0/+0
|
* Remove apostrophes from grammatically incorrect instances of "it's"Paul Sherwood2017-02-111-0/+0
|
* _plugincontext.py: Removing print trace statementsTristan Van Berkom2016-12-311-3/+0
| | | | | This should be done optionally as a summary of loaded plugins in a verbose setting.
* _plugincontext.py: Unwrap some needlessly wrapped linesTristan Van Berkom2016-12-101-28/+19
|
* pep8 fixes in _plugincontext.pyTristan Van Berkom2016-12-101-24/+37
|
* Principle of least underscoresTristan Van Berkom2016-11-151-1/+1
| | | | | | | | | PluginContext, ElementFactory and SourceFactory reside in entirely private modules, as such they do not need a leading underscore to indicate that they are private. This makes the code nicer to read without causing private things to be considered public.
* _plugincontext.py: Raise PluginError when plugin setup is not a functionTristan Van Berkom2016-11-131-1/+4
|
* _plugincontext.py: Raise PluginError when plugin fails to provide setup()Tristan Van Berkom2016-11-131-2/+6
|
* _plugincontext.py: Improve exception reporting stringsTristan Van Berkom2016-11-131-4/+4
|
* _plugincontext.py: Raise PluginError for two plugins with the same nameTristan Van Berkom2016-11-131-0/+28
|
* Split up factory objects and base data model objects.Tristan Van Berkom2016-11-121-0/+94
Better to have a separate file for each class clearly addressing it's purpose with it's filename. Source base data model -> source.py SourceFactory -> _sourcefactory.py Element base data model -> element.py ElementFactory -> _elementfactory.py Also moved the _plugin.py to _plugincontext.py, since the object is infact _PluginContext, lets follow this rule all around for code clarity.