The ceilometer.openstack.common.version Module

Utilities for consuming the version from pkg_resources.

class ceilometer.openstack.common.version.VersionInfo(package)[source]

Bases: object

cached_version_string(prefix='')[source]

Generate an object which will expand in a string context to the results of version_string(). We do this so that don’t call into pkg_resources every time we start up a program when passing version information into the CONF constructor, but rather only do the calculation when and if a version is requested

canonical_version_string()

Return the short version minus any alpha/beta tags.

release_string()[source]

Return the full version of the package including suffixes indicating VCS status.

version_string()[source]

Return the short version minus any alpha/beta tags.

version_string_with_vcs()

Return the full version of the package including suffixes indicating VCS status.

Previous topic

The ceilometer.openstack.common.timeutils Module

Next topic

The ceilometer.pipeline Module

This Page