From 79491857ff8bf04e4262d15162efb9e98e7820d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Albert?= Date: Mon, 19 Oct 2015 17:23:13 +0200 Subject: [PATCH] Removed version information from setup.cfg Added pbr versioning in __init__ Change-Id: I354a72a3123c5cade393a4071da547c2dedfa256 --- cloudkitty/__init__.py | 19 +++++++++++++++++++ setup.cfg | 1 - 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/cloudkitty/__init__.py b/cloudkitty/__init__.py index e69de29b..936f06d9 100644 --- a/cloudkitty/__init__.py +++ b/cloudkitty/__init__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +# 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 + + +__version__ = pbr.version.VersionInfo( + 'cloudkitty').version_string() diff --git a/setup.cfg b/setup.cfg index 009a41c6..333ad3d5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,5 @@ [metadata] name = cloudkitty -version = 0.5 summary = Rating as a Service component for OpenStack description-file = README.rst