Skip to main content

get_version

Return a PEP 440-compliant version number from VERSION.

def get_version(
version: tuple = null
) - > string

Return a PEP 440-compliant version number from VERSION.

Parameters

NameTypeDescription
versiontuple = nullA five-element tuple representing the version components (major, minor, micro, release level, and serial); if omitted, the global VERSION is used.

Returns

TypeDescription
stringA PEP 440-compliant version string consisting of the main version components and any applicable pre-release or development suffixes.