Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Classes | Functions | Variables
pip._vendor.distlib.version Namespace Reference

Classes

class  UnsupportedVersionError
 
class  Version
 
class  Matcher
 
class  NormalizedVersion
 
class  NormalizedMatcher
 

Functions

def _pep426_key
 
def _match_prefix
 

Variables

list __all__
 
tuple logger = logging.getLogger(__name__)
 
tuple PEP426_VERSION_RE
 
 _normalized_key = _pep426_key
 
tuple _REPLACEMENTS
 

Function Documentation

def pip._vendor.distlib.version._match_prefix (   x,
  y 
)
private
def pip._vendor.distlib.version._pep426_key (   s)
private

Variable Documentation

list pip._vendor.distlib.version.__all__
Initial value:
1 = ['NormalizedVersion', 'NormalizedMatcher',
2  'LegacyVersion', 'LegacyMatcher',
3  'SemanticVersion', 'SemanticMatcher',
4  'UnsupportedVersionError', 'get_scheme']
pip._vendor.distlib.version._normalized_key = _pep426_key
tuple pip._vendor.distlib.version._REPLACEMENTS
Initial value:
1 = (
2  (re.compile('[.+-]$'), ''), # remove trailing puncts
3  (re.compile(r'^[.](\d)'), r'0.\1'), # .N -> 0.N at start
4  (re.compile('^[.-]'), ''), # remove leading puncts
5  (re.compile(r'^\((.*)\)$'), r'\1'), # remove parentheses
6  (re.compile(r'^v(ersion)?\s*(\d+)'), r'\2'), # remove leading v(ersion)
7  (re.compile(r'^r(ev)?\s*(\d+)'), r'\2'), # remove leading v(ersion)
8  (re.compile('[.]{2,}'), '.'), # multiple runs of '.'
9  (re.compile(r'\b(alfa|apha)\b'), 'alpha'), # misspelt alpha
10  (re.compile(r'\b(pre-alpha|prealpha)\b'),
11  'pre.alpha'), # standardise
12  (re.compile(r'\(beta\)$'), 'beta'), # remove parentheses
13 )
tuple pip._vendor.distlib.version.logger = logging.getLogger(__name__)
tuple pip._vendor.distlib.version.PEP426_VERSION_RE
Initial value:
1 = re.compile(r'^(\d+(\.\d+)*)((a|b|c|rc)(\d+))?'
2  r'(\.(post)(\d+))?(\.(dev)(\d+))?'
3  r'(-(\d+(\.\d+)?))?$')

Copyright 2014 Google Inc. All rights reserved.