import os
from setuptools import setup, find_packages

import bottle_utils

def read(fname):
    """ Return content of specified file """
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(
    name = 'bottle-utils-flash',
    version = bottle_utils.__version__,
    author = 'Outernet Inc',
    author_email = 'branko@outernet.is',
    description = 'Flash message utilities for developing apps with Bottle web framework',
    license = 'BSD',
    keywords = 'bottle utils flash',
    url = 'http://outernet-project.github.io/bottle-utils/',
    packages=find_packages(),
    long_description=read('README.rst'),
    install_requires = [
        'bottle==0.12.7',
        'bottle-utils-common==%s' % bottle_utils.__version__,
        'bottle-utils-lazy==%s' % bottle_utils.__version__,
    ],
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Topic :: Utilities',
        'Framework :: Bottle',
        'Environment :: Web Environment',
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
    ],
)

@@ -203,16 +203,52 @@
 read()%0A%0A
+VERSION = bottle_utils.__version__%0A%0A
 setup(%0A 
@@ -254,19 +254,17 @@
     name
- = 
+=
 'bottle-
@@ -292,35 +292,16 @@
 sion
- = bottle_utils.__version__
+=VERSION
 ,%0A  
@@ -308,19 +308,17 @@
   author
- = 
+=
 'Outerne
@@ -341,19 +341,17 @@
 or_email
- = 
+=
 'branko@
@@ -379,19 +379,17 @@
 cription
- = 
+=
 'Flash m
@@ -464,19 +464,17 @@
  license
- = 
+=
 'BSD',%0A 
@@ -484,19 +484,17 @@
 keywords
- = 
+=
 'bottle 
@@ -514,19 +514,17 @@
 %0A    url
- = 
+=
 'http://
@@ -657,19 +657,17 @@
 requires
- = 
+=
 %5B%0A      
@@ -726,32 +726,15 @@
 ' %25 
-bottle_utils.__version__
+VERSION
 ,%0A  
@@ -769,32 +769,15 @@
 ' %25 
-bottle_utils.__version__
+VERSION
 ,%0A  

Use VERSION constant