-
Notifications
You must be signed in to change notification settings - Fork 5
/
version.py
52 lines (44 loc) · 1.54 KB
/
version.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# _ __ _ ___ _ ___ _ _
# | |/ /_ _ __ _| |_ ___ __/ __| __ _| |___ _ __ ___| _ \ |_ _ __ _(_)_ _
# | ' <| '_/ _` | _/ _ (_-<__ \/ _` | / _ \ ' \/ -_) _/ | || / _` | | ' \
# |_|\_\_| \__,_|\__\___/__/___/\__,_|_\___/_|_|_\___|_| |_|\_,_\__, |_|_||_|
# |___/
# License: BSD License ; see LICENSE
#
# Main authors: Philipp Bucher (https://github.com/philbucher)
#
"""
This file defines the versioning of the plugin
It follows https://semver.org/
It also contains which versions of Salome the plugin has been tested with
NOTE: This file must NOT have dependencies on other files in the plugin!
"""
# versions of the plugin
__MAJOR = 1
__MINOR = 0
__PATCH = 0
def GetVersionMajor():
"""returns the major version of the plugin as int"""
return __MAJOR
def GetVersionMinor():
"""returns the minor version of the plugin as int"""
return __MINOR
def GetVersionPatch():
"""returns the patch version of the plugin as int"""
return __PATCH
def GetVersions():
"""returns the versions of the plugin as a list of integers
see salome_version.getVersion()
"""
return [__MAJOR, __MINOR, __PATCH]
def GetVersionString():
"""returns the versions of the plugin as a string with versions separated by "."
see salome_version.getVersions()
"""
return "{}.{}.{}".format(__MAJOR, __MINOR, __PATCH)
# versions of salome with which the plugin was tested
TESTED_SALOME_VERSIONS = [
[9,3,0],
[9,4,0],
[9,5,0]
]