import os
from setuptools import (
    find_packages,
    setup,
    )


here = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(here, 'README.md')) as f:
    README = f.read().strip()
with open(os.path.join(here, 'CHANGES.md')) as f:
    CHANGES = f.read().strip()
with open(os.path.join(here, 'VERSION')) as f:
    VERSION = f.read().strip()

dependency_links = []
setup_requires = [
    'pytest-runner',
]
install_requires = [
    'aiohttp',
    'pyyaml',
    'requests',
    'websockets',
]
test_requires = [
    'pytest',
]

data_files = [
    ('', ['README.md', 'CHANGES.md', 'VERSION']),
]
entry_points = {
    'console_scripts': [
        'watchdepth = scripts.watch_depth:main',
        'watchcandlesticks = scripts.watch_candlesticks:main',
    ]
}

setup(name='binance',
      description='Binance API Application',
      long_description=README + '\n\n' + CHANGES,
      version=VERSION,
      author='c0lon',
      author_email='',
      dependency_links=dependency_links,
      setup_requires=setup_requires,
      install_requires=install_requires,
      test_requires=test_requires,
      packages=find_packages(),
      data_files=data_files,
      include_package_data=True,
      entry_points=entry_points
      )
