You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/05/21 22:31:55 UTC
svn commit: r1125801 - /incubator/libcloud/trunk/setup.py
Author: tomaz
Date: Sat May 21 20:31:55 2011
New Revision: 1125801
URL: http://svn.apache.org/viewvc?rev=1125801&view=rev
Log:
Read the version number from the libcloud/__init__.py file
Modified:
incubator/libcloud/trunk/setup.py
Modified: incubator/libcloud/trunk/setup.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/setup.py?rev=1125801&r1=1125800&r2=1125801&view=diff
==============================================================================
--- incubator/libcloud/trunk/setup.py (original)
+++ incubator/libcloud/trunk/setup.py Sat May 21 20:31:55 2011
@@ -31,6 +31,13 @@ TEST_PATHS = [ 'test', 'test/compute', '
DOC_TEST_MODULES = [ 'libcloud.compute.drivers.dummy',
'libcloud.storage.drivers.dummy' ]
+def read_version_string():
+ version = None
+ sys.path.insert(0, pjoin(os.getcwd()))
+ from libcloud import __version__
+ version = __version__
+ return version
+
class TestCommand(Command):
user_options = []
@@ -139,7 +146,7 @@ pre_python26 = (sys.version_info[0] == 2
setup(
name='apache-libcloud',
- version='0.4.3',
+ version=read_version_string(),
description='A unified interface into many cloud server providers',
author='Apache Software Foundation',
author_email='libcloud@incubator.apache.org',