Trees | Indices | Help |
|
---|
|
Module for parsing and testing package version predicate strings.
|
|||
VersionPredicate Parse and test package version predicates. |
|
|||
|
|||
|
|
|||
re_validPackage = re.compile(r'
|
|||
re_paren = re.compile(r'^\s
|
|||
re_splitComparison = re.compile(r'^\s
|
|||
compmap =
|
|||
_provision_rx = None
|
Imports: re, distutils, operator
|
Parse a single version comparison. Return (comparison string, StrictVersion) |
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')) |
|
re_validPackage
|
re_splitComparison
|
compmap
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Tue Jan 29 22:40:43 2008 | http://epydoc.sourceforge.net |