Helpers for comparing version strings.
New in version 1.6.
Convert a version to an integer.
version must be a string with dots or a tuple of integers.
New in version 2.0.
Convert a version integer to a string with dots.
New in version 2.0.
Convert a version string with dots to a tuple.
New in version 2.0.
Determine whether requested_version is satisfied by current_version; in other words, current_version is >= requested_version.
requested_version – version to check for compatibility
current_version – version to check against
same_major – if True, the major version must be identical between requested_version and current_version. This is used when a major-version difference indicates incompatibility between the two versions. Since this is the common-case in practice, the default is True.
True if compatible, False if not
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.