add version information in __init__.py and import them from setup.py

and conf.py
This commit is contained in:
Andrea Crotti 2012-03-16 14:27:26 +00:00
commit 74c2449d8f
3 changed files with 9 additions and 5 deletions

View file

@ -3,6 +3,8 @@ import sys, os
sys.path.append(os.path.abspath('..'))
from pelican import __version__, __major__
# -- General configuration -----------------------------------------------------
templates_path = ['_templates']
extensions = ['sphinx.ext.autodoc',]
@ -11,8 +13,8 @@ master_doc = 'index'
project = u'Pelican'
copyright = u'2010, Alexis Metaireau and contributors'
exclude_patterns = ['_build']
version = "2"
release = version
version = __version__
release = __major__
# -- Options for HTML output ---------------------------------------------------