Switch to using version.canonical_version_string

Change-Id: Id095c61325b0d64bc77b742abf72958aeb4cde4d
This commit is contained in:
Steve Baker 2013-01-04 16:53:10 +13:00
parent 712e1726ad
commit bc972b214e
3 changed files with 12 additions and 1 deletions

View File

@ -15,5 +15,8 @@
from heatclient.openstack.common import version as common_version from heatclient.openstack.common import version as common_version
NEXT_VERSION = '0.2.0'
version_info = common_version.VersionInfo('heatclient', version_info = common_version.VersionInfo('heatclient',
pre_version=NEXT_VERSION,
python_package='python-heatclient') python_package='python-heatclient')

View File

@ -13,3 +13,8 @@ all_files = 1
[upload_sphinx] [upload_sphinx]
upload-dir = doc/build/html upload-dir = doc/build/html
[egg_info]
tag_build = dev
tag_date = false
tag_svn_revision = 0

5
setup.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/python
#
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
@ -14,6 +16,7 @@ import os
import setuptools import setuptools
from heatclient.openstack.common import setup from heatclient.openstack.common import setup
from heatclient.version import version_info as version
def read(fname): def read(fname):
@ -21,7 +24,7 @@ def read(fname):
setuptools.setup( setuptools.setup(
name="python-heatclient", name="python-heatclient",
version=setup.get_post_version('heatclient'), version=version.canonical_version_string(always=True),
author='Heat API Developers', author='Heat API Developers',
author_email='discuss@heat-api.org', author_email='discuss@heat-api.org',
description="Client library for Heat orchestration API", description="Client library for Heat orchestration API",