Overview
A very convenient, simple python package for interacting with standard MAJOR.MINOR.PATCH version number strings.
1 import rocon_semantic_version as semantic_version
2
3 version = semantic_version.Version("1.5.2")
4 print("Major Version: %s" % version.major) # 1
5 print("Minor Version: %s" % version.minor) # 5
6 print("Patch Version: %s" % version.patch) # 2
7
8 version2 = semantic_version.Version("1.5.3")
9 version < version2 # True
Note that it has been renamespaced to rocon_semantic_version to avoid conflicts with a locally installed module. See the original documentation for more information.