fix(init): remove duplicated version code
The __init__.py is loading the exact copy of version.py [0]. User should be using the version.py code rather than having the version information be part of the module's __init__. This patch set fixes this duplication. [0] https://github.com/openstack/airship-armada/blob/master/armada/version.py Change-Id: I5143c1ad094d5373066ff8e1a2f5bc1d5b3255e4 Signed-off-by: Tin Lam <tin@irrational.io>
This commit is contained in:
parent
78ff1ee2c8
commit
b61f3ebf95
@ -1,23 +0,0 @@
|
||||
# Copyright 2017 The Armada Authors.
|
||||
#
|
||||
# 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.
|
||||
|
||||
import pbr.version
|
||||
|
||||
__all__ = ['__version__']
|
||||
|
||||
version_info = pbr.version.VersionInfo('armada')
|
||||
try:
|
||||
__version__ = version_info.version_string()
|
||||
except AttributeError:
|
||||
__version__ = None
|
Loading…
Reference in New Issue
Block a user