BigBrotherBot v1.9.0
System Development Information for the BigBrotherBot project.

b3::update::B3version Class Reference

List of all members.

Public Member Functions

def parse
def __cmp__
def parse
def __cmp__

Public Attributes

 version
 prerelease
 build_num

Static Public Attributes

tuple version_re
dictionary prerelease_order = {'dev': 0, 'a': 1, 'b': 2}

Private Member Functions

def __cmp_prerelease
def __cmp_build
def __cmp_prerelease
def __cmp_build

Detailed Description

Version numbering for BigBrotherBot.
Compared to version.StrictVersion this class allows version numbers such as :
    1.0dev
    1.0dev2
    1.0d3
    1.0a
    1.0a
    1.0a34
    1.0b
    1.0b1
    1.0b3
    1.9.0dev7.daily21-20121004
And make sure that any 'dev' prerelease is inferior to any 'alpha' prerelease

Member Function Documentation

def b3::update::B3version::__cmp__ (   self,
  other 
)
def b3::update::B3version::__cmp__ (   self,
  other 
)
def b3::update::B3version::__cmp_build (   self,
  other 
) [private]
def b3::update::B3version::__cmp_build (   self,
  other 
) [private]
def b3::update::B3version::__cmp_prerelease (   self,
  other 
) [private]
def b3::update::B3version::__cmp_prerelease (   self,
  other 
) [private]
def b3::update::B3version::parse (   self,
  vstring 
)
def b3::update::B3version::parse (   self,
  vstring 
)

Member Data Documentation

dictionary b3::update::B3version::prerelease_order = {'dev': 0, 'a': 1, 'b': 2} [static]
Initial value:
re.compile(r'''^
(?P<major>\d+)\.(?P<minor>\d+)   # 1.2
(?:\. (?P<patch>\d+))?           # 1.2.45
(?P<prerelease>                  # 1.2.45b2
  (?P<tag>a|b|dev)
  (?P<tag_num>\d+)?
)?
(?P<daily>                       # 1.2.45b2.daily4-20120901
    \.daily(?P<build_num>\d+?)
    (?:-20\d\d\d\d\d\d)?
)?
$''', re.VERBOSE)

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Properties