/usr/lib/python2.6/site-packages/pbr
Edit: /usr/lib/python2.6/site-packages/pbr/version.pyc (16528B)
Ñò
;vVc @ so d Z d d k Z d d k Z d d k Z d d k Z d „ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d S( s9
Utilities for consuming the version from pkg_resources.
iÿÿÿÿNc C s- y t | ƒ t SWn t j
o t SXd S( N( t intt Truet
ValueErrort False( t string( ( s( /tmp/pip-build-cD3xZi/pbr/pbr/version.pyt _is_int s
t SemanticVersionc B sà e Z d Z d d d d d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d
„ Z d „ Z
e d „ ƒ Z d
„ Z d „ Z d „ Z e e d „ Z d d „ Z d „ Z d „ Z d „ Z d „ Z RS( sv A pure semantic version independent of serialisation.
See the pbr doc 'semver' for details on the semantics.
i c C sc | | _ | | _ | | _ | | _ | | _ | i o | i o
d | _ n | p d | _ d S( s
Create a SemanticVersion.
:param major: Major component of the version.
:param minor: Minor component of the version. Defaults to 0.
:param patch: Patch level component. Defaults to 0.
:param prerelease_type: What sort of prerelease version this is -
one of a(alpha), b(beta) or rc(release candidate).
:param prerelease: For prerelease versions, what number prerelease.
Defaults to 0.
:param dev_count: How many commits since the last release.
i N( t _majort _minort _patcht _prerelease_typet _prereleaset
_dev_count( t selft majort minort patcht prerelease_typet
prereleaset dev_count( ( s( /tmp/pip-build-cD3xZi/pbr/pbr/version.pyt __init__* s
c C s% t | t ƒ p t S| i | i j S( N( t
isinstanceR R t __dict__( R
t other( ( s( /tmp/pip-build-cD3xZi/pbr/pbr/version.pyt __eq__A s c C s t t t | i i ƒ ƒ ƒ S( N( t sumt mapt hashR t values( R
( ( s( /tmp/pip-build-cD3xZi/pbr/pbr/version.pyt __hash__F s c C s€ h d d 6d d 6d d 6d d 6} | i o | i o
d } n d } | i | i | i | | | i | i | i p t i f S( s. Return a key for sorting SemanticVersion's on.t at bt rct zi i N( t NoneR R
R R R R t syst maxsize( R
t rc_lookupt uq_dev( ( s( /tmp/pip-build-cD3xZi/pbr/pbr/version.pyt _sort_keyI s "
c C s6 t | t ƒ p t d ƒ ‚ n | i ƒ | i ƒ j S( s1 Compare self and other, another Semantic Version.s, ordering to non-SemanticVersion is undefined( R R t TypeErrorR' ( R
R ( ( s( /tmp/pip-build-cD3xZi/pbr/pbr/version.pyt __lt__` s c C s | | j p
| | j S( N( ( R
R ( ( s( /tmp/pip-build-cD3xZi/pbr/pbr/version.pyt __le__j s c C s | | j S( N( ( R
R ( ( s( /tmp/pip-build-cD3xZi/pbr/pbr/version.pyt __ge__m s c C s | | j S( N( ( R
R ( ( s( /tmp/pip-build-cD3xZi/pbr/pbr/version.pyt __gt__p s c C s | | j S( N( ( R
R ( ( s( /tmp/pip-build-cD3xZi/pbr/pbr/version.pyt __ne__s s c C s d | i ƒ S( Ns pbr.version.SemanticVersion(%s)( t release_string( R
( ( s( /tmp/pip-build-cD3xZi/pbr/pbr/version.pyt __repr__v s c C s~ | d i ƒ p t d | ƒ ‚ n | i d ƒ } g } | D] } | i ƒ o | | q? q? ~ } t | ƒ } | d j o t d | ƒ ‚ n¶ | d j o¨ | t | ƒ j oy | | d i ƒ od | | } d i t i d „ | ƒ ƒ } | i | ƒ | | t | ƒ g | | | d +| d 7} n | i d g d | ƒ n | i | | ƒ t | d ƒ } t | d ƒ }
d } d } d }
d } d „ } t | d ƒ o t | d ƒ } n d } d g | d d +| d } t } y&