<s> """<STR_LIT>""" <EOL> import codecs <EOL> import os <EOL> import re <EOL> import setuptools <EOL> _PACKAGES = lambda : [ os . path . join ( r , s ) for r , d , _ in os . walk ( NAME_FILE ) for s in d if s != '<STR_LIT>' ] <EOL> _VERSION_RE = re . compile ( r"<STR_LIT>" , re . MULTILINE ) <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> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> DESCRIPTION = '<STR_LIT>' <EOL> HERE = os . path . abspath ( os . path . dirname ( __file__ ) ) <EOL> KEYWORDS = '<STR_LIT>' <EOL> NAME = '<STR_LIT>' <EOL> NAME_FILE = '<STR_LIT>' <EOL> PACKAGE = False <EOL> REQUIRES_INSTALL = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> REQUIRES_TEST = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> REQUIRES_ALL = REQUIRES_INSTALL + REQUIRES_TEST <EOL> VERSION_FILE = os . path . join ( NAME_FILE , '<STR_LIT>' ) if PACKAGE else '<STR_LIT>' . format ( NAME_FILE ) <EOL> def _safe_read ( path , length ) : <EOL> """<STR_LIT>""" <EOL> if not os . path . exists ( os . path . join ( HERE , path ) ) : <EOL> return '<STR_LIT>' <EOL> file_handle = codecs . open ( os . path . join ( HERE , path ) , encoding = '<STR_LIT:utf-8>' ) <EOL> contents = file_handle . read ( length ) <EOL> file_handle . close ( ) <EOL> return contents <EOL> ALL_DATA = dict ( <EOL> author_email = '<STR_LIT>' , <EOL> classifiers = CLASSIFIERS , <EOL> description = DESCRIPTION , <EOL> install_requires = REQUIRES_INSTALL , <EOL> keywords = KEYWORDS , <EOL> long_description = _safe_read ( '<STR_LIT>' , <NUM_LIT> ) , <EOL> name = NAME , <EOL> requires = REQUIRES_INSTALL , <EOL> tests_require = REQUIRES_TEST , <EOL> url = '<STR_LIT>' . format ( NAME ) , <EOL> zip_safe = False , <EOL> ) <EOL> ALL_DATA . update ( dict ( _VERSION_RE . findall ( _safe_read ( VERSION_FILE , <NUM_LIT> ) . replace ( '<STR_LIT:\r\n>' , '<STR_LIT:\n>' ) ) ) ) <EOL> ALL_DATA . update ( dict ( py_modules = [ NAME_FILE ] ) if not PACKAGE else dict ( packages = [ NAME_FILE ] + _PACKAGES ( ) ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> if not all ( ( ALL_DATA [ '<STR_LIT>' ] , ALL_DATA [ '<STR_LIT>' ] , ALL_DATA [ '<STR_LIT:version>' ] ) ) : <EOL> raise ValueError ( '<STR_LIT>' ) <EOL> setuptools . setup ( ** ALL_DATA ) </s>
