<s> import sys <EOL> from os import path <EOL> from codecs import open <EOL> from setuptools import setup , find_packages <EOL> from setuptools . command . test import test as TestCommand <EOL> here = path . abspath ( path . dirname ( __file__ ) ) <EOL> setup_requires = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> install_requires = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> dev_requires = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ] <EOL> tests_require = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ] <EOL> PY2 = sys . version_info . major is <NUM_LIT:2> <EOL> PY32 = sys . version_info . major is <NUM_LIT:3> and sys . version_info . minor is <NUM_LIT:2> <EOL> PY33 = sys . version_info . major is <NUM_LIT:3> and sys . version_info . minor is <NUM_LIT:3> <EOL> if PY2 : <EOL> install_requires . append ( '<STR_LIT>' ) <EOL> install_requires . append ( '<STR_LIT>' ) <EOL> if PY32 or PY33 : <EOL> install_requires . append ( '<STR_LIT>' ) <EOL> with open ( path . join ( here , '<STR_LIT>' ) , encoding = '<STR_LIT:utf-8>' ) as f : <EOL> long_description = f . read ( ) <EOL> class PyTest ( TestCommand ) : <EOL> def finalize_options ( self ) : <EOL> TestCommand . finalize_options ( self ) <EOL> self . test_args = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ] <EOL> self . test_suite = True <EOL> def run_tests ( self ) : <EOL> import pytest <EOL> errno = pytest . main ( self . test_args ) <EOL> sys . exit ( errno ) <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> version = '<STR_LIT>' , <EOL> description = '<STR_LIT>' , <EOL> long_description = long_description , <EOL> url = '<STR_LIT>' , <EOL> author = '<STR_LIT>' , <EOL> author_email = '<STR_LIT>' , <EOL> license = '<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> ] , <EOL> keywords = '<STR_LIT>' , <EOL> packages = find_packages ( exclude = [ '<STR_LIT>' , '<STR_LIT>' ] ) , <EOL> setup_requires = setup_requires , <EOL> install_requires = install_requires , <EOL> tests_require = tests_require , <EOL> extras_require = { <EOL> '<STR_LIT>' : dev_requires , <EOL> '<STR_LIT:test>' : tests_require , <EOL> } , <EOL> cmdclass = { '<STR_LIT:test>' : PyTest } , <EOL> ) </s>
