# pylint: disable=C0111

from setuptools import setup, find_packages

with open('README.rst', encoding='utf-8') as f:
    README = f.read()

with open('pytlas/__about__.py') as about_file:
    ABOUT = {}
    exec(about_file.read(), ABOUT) # pylint: disable=W0122

setup(
    name=ABOUT['__title__'],
    version=ABOUT['__version__'],
    description=ABOUT['__summary__'],
    long_description=README,
    url=ABOUT['__github_url__'],
    project_urls={
        "Documentation": ABOUT['__doc_url__'],
        "Source": ABOUT['__github_url__'],
        "Tracker": ABOUT['__tracker_url__'],
    },
    author=ABOUT['__author__'],
    author_email=ABOUT['__email__'],
    license=ABOUT['__license__'],
    packages=find_packages(),
    include_package_data=True,
    classifiers=[
        "Programming Language :: Python :: 3",
    ],
    install_requires=[
        'click~=7.0',
        'transitions~=0.7.0',
        'fuzzywuzzy~=0.17.0',
        'colorlog~=4.0.2',
        'pychatl~=2.0.1',
        'python-dateutil~=2.8.0',
        'Babel~=2.7.0',
        # Those lines are required for markdown display and raw_text generation
        'Markdown~=3.1.1',
        'beautifulsoup4~=4.8.0',
    ],
    extras_require={
        'snips': [
            # For snips, target a specific version since it may break sometimes
            'snips-nlu==0.20.1',
        ],
        'test': [
            'nose~=1.3.7',
            'sure~=1.4.11',
            'coverage~=4.5.4',
        ],
        'watch': [
            'watchgod~=0.4',
        ],
        'docs': [
            'sphinx~=1.7.5',
            'sphinx_rtd_theme~=0.4.3',
        ],
    },
    entry_points={
        'console_scripts': [
            'pytlas = pytlas.cli:main',
        ]
    },
)
