import sys
from pathlib import Path
import setuptools

long_description = (Path(__file__).parent / "README.md").read_text()

if sys.version_info < (3, 6):
    sys.exit('Python>=3.6 is required by Stave.')

setuptools.setup(
    name="stave",
    version="0.0.1.dev7",
    url="https://github.com/asyml/stave",

    description="Stave is a fast, lightweight, extensible web-based text "
                "annotation and visualization tool designed to support a "
                "wide range of data types and NLP tasks.",
    long_description=long_description,
    long_description_content_type='text/markdown',
    license='Apache License Version 2.0',
    package_dir={'': "simple-backend"},
    packages=setuptools.find_packages(where="simple-backend"),
    include_package_data=True,
    platforms='any',

    install_requires=[
        'requests==2.25.1',
        'django>=3.0.4',
        'django-guardian==2.3.0',
        'tornado==6.1'
    ],
    extras_require={
        "forte": ["forte"],
    },
    entry_points={
        'console_scripts':[
            'stave = nlpviewer_backend.lib.stave_cli:main'
        ]
    },
    classifiers=[
        'Intended Audience :: Developers',
        'Intended Audience :: Education',
        'Intended Audience :: Science/Research',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
    ]
)
