summaryrefslogtreecommitdiff
path: root/tests/plugins/loading/plugins/elements/deprecated/deprecated.py
blob: 7184710bc3423117b8043071a82124938252bec3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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