Alexey Golubev | 6f55d7e | 2016-03-23 16:16:29 +0300 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | |
Max Rasskazov | cf8f6d8 | 2016-06-09 00:10:07 +0300 | [diff] [blame] | 3 | # Copyright (c) 2015-2016, Mirantis, Inc. |
Alexey Golubev | 6f55d7e | 2016-03-23 16:16:29 +0300 | [diff] [blame] | 4 | # |
Max Rasskazov | cf8f6d8 | 2016-06-09 00:10:07 +0300 | [diff] [blame] | 5 | # 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 Golubev | 6f55d7e | 2016-03-23 16:16:29 +0300 | [diff] [blame] | 8 | # |
Max Rasskazov | cf8f6d8 | 2016-06-09 00:10:07 +0300 | [diff] [blame] | 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
Alexey Golubev | 6f55d7e | 2016-03-23 16:16:29 +0300 | [diff] [blame] | 10 | # |
Max Rasskazov | cf8f6d8 | 2016-06-09 00:10:07 +0300 | [diff] [blame] | 11 | # 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 Golubev | 6f55d7e | 2016-03-23 16:16:29 +0300 | [diff] [blame] | 17 | |
| 18 | |
| 19 | def 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 |