try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup


__version__ = "0.0"
with open("./easydiscord/__init__.py", 'r') as f:
    from re import search
    _version = search(r"__version__\s*=\s*\'(.*?)\'", f.read())
    if _version is not None:
        __version__ = _version.group(1)


try:
    with open("./README.rst", 'r') as f:
        README = f.read()
except FileNotFoundError:
    README = ''


setup(name='easydiscord',
      author='Taku',
      url='https://github.com/GreatTaku/easydiscord/',
      version=__version__,
      packages=[
          'easydiscord'
      ],
      license='MIT',
      description='An easy to use wrapper for Discord.py',
      long_description=README,
      install_requires=[
          'aiohttp>=2.2.0, <2.3.0',
          'discord-rewrite',
      ],
      include_package_data=True,
      python_requires='>=3.4',
      keywords='discord.py easy simple discord python',
      classifiers=[
          'Development Status :: 1 - Planning',
          'License :: OSI Approved :: MIT License',
          'Intended Audience :: Developers',
          'Natural Language :: English',
          'Operating System :: OS Independent',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          'Programming Language :: Python :: 3.7',
          'Topic :: Software Development :: Libraries :: Application Frameworks',
      ]
      )
