#NEWLINE# def setup_package( ) : #NEWLINE# #INDENT# cmdclass = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# cmdclass [ 'test' ] = PyTest #NEWLINE# install_reqs = get_install_requirements ( 'requirements.txt' ) #NEWLINE# command_options = { #NEWLINE# #INDENT# 'test' : { #NEWLINE# #INDENT# 'test_suite' : ( 'setup.py' , 'tests' ) , #NEWLINE# 'cov' : ( 'setup.py' , MAIN_PACKAGE ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# if JUNIT_XML : #NEWLINE# #INDENT# command_options [ 'test' ] [ 'junitxml' ] = ( 'setup.py' , 'junit.xml' ) #NEWLINE# #UNINDENT# if COVERAGE_XML : #NEWLINE# #INDENT# command_options [ 'test' ] [ 'cov_xml' ] = ( 'setup.py' , True ) #NEWLINE# #UNINDENT# if COVERAGE_HTML : #NEWLINE# #INDENT# command_options [ 'test' ] [ 'cov_html' ] = ( 'setup.py' , True ) #NEWLINE# #UNINDENT# 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 = { #NEWLINE# #INDENT# 'console_scripts' : CONSOLE_SCRIPTS , #NEWLINE# #UNINDENT# } )