#!/usr/bin/env python3
import os
from setuptools import setup, find_packages

repo_base_dir = os.path.abspath(os.path.dirname(__file__))
# pull in the packages metadata
package_about = {}
with open(os.path.join(repo_base_dir, "usim", "__about__.py")) as about_file:
    exec(about_file.read(), package_about)
    long_description = package_about.__doc__


if __name__ == '__main__':
    setup(
        name=package_about['__title__'],
        version=package_about['__version__'],
        description=package_about['__summary__'],
        long_description=long_description.strip(),
        author=package_about['__author__'],
        author_email=package_about['__email__'],
        url=package_about['__url__'],
        packages=find_packages(),
        install_requires=[
            'sortedcontainers',
        ],
        extras_require={
            'docs': ["sphinx", "sphinx_rtd_theme"],
        },
        # metadata for package search
        license='MIT',
        # https://pypi.python.org/pypi?%3Aaction=list_classifiers
        classifiers=[
            'Development Status :: 4 - Beta',
            'Intended Audience :: Developers',
            'License :: OSI Approved :: MIT License',
            'Topic :: System :: Monitoring',
            'Programming Language :: Python :: 3',
            'Programming Language :: Python :: 3.5',
            'Programming Language :: Python :: 3.6',
            'Programming Language :: Python :: 3.7',
        ],
        keywords=package_about['__keywords__'],
        # unit tests
        test_suite='usim_pytest',
        setup_requires=['pytest-runner'],
        tests_require=['pytest', 'pytest-timeout'],
    )
