From 02bfc3364e9b1b6ec34091ed11c304d0db0a400d Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Wed, 29 Dec 2010 16:10:18 +0100 Subject: [PATCH] New versionning. --- doc/conf.py | 3 ++- setup.py | 5 ++++- sjrpc/__init__.py | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 4250d04..d5919cd 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -45,7 +45,8 @@ copyright = u'2010, Smartjog' # built documents. # # The short X.Y version. -version = 4 +from sjrpc import __version__ +version = __version__ # The full version, including alpha/beta/rc tags. release = version diff --git a/setup.py b/setup.py index cdf5d35..57a13c5 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,12 @@ import os ldesc = open(os.path.join(os.path.dirname(__file__), 'README')).read() +# Retrieval of version: +from sjrpc import __version__ + setup( name='sjrpc', - version='6', + version=__version__, description='Smartjog RPC', long_description=ldesc, author='Antoine Millet', diff --git a/sjrpc/__init__.py b/sjrpc/__init__.py index 648e18e..12844f8 100644 --- a/sjrpc/__init__.py +++ b/sjrpc/__init__.py @@ -20,3 +20,5 @@ import sjrpc.core import sjrpc.server import sjrpc.client import sjrpc.utils + +__version__ = 6 -- GitLab