Merge "Remove pbr import from fuel_agent's setup.py"

This commit is contained in:
Jenkins 2015-07-10 06:09:15 +00:00 committed by Gerrit Code Review
commit c14c67a1d4
3 changed files with 26 additions and 7 deletions

21
fuel_agent/hooks.py Normal file
View File

@ -0,0 +1,21 @@
# Copyright 2015 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

@ -32,6 +32,11 @@ autodoc_index_modules = True
# from other subprojects in this repository
skip_git_sdist = True
[global]
setup-hooks =
pbr.hooks.setup_hook
fuel_agent.hooks.setup_hook
[build_sphinx]
all_files = 1
build-dir = doc/build

View File

@ -14,13 +14,6 @@
import setuptools
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
setuptools.setup(
setup_requires=['pbr'],