Add pbr version hook to fuel_bootstrap

Change-Id: I5f3778c86314c59d90a8f1b74a4aa1bc8e90241e
Closes-Bug: #1642549
This commit is contained in:
Vladimir Kozhukalov 2016-11-17 14:07:33 +03:00
parent 075fc9e257
commit 0fd70bb712
3 changed files with 27 additions and 0 deletions

1
.gitignore vendored
View File

@ -12,6 +12,7 @@ build
dist
*.egg
*.eggs
.testrepository
.cache
.tox

View File

@ -0,0 +1,21 @@
# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
def setup_hook(config):
import pbr
import pbr.packaging
# this monkey patch is to avoid appending git version to version
pbr.packaging._get_version_from_git = lambda pre_version: pre_version

View File

@ -22,6 +22,11 @@ classifier =
packages =
fuel_bootstrap
[global]
setup-hooks =
pbr.hooks.setup_hook
fuel_bootstrap.hooks.setup_hook
[entry_points]
console_scripts =
fuel-bootstrap=fuel_bootstrap.main:main