From a311a14f4b0a649b5f872ab020885b0a1d6e09d1 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Tue, 28 Apr 2020 19:23:31 +0900 Subject: plugin.py/pluginfactory.py: Implementing BST_MIN_VERSION The BST_MIN_VERSION guards assert that the BuildStream core which loaded the plugin is compatible with the plugin itself. This commit adds BST_MIN_VERSION to the base plugin.py with documentation informing Plugin authors how to set the minimum version, and also adds the assertions at plugin loading time in pluginfactory.py. This commit also: * Adds the BST_MIN_VERSION specification to all current core plugins * Adds the BST_MIN_VERSION specification to plugins used in test cases --- src/buildstream/plugins/elements/junction.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/buildstream/plugins/elements/junction.py') diff --git a/src/buildstream/plugins/elements/junction.py b/src/buildstream/plugins/elements/junction.py index 46c4ddf68..917482d63 100644 --- a/src/buildstream/plugins/elements/junction.py +++ b/src/buildstream/plugins/elements/junction.py @@ -165,6 +165,8 @@ from buildstream._pipeline import PipelineError class JunctionElement(Element): # pylint: disable=attribute-defined-outside-init + BST_MIN_VERSION = "2.0" + # Junctions are not allowed any dependencies BST_FORBID_BDEPENDS = True BST_FORBID_RDEPENDS = True -- cgit v1.2.1