summaryrefslogtreecommitdiff
path: root/buildstream/plugin.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-08-30 18:05:02 -0400
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-08-30 18:31:06 -0400
commit870d5a3a102aa72c95742ba4db29071ed9b6407a (patch)
tree5294ff3888224a73f3126f2dd49cc27c81b8647e /buildstream/plugin.py
parent11bbdb13c0b1dd27040f60065245208cd4bf512c (diff)
downloadbuildstream-870d5a3a102aa72c95742ba4db29071ed9b6407a.tar.gz
plugin.py: Added BST_REQUIRED_VERSION_MAJOR and BST_REQUIRED_VERSION_MINOR
Element and Source plugins can set this as class data to indicate the minimal BuildStream API they depend on.
Diffstat (limited to 'buildstream/plugin.py')
-rw-r--r--buildstream/plugin.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/buildstream/plugin.py b/buildstream/plugin.py
index 83e4d48ea..23a272389 100644
--- a/buildstream/plugin.py
+++ b/buildstream/plugin.py
@@ -41,6 +41,13 @@ class Plugin():
Some common features to both Sources and Elements are found
in this class.
"""
+
+ BST_REQUIRED_VERSION_MAJOR = 0
+ """Minimum required major version"""
+
+ BST_REQUIRED_VERSION_MINOR = 0
+ """Minimum required minor version"""
+
def __init__(self, name, context, project, provenance, type_tag):
self.name = name