""" Jupytoc packaging instructions. """

from setuptools import setup, find_packages
from jupytoc import __project__, __version__, __author__, __licence__

README = 'README.md'
REQUIREMENTS = [
    'click==6.6',
    'emoji==0.3.9'
]


def long_description():
    """ Insert README.md into the package. """
    try:
        with open(README) as readme_fd:
            return readme_fd.read()
    except IOError:
        return 'Failed to read ' + README


setup(
    name=__project__,
    version=__version__,
    url='https://github.com/axelbellec/jupytoc/',
    download_url='https://github.com/axelbellec/jupytoc/tarball/0.0.1',
    description='A commmand-line interface to add or update TOC to Jupyter Notebooks',
    author=__author__,
    author_email='axel.bellec@outlook.fr',
    packages=find_packages(),
    long_description=long_description(),
    install_requires=REQUIREMENTS,
    keywords='jupytoc cli command line pip jupyter notebook tool',
    zip_safe=False,
    include_package_data=True,
    platforms='any',
    licence=__licence__,
    classifiers=[
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License'
    ],
    entry_points={
        'console_scripts': [
            'jupytoc = jupytoc.jupytoc:cli'
        ]
    }
)
