Module paludis :: Class VersionSpec
[show private | hide private]
[frames | no frames]

Type VersionSpec

object --+    
         |    
  instance --+
             |
            VersionSpec


A VersionSpec represents a version number (for example, 1.2.3b-r1).

See example_version_spec
Method Summary
  __init__(string)
__init__(string)
  __cmp__(...)
  __reduce__(...)
  __str__(...)
VersionSpec bump()
This is used by the ~> operator.
VersionSpec remove_revision()
Remove the revision part.
string revision_only()
Revision part only (or "r0").
    Inherited from instance
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Property Summary
  has_scm_part: [ro] bool Do we have an -scm part?
  has_try_part: [ro] bool Do we have a -try part?
  is_scm: [ro] bool Are we an -scm package, or something pretending to be one?

Class Variable Summary
int __instance_size__ = 24                                                                    

Method Details

__init__(string)
(Constructor)

__init__(string)
Overrides:
__builtin__.object.__init__

bump()

This is used by the ~> operator. It returns a VersionSpec where the next to last number is one greater (e.g. 5.3.1 => 5.4). Any non number parts are stripped (e.g. 1.2.3_alpha4-r5 => 1.3).
Returns:
VersionSpec

remove_revision()

Remove the revision part.
Returns:
VersionSpec

revision_only()

Revision part only (or "r0").
Returns:
string

Property Details

has_scm_part

[ro] bool Do we have an -scm part?
Get Method:
<Boost.Python.function object at 0x17482...

has_try_part

[ro] bool Do we have a -try part?
Get Method:
<Boost.Python.function object at 0x17482...

is_scm

[ro] bool Are we an -scm package, or something pretending to be one?
Get Method:
<Boost.Python.function object at 0x17482...

Class Variable Details

__instance_size__

Type:
int
Value:
24                                                                    

Generated by Epydoc 2.1 on Mon Aug 4 19:40:18 2008 http://epydoc.sf.net