From 744ded7f1ba056e2d4e8f28516c1c325e431a96f Mon Sep 17 00:00:00 2001 From: Matt Wright Date: Tue, 27 Mar 2012 18:49:01 -0400 Subject: [PATCH] Consolidate version number in one place --- docs/conf.py | 5 +++-- flask_security/__init__.py | 2 ++ setup.py | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index c4b51f6..4714e0a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,6 +12,7 @@ # serve to show the default. import sys, os +from flask_security import __version__ # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -49,9 +50,9 @@ copyright = u'2012, Matt Wright' # built documents. # # The short X.Y version. -version = '1.1' +version = __version__ # The full version, including alpha/beta/rc tags. -release = '1.1.0' +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/flask_security/__init__.py b/flask_security/__init__.py index 0ed3995..721652a 100644 --- a/flask_security/__init__.py +++ b/flask_security/__init__.py @@ -10,6 +10,8 @@ :license: MIT, see LICENSE for more details. """ +__version__ = '1.2.1' + import sys from datetime import datetime diff --git a/setup.py b/setup.py index 44276ed..f609903 100644 --- a/setup.py +++ b/setup.py @@ -12,11 +12,12 @@ Links `_ """ +from flask_security import __version__ from setuptools import setup setup( name='Flask-Security', - version='1.2.1-dev', + version=__version__, url='https://github.com/mattupstate/flask-security', license='MIT', author='Matthew Wright',