Skip to content
Snippets Groups Projects
Commit 83c74175 authored by Mike Bayer's avatar Mike Bayer
Browse files

- added "mako.__version__" attribute to

  the base module.  [ticket:110]
parent c1b97056
No related branches found
Tags rel_0_2_1
No related merge requests found
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
was causing tags to compile with was causing tags to compile with
case-insensitive names, thus messing up case-insensitive names, thus messing up
custom <%call> names. [ticket:108] custom <%call> names. [ticket:108]
- added "mako.__version__" attribute to
the base module. [ticket:110]
0.2.4 0.2.4
- Fixed compatibility with Jython 2.5b1. - Fixed compatibility with Jython 2.5b1.
......
...@@ -5,7 +5,7 @@ import cPickle as pickle ...@@ -5,7 +5,7 @@ import cPickle as pickle
sys.path = ['../../lib', './lib/'] + sys.path sys.path = ['../../lib', './lib/'] + sys.path
from mako.lookup import TemplateLookup from mako.lookup import TemplateLookup
from mako import exceptions from mako import exceptions, __version__ as version
import read_markdown, toc import read_markdown, toc
...@@ -24,7 +24,6 @@ files = [ ...@@ -24,7 +24,6 @@ files = [
] ]
title='Mako Documentation' title='Mako Documentation'
version = '0.2.3'
root = toc.TOCElement('', 'root', '', version=version, doctitle=title) root = toc.TOCElement('', 'root', '', version=version, doctitle=title)
......
...@@ -4,3 +4,6 @@ ...@@ -4,3 +4,6 @@
# This module is part of Mako and is released under # This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php # the MIT License: http://www.opensource.org/licenses/mit-license.php
__version__ = '0.2.5'
from setuptools import setup, find_packages from setuptools import setup, find_packages
import os
import re
version = '0.2.5' v = file(os.path.join(os.path.dirname(__file__), 'lib', 'mako', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
setup(name='Mako', setup(name='Mako',
version=version, version=VERSION,
description="A super-fast templating language that borrows the \ description="A super-fast templating language that borrows the \
best ideas from the existing templating languages.", best ideas from the existing templating languages.",
long_description="""\ long_description="""\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment