summaryrefslogtreecommitdiff
path: root/tests/plugins/loading/plugins/elements/deprecated/deprecated.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/loading/plugins/elements/deprecated/deprecated.py')
-rw-r--r--tests/plugins/loading/plugins/elements/deprecated/deprecated.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/plugins/loading/plugins/elements/deprecated/deprecated.py b/tests/plugins/loading/plugins/elements/deprecated/deprecated.py
new file mode 100644
index 000000000..7184710bc
--- /dev/null
+++ b/tests/plugins/loading/plugins/elements/deprecated/deprecated.py
@@ -0,0 +1,21 @@
+from buildstream import Element
+
+
+class Deprecated(Element):
+ BST_MIN_VERSION = "2.0"
+ BST_PLUGIN_DEPRECATED = True
+ BST_PLUGIN_DEPRECATION_MESSAGE = "Here is some detail."
+
+ def configure(self, node):
+ pass
+
+ def preflight(self):
+ pass
+
+ def get_unique_key(self):
+ return {}
+
+
+# Plugin entry point
+def setup():
+ return Deprecated