<s> import os <EOL> import re <EOL> from setuptools import setup , find_packages <EOL> def docs_read ( fname ) : <EOL> return open ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' , fname ) ) . read ( ) <EOL> def version_read ( ) : <EOL> settings_file = open ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) ) . read ( ) <EOL> major_regex = """<STR_LIT>""" <EOL> minor_regex = """<STR_LIT>""" <EOL> patch_regex = """<STR_LIT>""" <EOL> major_match = re . search ( major_regex , settings_file ) <EOL> minor_match = re . search ( minor_regex , settings_file ) <EOL> patch_match = re . search ( patch_regex , settings_file ) <EOL> major_version = major_match . group ( <NUM_LIT:1> ) <EOL> minor_version = minor_match . group ( <NUM_LIT:1> ) <EOL> patch_version = patch_match . group ( <NUM_LIT:1> ) <EOL> if len ( major_version ) == <NUM_LIT:0> : <EOL> major_version = <NUM_LIT:0> <EOL> if len ( minor_version ) == <NUM_LIT:0> : <EOL> minor_version = <NUM_LIT:0> <EOL> if len ( patch_version ) == <NUM_LIT:0> : <EOL> patch_version = <NUM_LIT:0> <EOL> return major_version + "<STR_LIT:.>" + minor_version + "<STR_LIT:.>" + patch_version <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> version = version_read ( ) , <EOL> description = '<STR_LIT>' , <EOL> long_description = ( docs_read ( '<STR_LIT>' ) ) , <EOL> url = '<STR_LIT>' , <EOL> license = '<STR_LIT>' , <EOL> author = '<STR_LIT>' , <EOL> author_email = '<STR_LIT>' , <EOL> platforms = [ '<STR_LIT>' ] , <EOL> entry_points = { <EOL> '<STR_LIT>' : [ <EOL> '<STR_LIT>' <EOL> ] , <EOL> } , <EOL> packages = find_packages ( "<STR_LIT>" ) , <EOL> package_dir = { '<STR_LIT>' : '<STR_LIT>' } , <EOL> install_requires = [ '<STR_LIT>' ] , <EOL> keywords = '<STR_LIT>' , <EOL> include_package_data = True , <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> ) </s>
