Commits

Hong Minhee committed 38afeb2

Added `kong.version` module.

  • Participants
  • Parent commits 8ccbe54

Comments (0)

Files changed (5)

File docs/conf.py

 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 sys.path.insert(0, os.path.abspath('..'))
+from kong.version import VERSION
 
 # -- General configuration -----------------------------------------------------
 
 # built documents.
 #
 # The short X.Y version.
-version = '0.1'
+version = VERSION
 # The full version, including alpha/beta/rc tags.
-release = '0.1'
+release = VERSION
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

File docs/kong.rst

 
       kong/ast
       kong/lexer
+      kong/version
 

File docs/kong/version.rst

+
+.. automodule:: kong.version
+   :members:
+

File kong/version.py

+""":mod:`kong.version` --- Version data
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+"""
+
+#: (:class:`tuple`) The 3-tuple contains the version numbers
+#: e.g. ``(0, 1, 2)``.
+VERSION_INFO = (0, 1, 0)
+
+#: (:class:`basestring`) The version string e.g. ``'0.1.2'``.
+VERSION = '{0}.{1}.{2}'.format(*VERSION_INFO)
+
     from setuptools import setup
 except ImportError:
     from distutils.core import setup
+from kong.version import VERSION
 
 
 setup(name='Kong',
-      version='0.1',
+      version=VERSION,
       url='http://kong.dahlia.kr/',
       author='Hong Minhee',
       author_email='minhee' '@' 'dahlia.kr',