14 lines
260 B
Python
14 lines
260 B
Python
# standard imports
|
|
import semver
|
|
|
|
version = (0, 3, 1, 'alpha.6')
|
|
|
|
version_object = semver.VersionInfo(
|
|
major=version[0],
|
|
minor=version[1],
|
|
patch=version[2],
|
|
prerelease=version[3],
|
|
)
|
|
|
|
version_string = str(version_object)
|