<s> import os <EOL> import sys <EOL> from setuptools import setup , find_packages <EOL> from setuptools . command . test import test as TestCommand <EOL> here = os . path . abspath ( os . path . dirname ( __file__ ) ) <EOL> long_description = open ( os . path . join ( here , '<STR_LIT>' ) ) . read ( ) <EOL> data_files = [ ] <EOL> root_dir = os . path . dirname ( __file__ ) <EOL> if root_dir : <EOL> os . chdir ( root_dir ) <EOL> for dirpath , dirnames , filenames in os . walk ( '<STR_LIT>' ) : <EOL> for i , dirname in enumerate ( dirnames ) : <EOL> if dirname . startswith ( '<STR_LIT:.>' ) : del dirnames [ i ] <EOL> if filenames : <EOL> prefix = dirpath [ <NUM_LIT> : ] <EOL> for f in filenames : <EOL> data_files . append ( os . path . join ( prefix , f ) ) <EOL> class Tox ( 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 tox <EOL> errcode = tox . cmdline ( self . test_args ) <EOL> sys . exit ( errcode ) <EOL> setup ( <EOL> name = "<STR_LIT>" , <EOL> version = "<STR_LIT>" , <EOL> packages = find_packages ( ) , <EOL> author = "<STR_LIT>" , <EOL> description = "<STR_LIT>" , <EOL> long_description = long_description , <EOL> license = "<STR_LIT>" , <EOL> keywords = "<STR_LIT>" , <EOL> url = '<STR_LIT>' , <EOL> download_url = '<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> package_dir = { '<STR_LIT>' : '<STR_LIT>' } , <EOL> package_data = { '<STR_LIT>' : data_files } , <EOL> zip_safe = False , <EOL> tests_require = [ '<STR_LIT>' ] , <EOL> cmdclass = { '<STR_LIT:test>' : Tox } , <EOL> ) </s>
