<s> import os . path <EOL> import re <EOL> import sys <EOL> from setuptools import setup , find_packages <EOL> from setuptools . command . test import test as TestCommand <EOL> class PyTest ( TestCommand ) : <EOL> user_options = [ ( '<STR_LIT>' , '<STR_LIT:a>' , "<STR_LIT>" ) ] <EOL> def initialize_options ( self ) : <EOL> TestCommand . initialize_options ( self ) <EOL> self . pytest_args = [ ] <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 . pytest_args ) <EOL> sys . exit ( errno ) <EOL> curdir = os . path . dirname ( os . path . realpath ( __file__ ) ) <EOL> filename = os . path . join ( curdir , '<STR_LIT>' , '<STR_LIT>' ) <EOL> with open ( filename , '<STR_LIT:r>' ) as f : <EOL> version = re . search ( r"<STR_LIT>" , f . read ( ) ) . group ( <NUM_LIT:1> ) <EOL> classes = """<STR_LIT>""" <EOL> classifiers = [ s . strip ( ) for s in classes . split ( '<STR_LIT:\n>' ) if s ] <EOL> description = ( '<STR_LIT>' ) <EOL> with open ( '<STR_LIT>' ) as f : <EOL> long_description = f . read ( ) <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> version = version , <EOL> license = '<STR_LIT>' , <EOL> description = description , <EOL> long_description = long_description , <EOL> author = '<STR_LIT>' , <EOL> author_email = '<STR_LIT>' , <EOL> maintainer = '<STR_LIT>' , <EOL> maintainer_email = '<STR_LIT>' , <EOL> url = '<STR_LIT>' , <EOL> classifiers = classifiers , <EOL> packages = find_packages ( ) , <EOL> entry_points = { <EOL> '<STR_LIT>' : [ <EOL> '<STR_LIT>' , <EOL> ] , <EOL> '<STR_LIT>' : [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> } , <EOL> install_requires = [ '<STR_LIT>' ] , <EOL> extras_require = { <EOL> '<STR_LIT>' : [ '<STR_LIT>' ] , <EOL> } , <EOL> cmdclass = { '<STR_LIT:test>' : PyTest } , <EOL> ) </s>
