import os
import setuptools


def requirements():
    dir_path = os.path.dirname(os.path.realpath(__file__))
    requirements = []
    with open('{0}/requirements.txt'.format(dir_path), 'r') as reqs:
        requirements = reqs.readlines()
    return requirements


name = 'tasklib'
version = '7.0.0'


setuptools.setup(
    name=name,
    version=version,
    description='Tasklib package',
    long_description="""Tasklib is intended to be mediator between different
    configuration management solutions and orchestrator.
    This is required to support plugable tasks/actions with good
    amount of control, such as stop/pause/poll state.
    """,
    classifiers=[
        "Development Status :: 4 - Beta",
        "Programming Language :: Python",
    ],
    author='Mirantis Inc.',
    author_email='product@mirantis.com',
    url='http://mirantis.com',
    keywords='tasklib mirantis',
    packages=setuptools.find_packages(),
    zip_safe=False,
    install_requires=requirements(),
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'taskcmd = tasklib.cli:main',
        ]})
