Previous topic

The cinder.openstack.common.rpc.proxy Module

Next topic

The cinder.openstack.common.timeutils Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.openstack.common.setup Module

Utilities with minimum-depends for use in setup.py

canonicalize_emails(changelog, mapping)

Takes in a string and an email alias mapping and replaces all instances of the aliases in the string with their real email.

generate_authors()

Create AUTHORS file using git commits.

get_cmdclass()

Return dict of commands to run from setup.py.

get_git_branchname()
get_post_version(projectname)

Return a version which is equal to the tag that’s on the current revision if there is one, or tag plus number of additional revisions if the current revision has no tag.

get_pre_version(projectname, base_version)

Return a version which is leading up to a version that will be released in the future.

get_reqs_from_files(requirements_files)
parse_mailmap(mailmap='.mailmap')
parse_requirements(requirements_files=['requirements.txt', 'tools/pip-requires'])
read_versioninfo(project)

Read the versioninfo file. If it doesn’t exist, we’re in a github zipball, and there’s really no way to know what version we really are, but that should be ok, because the utility of that should be just about nil if this code path is in use in the first place.

write_git_changelog()

Write a changelog based on the git changelog.

write_requirements()
write_versioninfo(project, version)

Write a simple file containing the version of the package.