sugar3.bundle.bundleversion module

exception sugar3.bundle.bundleversion.InvalidVersionError

Bases: exceptions.Exception

The passed activity version can not be normalized.

class sugar3.bundle.bundleversion.NormalizedVersion(activity_version)

Bases: object

A normalized version.

Good:
1 1.2 1.2.3 1.2.3-peru
Bad:
1.2peru # must be separated with - 1.2. # can’t end with ‘.’ 1.02.5 # can’t have a leading zero