Add pbr version hook to fuel_bootstrap
Change-Id: I5f3778c86314c59d90a8f1b74a4aa1bc8e90241e
Closes-Bug: #1642549
(cherry picked from commit 0fd70bb712
)
This commit is contained in:
parent
4d5f9e9467
commit
d70c55831a
|
@ -12,6 +12,7 @@ build
|
||||||
dist
|
dist
|
||||||
|
|
||||||
*.egg
|
*.egg
|
||||||
|
*.eggs
|
||||||
.testrepository
|
.testrepository
|
||||||
.cache
|
.cache
|
||||||
.tox
|
.tox
|
||||||
|
|
|
@ -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
|
|
@ -22,6 +22,11 @@ classifier =
|
||||||
packages =
|
packages =
|
||||||
fuel_bootstrap
|
fuel_bootstrap
|
||||||
|
|
||||||
|
[global]
|
||||||
|
setup-hooks =
|
||||||
|
pbr.hooks.setup_hook
|
||||||
|
fuel_bootstrap.hooks.setup_hook
|
||||||
|
|
||||||
[entry_points]
|
[entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
fuel-bootstrap=fuel_bootstrap.main:main
|
fuel-bootstrap=fuel_bootstrap.main:main
|
||||||
|
|
Loading…
Reference in New Issue