"""Setup module"""

from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open  # pylint:disable=W0622
from os.path import abspath, dirname, join

README = join(abspath(dirname(__file__)), 'README.md')
try:
    import pypandoc
    DESCRIPTION = pypandoc.convert(README, 'rst')
except(IOError, ImportError):
    # Get the long description from the README file
    with open(README, encoding='utf-8') as fptr:
        DESCRIPTION = fptr.read()

setup(
    name='SimpleInterceptor',
    version='0.1',
    description='Simple interceptor related to concepts of AOP',
    long_description=DESCRIPTION,
    url='https://github.com/host-anshu/simpleInterceptor',
    author='Anshu Choubey',
    author_email='anshu.choubey@imaginea.com',
    license='MIT',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
    ],
    keywords='python interceptor aop call graph tree',
    packages=find_packages(),
    py_modules=['interceptor'],
    install_requires=['ansible>=2.0'],
    entry_points={
        'console_scripts': [
            'interceptor=interceptor:intercept',
        ],
    },
    test_suite="test"
)
