from setuptools import setup, find_packages
from pip.req import parse_requirements
import os

def reqs():
    req_path = os.path.join(os.path.dirname(__file__), "requirements.txt")
    install_reqs = parse_requirements(req_path)
    return [str(ir.req) for ir in install_reqs]

setup(
    name="nanodb",
    version="0.1",
    license="Apache License 2.0",
    author="Pierre-Marie Dartus",
    author_email="dartus.pierremarie@gmail.com",
    url="https://github.com/pmdartus/NanoCube",
    description="In memory database for geolocated and temporal data",
    download_url="https://github.com/pmdartus/NanoCube/tarball/0.1",
    long_description=os.path.join(os.path.dirname(__file__), "Readme.md"),
    packages=find_packages(exclude=['test']),
    install_requires=reqs(),
    entry_points={
        "console_scripts": [
            "nanodb_server=libs.server:init_parser",
            "nanodb=libs.cli:init_parser"
        ]
    },
    include_package_data=True
)

@@ -271,16 +271,139 @@
 _reqs%5D%0A%0A
+def readme():%0A    with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:%0A        return readme.read()%0A%0A
 setup(%0A 
@@ -436,16 +436,18 @@
 ion=%220.1
+.1
 %22,%0A    l
@@ -743,16 +743,18 @@
 ball/0.1
+.1
 %22,%0A    l
@@ -773,59 +773,15 @@
 ion=
-os.path.join(os.path.dirname(__file__), %22R
+r
 eadme
-.md%22
+(
 ),%0A 
@@ -1014,16 +1014,16 @@
 %0A    %7D,%0A
-
     incl
@@ -1043,11 +1043,290 @@
 ata=True
+,%0A    classifiers=%5B%0A        %22Development Status :: 3 - Alpha%22,%0A        %22Intended Audience :: Developers%22,%0A        %22Topic :: Database :: Database Engines/Servers%22,%0A        %22License :: OSI Approved :: Apache Software License%22,%0A        %22Programming Language :: Python :: 2.7%22,%0A    %5D
 %0A)%0A

Update setup.py