versioning: let pbr handle versioning from tags
In OpenStack projects, where pbr is used, this tool generates the versioning information from the tags. This patch moves us to use it too. Change-Id: Idf617e65a5970bb4e4a88a6496f06bf4be47ab5b Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
This commit is contained in:
parent
75cf79248c
commit
af26c7edbc
@ -9,8 +9,13 @@
|
||||
# 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
|
||||
|
||||
from kuryr_libnetwork import utils
|
||||
|
||||
|
||||
__version__ = pbr.version.VersionInfo(
|
||||
'kuryr-libnetwork').version_string()
|
||||
|
||||
|
||||
app = utils.make_json_app(__name__)
|
||||
|
@ -18,9 +18,9 @@ import os
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
import pbr.version
|
||||
|
||||
from kuryr.lib._i18n import _
|
||||
from kuryr.lib import version
|
||||
|
||||
|
||||
core_opts = [
|
||||
@ -112,5 +112,8 @@ log.register_options(CONF)
|
||||
|
||||
|
||||
def init(args, **kwargs):
|
||||
cfg.CONF(args=args, project='kuryr',
|
||||
version=version.version_info.release_string(), **kwargs)
|
||||
cfg.CONF(
|
||||
args=args,
|
||||
project='kuryr',
|
||||
version=pbr.version.VersionInfo('kuryr-libnetwork').version_string(),
|
||||
**kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user