diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-12-09 10:18:03 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-12-09 10:18:03 +0000 |
commit | 6c5ccdebceb8a675e62370e0ddab2942bb60d411 (patch) | |
tree | 193284ad4f238b4aae0352c36e904f323a367912 /pbr/packaging.py | |
parent | 379e42abde70300e426fb4e8d5115c67fd2e45b9 (diff) | |
parent | 768c53474ddaf78e6e89f56b36ac3273a6031b0a (diff) | |
download | pbr-6c5ccdebceb8a675e62370e0ddab2942bb60d411.tar.gz |
Merge "Enable pep8 H405 tests"
Diffstat (limited to 'pbr/packaging.py')
-rw-r--r-- | pbr/packaging.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py index 735d284..f929b4c 100644 --- a/pbr/packaging.py +++ b/pbr/packaging.py @@ -635,10 +635,12 @@ def _get_version_from_pkg_metadata(package_name): def get_version(package_name, pre_version=None): - """Get the version of the project. First, try getting it from PKG-INFO or - METADATA, 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 - or METADATA file, pull the version from git. + """Get the version of the project. + + First, try getting it from PKG-INFO or METADATA, 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 or METADATA 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 |