blob: 284f3dfeff53849c980ef89d29b452f9538b7c6d [file] [log] [blame]
Alexey Golubev6f55d7e2016-03-23 16:16:29 +03001# -*- coding: utf-8 -*-
2
Max Rasskazovcf8f6d82016-06-09 00:10:07 +03003# Copyright (c) 2015-2016, Mirantis, Inc.
Alexey Golubev6f55d7e2016-03-23 16:16:29 +03004#
Max Rasskazovcf8f6d82016-06-09 00:10:07 +03005# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
Alexey Golubev6f55d7e2016-03-23 16:16:29 +03008#
Max Rasskazovcf8f6d82016-06-09 00:10:07 +03009# http://www.apache.org/licenses/LICENSE-2.0
Alexey Golubev6f55d7e2016-03-23 16:16:29 +030010#
Max Rasskazovcf8f6d82016-06-09 00:10:07 +030011# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14# implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
Alexey Golubev6f55d7e2016-03-23 16:16:29 +030017
18
19def setup_hook(config):
20 import pbr
21 import pbr.packaging
22
23 # this monkey patch is to avoid appending git version to version
24 pbr.packaging._get_version_from_git = lambda pre_version: pre_version