Commit 9bd91b38 authored by Priit Laes's avatar Priit Laes

Defining flask_admin.__version__ and use it where appropriate

parent 4ffb88b3
...@@ -17,6 +17,8 @@ import sys, os ...@@ -17,6 +17,8 @@ import sys, os
# add these directories to sys.path here. If the directory is relative to the # 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. # documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..')) sys.path.insert(0, os.path.abspath('..'))
import flask_admin
from flask_admin import __version__
# -- General configuration ----------------------------------------------------- # -- General configuration -----------------------------------------------------
...@@ -48,9 +50,9 @@ copyright = u'2012, Serge S. Koval' ...@@ -48,9 +50,9 @@ copyright = u'2012, Serge S. Koval'
# built documents. # built documents.
# #
# The short X.Y version. # The short X.Y version.
version = '0.0.1' version = __version__
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '0.0.1' release = version
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.
......
__version__ = '1.0.2'
from .base import expose, Admin, BaseView, AdminIndexView from .base import expose, Admin, BaseView, AdminIndexView
# Fix for older setuptools # Fix for older setuptools
import multiprocessing, logging, os import multiprocessing, logging, os
import flask_admin
from setuptools import setup, find_packages from setuptools import setup, find_packages
...@@ -17,7 +19,7 @@ def desc(): ...@@ -17,7 +19,7 @@ def desc():
setup( setup(
name='Flask-Admin', name='Flask-Admin',
version='1.0.2', version=flask_admin.__version__,
url='https://github.com/mrjoes/flask-admin/', url='https://github.com/mrjoes/flask-admin/',
license='BSD', license='BSD',
author='Serge S. Koval', author='Serge S. Koval',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment