summaryrefslogtreecommitdiff
path: root/src/buildstream/plugin.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2020-04-24 18:12:54 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2020-04-29 16:24:58 +0900
commitd63bd7e9def528d3ed59a2798452ac1da58ebea4 (patch)
tree05153205e2d5fa8644af7d877319a3cbc0566b68 /src/buildstream/plugin.py
parent82eb1d4271bb634f248bc9e1770119d2815d7cd6 (diff)
downloadbuildstream-d63bd7e9def528d3ed59a2798452ac1da58ebea4.tar.gz
Plugin loading refactor, removing all versioning
Plugin format versioning was decided to be removed for local plugins and any plugins for which we do not load an explicitly provided plugin. For pip, this will be handled with a standard distutils/setuptools approach, allowing users to specify pip style version boundaries in the plugin origins. This patch refactors plugin loading so that all related code goes into the private _pluginfactory module, a new small PluginOrigin type was added to better manipulate loaded origins. Test cases have been removed and will be readded in a following commit, adjusted to new expectations.
Diffstat (limited to 'src/buildstream/plugin.py')
-rw-r--r--src/buildstream/plugin.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/buildstream/plugin.py b/src/buildstream/plugin.py
index 2182f5a08..4f2d74304 100644
--- a/src/buildstream/plugin.py
+++ b/src/buildstream/plugin.py
@@ -148,27 +148,6 @@ class Plugin:
which are included in the buildstream namespace.
"""
- BST_REQUIRED_VERSION_MAJOR = 0
- """Minimum required major version"""
-
- BST_REQUIRED_VERSION_MINOR = 0
- """Minimum required minor version"""
-
- BST_FORMAT_VERSION = 0
- """The plugin's YAML format version
-
- This should be set to ``1`` the first time any new configuration
- is understood by your :func:`Plugin.configure() <buildstream.plugin.Plugin.configure>`
- implementation and subsequently bumped every time your
- configuration is enhanced.
-
- .. note::
-
- Plugins are expected to maintain backward compatibility
- in the format and configurations they expose. The versioning
- is intended to track availability of new features only.
- """
-
BST_PLUGIN_DEPRECATED = False
"""True if this element plugin has been deprecated.