"""
setup.py
"""
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

from pocha.version import VERSION

class PochaTestCommand(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        from pocha import cli
        cli()

setup(
    name='pocha',
    version=VERSION,
    author='Rodney Gomes',
    author_email='rodneygomes@gmail.com',
    url='',
    install_requires=open('requirements.txt').read().split('\n'),
    tests_require=open('test-requirements.txt').read().split('\n'),
    cmdclass={'test': PochaTestCommand},
    test_suite='test',
    keywords=[''],
    py_modules=['pocha'],
    packages=find_packages(exclude=['tests']),

    entry_points={
        'console_scripts': [
            'pocha=pocha.cli:cli'
        ]
    },

    license='Apache 2.0 License',
    description='',
    long_description='',
)
