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]

def readme():
    with open('README.md') as readme:
        return readme.read()


setup(
    name="nanodb",
    version="0.2.6",
    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/v0.2.1",
    long_description=readme(),
    packages=find_packages(exclude=['test']),
    install_requires=reqs(),
    entry_points={
        "console_scripts": [
            "nanodb_server=libs.server.server:init_parser",
            "nanodb=libs.client.cli:init_parser"
        ]
    },
    include_package_data=True,
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "Topic :: Database :: Database Engines/Servers",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python :: 2.7",
    ]
)
