module documentation
Module for parsing and testing package version predicate strings.
Class |
|
Parse and test package version predicates. |
Function | split |
Return the name and optional version number of a provision. |
Function | split |
Parse a single version comparison. |
Variable | compmap |
Undocumented |
Variable | re |
Undocumented |
Variable | re_split |
Undocumented |
Variable | re_valid |
Undocumented |
Variable | _provision |
Undocumented |
Return the name and optional version number of a provision. The version number, if given, will be returned as a `StrictVersion` instance, otherwise it will be `None`. >>> split_provision('mypkg') ('mypkg', None) >>> split_provision(' mypkg( 1.2 ) ') ('mypkg', StrictVersion ('1.2'))