<s> import glob <EOL> import os <EOL> from setuptools import setup , find_packages , Command <EOL> import sys <EOL> here = os . path . abspath ( os . path . dirname ( __file__ ) ) <EOL> def read_file ( path_segments ) : <EOL> """<STR_LIT>""" <EOL> file_path = os . path . join ( here , * path_segments ) <EOL> with open ( file_path ) as f : <EOL> return f . read ( ) <EOL> def exec_file ( path_segments ) : <EOL> """<STR_LIT>""" <EOL> result = { } <EOL> code = read_file ( path_segments ) <EOL> exec ( code , result ) <EOL> return result <EOL> class Tox ( Command ) : <EOL> user_options = [ ( '<STR_LIT>' , '<STR_LIT:a>' , "<STR_LIT>" ) ] <EOL> def initialize_options ( self ) : <EOL> self . tox_args = None <EOL> def finalize_options ( self ) : <EOL> self . test_args = [ ] <EOL> self . test_suite = True <EOL> def run ( self ) : <EOL> try : <EOL> import tox <EOL> except ImportError : <EOL> try : <EOL> self . distribution . fetch_build_eggs ( "<STR_LIT>" ) <EOL> import tox <EOL> except : <EOL> raise RuntimeError ( <EOL> "<STR_LIT>" <EOL> ) <EOL> import shlex <EOL> args = self . tox_args <EOL> if args : <EOL> args = shlex . split ( self . tox_args ) <EOL> else : <EOL> args = [ ] <EOL> errno = tox . cmdline ( args = args ) <EOL> sys . exit ( errno ) <EOL> version = exec_file ( ( "<STR_LIT>" , "<STR_LIT>" ) ) [ "<STR_LIT>" ] <EOL> dependencies = exec_file ( ( "<STR_LIT>" , "<STR_LIT>" ) ) <EOL> long_description = read_file ( ( "<STR_LIT>" , ) ) <EOL> setup ( <EOL> name = "<STR_LIT>" , <EOL> version = version , <EOL> packages = find_packages ( exclude = [ "<STR_LIT>" , "<STR_LIT>" ] ) , <EOL> description = "<STR_LIT>" , <EOL> install_requires = dependencies [ '<STR_LIT>' ] ( include_conditional = True ) . keys ( ) , <EOL> dependency_links = dependencies [ "<STR_LIT>" ] . values ( ) , <EOL> include_package_data = True , <EOL> zip_safe = False , <EOL> long_description = long_description , <EOL> scripts = [ "<STR_LIT>" ] + glob . glob ( "<STR_LIT>" ) , <EOL> cmdclass = { '<STR_LIT:test>' : Tox } , <EOL> ) </s>
