The openstack_dashboard.openstack.common.setup ModuleΒΆ

Utilities with minimum-depends for use in setup.py

openstack_dashboard.openstack.common.setup.canonicalize_emails(changelog, mapping)[source]

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

openstack_dashboard.openstack.common.setup.generate_authors()[source]

Create AUTHORS file using git commits.

openstack_dashboard.openstack.common.setup.get_cmdclass()[source]

Return dict of commands to run from setup.py.

openstack_dashboard.openstack.common.setup.get_reqs_from_files(requirements_files)[source]
openstack_dashboard.openstack.common.setup.get_version(package_name, pre_version=None)[source]

Get the version of the project. First, try getting it from PKG-INFO, if it exists. If it does, that means we’re in a distribution tarball or that install has happened. Otherwise, if there is no PKG-INFO file, pull the version from git.

We do not support setup.py version sanity in git archive tarballs, nor do we support packagers directly sucking our git repo into theirs. We expect that a source tarball be made from our git repo - or that if someone wants to make a source tarball from a fork of our repo with additional tags in it that they understand and desire the results of doing that.

openstack_dashboard.openstack.common.setup.get_version_from_git(pre_version)[source]

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.

openstack_dashboard.openstack.common.setup.get_version_from_pkg_info(package_name)[source]

Get the version from PKG-INFO file if we can.

openstack_dashboard.openstack.common.setup.parse_dependency_links(requirements_files=['requirements.txt', 'tools/pip-requires'])[source]
openstack_dashboard.openstack.common.setup.parse_mailmap(mailmap='.mailmap')[source]
openstack_dashboard.openstack.common.setup.parse_requirements(requirements_files=['requirements.txt', 'tools/pip-requires'])[source]
openstack_dashboard.openstack.common.setup.write_git_changelog()[source]

Write a changelog based on the git changelog.

Previous topic

The openstack_dashboard.openstack.common.version Module

Next topic

The openstack_dashboard.local Module

This Page