forked from KitwareMedical/VTKPythonPackage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvtkVersion.py
More file actions
25 lines (21 loc) · 675 Bytes
/
Copy pathvtkVersion.py
File metadata and controls
25 lines (21 loc) · 675 Bytes
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
VERSION = '8.1.2'
def get_versions():
"""Returns versions for the VTK Python package.
from vtkVersion import get_versions
# Returns the VTK repository version
get_versions()['version']
# Returns the package version. Since GitHub Releases do not support the '+'
# character in file names, this does not contain the local version
# identifier in nightly builds, i.e.
#
# '4.11.0.dev20170208'
#
# instead of
#
# '4.11.0.dev20170208+139.g922f2d9'
get_versions()['package-version']
"""
versions = {}
versions['version'] = VERSION
versions['package-version'] = VERSION.split('+')[0]
return versions