CQL version file instead of manually updating

This commit is contained in:
Jon Haddad
2013-06-27 14:58:32 -07:00
parent 75d20b6920
commit 5cc63e67cf
4 changed files with 10 additions and 4 deletions

1
cqlengine/VERSION Normal file
View File

@@ -0,0 +1 @@
0.4.8

View File

@@ -3,5 +3,7 @@ from cqlengine.functions import *
from cqlengine.models import Model
from cqlengine.query import BatchQuery
__version__ = '0.4.7'
__cqlengine_version_path__ = os.path.realpath(__file__ + '/../VERSION')
__version__ = open(__cqlengine_version_path__, 'r').readline().strip()

View File

@@ -47,10 +47,13 @@ copyright = u'2012, Blake Eggleston'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
__cqlengine_version_path__ = os.path.realpath(__file__ + '/../VERSION')
# The short X.Y version.
version = '0.4.7'
version = open(__cqlengine_version_path__, 'r').readline().strip()
# The full version, including alpha/beta/rc tags.
release = '0.4.7'
release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View File

@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
#python setup.py register
#python setup.py sdist upload
version = '0.4.7'
version = open('cqlengine/VERSION', 'r').readline().strip()
long_desc = """
Cassandra CQL 3 Object Mapper for Python