Debian Codegraph @

docs/user_guide/plugin_development/plugin_compatibility_settings.rst

raw
1 Plugin compatibility settings
2 =============================
3
4 Errbot compatibility
5 --------------------
6
7 Sometimes when your plugin breaks under a specific version of Errbot, you
8 might want to warn the user of your plugin and not load it.
9
10
11 You can do it by adding an **Errbot** section to your plug file like this:
12
13 .. code-block:: ini
14
15 [Core]
16 Name = MyPlugin
17 Module = myplugin
18
19 [Documentation]
20 Description = my plugin
21
22 [Errbot]
23 Min=2.4.0
24 Max=2.6.0
25
26 If the **Errbot** section is omitted, it defaults to "compatible with any version".
27
28 If the **Min** option is omitted, there is no minimum version enforced.
29
30 If the **Max** option is omitted, there is no maximum version enforced.
31
32 Versions need to be a 3 dotted one (ie 2.4 is not allowed but 2.4.0 is). And it understands
33 those suffixes:
34
35 - "-beta"
36 - "-rc1"
37 - "-rc2"
38 - etc.
39
40 For example: 2.4.0-rc1
41
42 note: -beta1 or -rc are illegal. Only rc can get a numerical suffix.