def pip._vendor.distlib.version.Matcher.__init__ |
( |
|
self, |
|
|
|
s |
|
) |
| |
def pip._vendor.distlib.version.Matcher.__eq__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
def pip._vendor.distlib.version.Matcher.__hash__ |
( |
|
self | ) |
|
def pip._vendor.distlib.version.Matcher.__ne__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
def pip._vendor.distlib.version.Matcher.__repr__ |
( |
|
self | ) |
|
def pip._vendor.distlib.version.Matcher.__str__ |
( |
|
self | ) |
|
def pip._vendor.distlib.version.Matcher._check_compatible |
( |
|
self, |
|
|
|
other |
|
) |
| |
|
private |
def pip._vendor.distlib.version.Matcher.exact_version |
( |
|
self | ) |
|
def pip._vendor.distlib.version.Matcher.match |
( |
|
self, |
|
|
|
version |
|
) |
| |
Check if the provided version matches the constraints.
:param version: The version to match against this instance.
:type version: Strring or :class:`Version` instance.
dictionary pip._vendor.distlib.version.Matcher._operators |
|
staticprivate |
Initial value:
2 '<':
lambda v, c, p: v < c,
3 '>':
lambda v, c, p: v > c,
4 '<=':
lambda v, c, p: v == c
or v < c,
5 '>=':
lambda v, c, p: v == c
or v > c,
6 '==':
lambda v, c, p: v == c,
8 '~=':
lambda v, c, p: v == c
or v > c,
9 '!=':
lambda v, c, p: v != c,
pip._vendor.distlib.version.Matcher._parts |
|
private |
pip._vendor.distlib.version.Matcher._string |
|
private |
tuple pip._vendor.distlib.version.Matcher.comp_re = re.compile(r'^(<=|>=|<|>|!=|==|~=)?\s*([^\s,]+)$') |
|
static |
tuple pip._vendor.distlib.version.Matcher.dist_re = re.compile(r"^(\w[\s\w'.-]*)(\((.*)\))?") |
|
static |
pip._vendor.distlib.version.Matcher.key |
pip._vendor.distlib.version.Matcher.name |
tuple pip._vendor.distlib.version.Matcher.num_re = re.compile(r'^\d+(\.\d+)*$') |
|
static |
pip._vendor.distlib.version.Matcher.version_class = None |
|
static |
The documentation for this class was generated from the following file:
- orbits/lib/python2.7/site-packages/pip/_vendor/distlib/version.py
Copyright 2014 Google Inc. All rights reserved.