<s> from setuptools import setup <EOL> from setuptools . command . test import test as TestCommand <EOL> import os <EOL> import sys <EOL> if sys . version_info < ( <NUM_LIT:3> , <NUM_LIT:3> ) : <EOL> raise RuntimeError ( "<STR_LIT>" ) <EOL> exec ( open ( os . path . join ( <EOL> os . path . dirname ( __file__ ) , '<STR_LIT>' <EOL> ) ) . read ( ) ) <EOL> class PytestCommand ( TestCommand ) : <EOL> def finalize_options ( self ) : <EOL> TestCommand . finalize_options ( self ) <EOL> self . test_args = [ ] <EOL> self . test_suite = True <EOL> def run_tests ( self ) : <EOL> import pytest <EOL> errno = pytest . main ( self . test_args ) <EOL> sys . exit ( errno ) <EOL> class PylintCommand ( TestCommand ) : <EOL> def finalize_options ( self ) : <EOL> TestCommand . finalize_options ( self ) <EOL> self . test_args = [ ] <EOL> self . test_suite = True <EOL> def run_tests ( self ) : <EOL> import pylint . lint <EOL> pylint . lint . Run ( [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> class Pep8Command ( TestCommand ) : <EOL> def finalize_options ( self ) : <EOL> TestCommand . finalize_options ( self ) <EOL> self . test_args = [ ] <EOL> self . test_suite = True <EOL> def run_tests ( self ) : <EOL> import pep8 <EOL> style_guide = pep8 . StyleGuide ( config_file = '<STR_LIT>' ) <EOL> report = style_guide . check_files ( [ '<STR_LIT>' ] ) <EOL> if report . total_errors : <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> with open ( '<STR_LIT>' ) as f : <EOL> readme = f . read ( ) <EOL> install_requires = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> if sys . version_info < ( <NUM_LIT:3> , <NUM_LIT:4> , <NUM_LIT:3> ) : <EOL> install_requires . append ( '<STR_LIT>' ) <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> version = __version__ , <EOL> description = ( '<STR_LIT>' <EOL> '<STR_LIT>' ) , <EOL> long_description = readme , <EOL> url = '<STR_LIT>' , <EOL> author = '<STR_LIT>' , <EOL> author_email = '<STR_LIT>' , <EOL> license = '<STR_LIT>' , <EOL> classifiers = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> packages = [ '<STR_LIT>' , '<STR_LIT>' ] , <EOL> install_requires = install_requires , <EOL> tests_require = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> cmdclass = { <EOL> '<STR_LIT:test>' : PytestCommand , <EOL> '<STR_LIT>' : PylintCommand , <EOL> '<STR_LIT>' : Pep8Command , <EOL> } , <EOL> entry_points = { <EOL> '<STR_LIT>' : [ <EOL> '<STR_LIT>' , <EOL> ] , <EOL> } , <EOL> ) </s>
