Skip to content

Commit f6a088d

Browse files
committed
version var clean up.
1 parent 84853f4 commit f6a088d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

NodeGraphQt/constants.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,20 @@
88
from .pkg_info import __version__
99

1010
__doc__ = """
11-
The ``NodeGraphQt.constants`` namespace contains variables used throughout
12-
the whole ``NodeGraphQt`` library.
11+
| The ``NodeGraphQt.constants`` namespace contains variables used throughout
12+
the whole NodeGraphQt library.
1313
"""
1414

1515
# =================================== GLOBAL ===================================
1616

17-
#: Current version of the NodeGraphQt framework.
17+
#: current version.
1818
VERSION = __version__
19+
#: major version.
20+
VERSION_MAJOR = int(VERSION.split('.')[0])
21+
#: minor version.
22+
VERSION_MINOR = int(VERSION.split('.')[1])
23+
#: patch version.
24+
VERSION_PATCH = int(VERSION.split('.')[2])
1925

2026
# ==================================== PIPE ====================================
2127

0 commit comments

Comments
 (0)