#!/usr/bin/env python

from setuptools import setup

setup(name='pypage',
      version='2.0.0',
      description=' Light-weight Python Templating Engine',
      # long_description=open('README.rst').read(),
      url='https://github.com/arjun-menon/pypage',
      author='Arjun G. Menon',
      author_email='contact@arjungmenon.com',
      keywords='templating enigne text processing static generator',
      license='Apache',
      py_modules=['pypage'],
      entry_points={
          'console_scripts': ['pypage=pypage:main'],
      },
      classifiers=[
          'Topic :: Text Processing',
          'Topic :: Internet :: WWW/HTTP',
          'Topic :: Text Processing :: Markup :: HTML',
          'License :: OSI Approved :: Apache Software License',
          'Topic :: Software Development :: Libraries :: Python Modules',
          'Intended Audience :: Developers',
          'Environment :: Console',
          'Environment :: Web Environment',
          'Operating System :: OS Independent',
          'Programming Language :: Python :: Implementation :: CPython',
          'Programming Language :: Python :: Implementation :: PyPy',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.2',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
      ])

@@ -46,16 +46,243 @@
  setup%0A%0A
+repo_url = 'https://github.com/arjun-menon/pypage'%0A%0Aversion_tag = open('docs/version.txt').read().strip()%0Aassert version_tag%5B0%5D == 'v'%0Aversion = version_tag%5B1:%5D%0A%0Adownload_url = repo_url + '/archive/' + version_tag + '.tar.gz'%0A%0A
 setup(na
@@ -312,15 +312,15 @@
 ion=
-'2.0.0'
+version
 ,%0A  
@@ -443,47 +443,49 @@
 url=
-'https://github.com/arjun-menon/pypage'
+repo_url,%0A      download_url=download_url
 ,%0A  

Update setup.py to auto-construct version & download_url