Classes:
|
Functions:
|
A version consists of an alternating series of release numbers followed by an optional series of pre-release or post-release tags. A release number is a series of dot-separated numeric components. Release tags are a series of letters optionally followed by a release number. The pre-release tag name is alphabetically before "final". The post-release tag name is alphabetically greater than or equal to "final". For example, "1.0b2.dev-r41475" could denote Subversion revision 41475 of the in-development version of the second beta of release 1.0. Notice that "dev" is a pre-release tag, so this version is a lower version number than 1.0b2, which would be the actual second beta of release 1.0. But the "-r41475" is a post-release tag, so this version is newer than "1.0b2.dev".
Return (comparison string, StrictVersion)
The version number, if given, will be returned as a `StrictVersion` instance, otherwise it will be `None`.