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/sources/remote.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/buildstream/plugins/sources/remote.py') diff --git a/src/buildstream/plugins/sources/remote.py b/src/buildstream/plugins/sources/remote.py index 29333c0d9..57d8743a7 100644 --- a/src/buildstream/plugins/sources/remote.py +++ b/src/buildstream/plugins/sources/remote.py @@ -55,6 +55,8 @@ from ._downloadablefilesource import DownloadableFileSource class RemoteSource(DownloadableFileSource): # pylint: disable=attribute-defined-outside-init + BST_MIN_VERSION = "2.0" + def configure(self, node): super().configure(node) -- cgit v1.2.1