import re
import ast
from setuptools import setup, find_packages

_version_re = re.compile(r'__version__\s+=\s+(.*)')

with open('pgcli/__init__.py', 'rb') as f:
    version = str(ast.literal_eval(_version_re.search(
        f.read().decode('utf-8')).group(1)))

setup(
        name='pgcli',
        author='Amjith Ramanujam',
        version=version,
        license='LICENSE.txt',
        url='https://github.com/amjith/pgcli',
        packages=find_packages(),
        description='CLI for Postgres. With auto-completion and '
                    'syntax highlighting',
        install_requires=[
            'Click',
            'prompt_toolkit',
            'psycopg2',
            'tabulate',
            'sqlparse',
            ],
        entry_points='''
            [console_scripts]
            pgcli=pgcli.main:cli
        ''',
        classifiers=[
            'License :: OSI Approved :: BSD License',
            'Programming Language :: Python',
            'Programming Language :: Python :: 3'
            ],
        )

@@ -256,16 +256,98 @@
 p(1)))%0A%0A
+description = 'CLI for Postgres. With auto-completion and syntax highlighting.'%0A%0A%0A
 setup(%0A 
@@ -563,95 +563,71 @@
 ion=
-'CLI for Postgres. With auto-completion and '%0A                    'syntax highlighting'
+description,%0A        long_description=open('Readme.rst').read()
 ,%0A  
@@ -908,24 +908,71 @@
 assifiers=%5B%0A
+            'Intended Audience :: Developers',%0A
             
@@ -1009,24 +1009,64 @@
 D License',%0A
+            'Operating System :: Unix',%0A
             
@@ -1150,10 +1150,467 @@
  :: 
-3'
+2.6',%0A            'Programming Language :: Python :: 2.7',%0A            'Programming Language :: Python :: 3',%0A            'Programming Language :: Python :: 3.3',%0A            'Programming Language :: Python :: 3.4',%0A            'Programming Language :: SQL',%0A            'Topic :: Database',%0A            'Topic :: Database :: Front-Ends',%0A            'Topic :: Software Development',%0A            'Topic :: Software Development :: Libraries :: Python Modules',
 %0A   

Update setup.py to read from the Readme.