def setup_package():
    cmdclass = {}
    cmdclass['test'] = PyTest
    install_reqs = get_install_requirements('requirements.txt')
    command_options = {'test': {'test_suite': ('setup.py', 'tests'), 'cov': ('setup.py', MAIN_PACKAGE)}}
    if JUNIT_XML:
        command_options['test']['junitxml'] = ('setup.py', 'junit.xml')
    if COVERAGE_XML:
        command_options['test']['cov_xml'] = ('setup.py', True)
    if COVERAGE_HTML:
        command_options['test']['cov_html'] = ('setup.py', True)
    setup(name=NAME, version=VERSION, url=URL, description=DESCRIPTION, author=AUTHOR, author_email=EMAIL, license=LICENSE, keywords='github git project maintainer', long_description=read('README.rst'), classifiers=CLASSIFIERS, test_suite='tests', packages=setuptools.find_packages(exclude=['tests', 'tests.*']), install_requires=install_reqs, setup_requires=['six', 'flake8'], cmdclass=cmdclass, tests_require=['pytest-cov', 'pytest'], command_options=command_options, entry_points={'console_scripts': CONSOLE_SCRIPTS})
def setup_package():
    cmdclass = {}
    cmdclass['test'] = PyTest
    install_reqs = get_install_requirements('requirements.txt')
    command_options = {'test': {'test_suite': ('setup.py', 'tests'), 'cov': ('setup.py', MAIN_PACKAGE)}}
    if JUNIT_XML:
        command_options['test']['junitxml'] = ('setup.py', 'junit.xml')
    if COVERAGE_XML:
        command_options['test']['cov_xml'] = ('setup.py', True)
    if COVERAGE_HTML:
        command_options['test']['cov_html'] = ('setup.py', True)
    setup(name=NAME, version=VERSION, url=URL, description=DESCRIPTION, author=AUTHOR, author_email=EMAIL, license=LICENSE, keywords='github git project maintainer', long_description=read('README.rst'), classifiers=CLASSIFIERS, test_suite='tests', packages=setuptools.find_packages(exclude=['tests', 'tests.*']), install_requires=install_reqs, setup_requires=['six', 'flake8'], cmdclass=cmdclass, tests_require=['pytest-cov', 'pytest'], command_options=command_options, entry_points={'console_scripts': CONSOLE_SCRIPTS})