<s> import codecs <EOL> from distutils . core import setup <EOL> from setuptools . command . test import test as TestCommand <EOL> import re <EOL> import os <EOL> import sys <EOL> import pdfkit <EOL> class PyTest ( TestCommand ) : <EOL> def finalize_options ( self ) : <EOL> TestCommand . finalize_options ( self ) <EOL> self . test_args = [ '<STR_LIT>' ] <EOL> self . test_suite = True <EOL> def run_tests ( self ) : <EOL> import pytest <EOL> os . chdir ( '<STR_LIT>' ) <EOL> errno = pytest . main ( self . test_args ) <EOL> sys . exit ( errno ) <EOL> def long_description ( ) : <EOL> """<STR_LIT>""" <EOL> with codecs . open ( '<STR_LIT>' , encoding = '<STR_LIT:utf8>' ) as f : <EOL> rst = f . read ( ) <EOL> code_block = '<STR_LIT>' <EOL> rst = re . sub ( code_block , '<STR_LIT>' , rst ) <EOL> return rst + '<STR_LIT>' + open ( '<STR_LIT>' ) . read ( ) <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> version = pdfkit . __version__ , <EOL> description = pdfkit . __doc__ . strip ( ) , <EOL> long_description = long_description ( ) , <EOL> download_url = '<STR_LIT>' , <EOL> license = pdfkit . __license__ , <EOL> tests_require = [ '<STR_LIT>' ] , <EOL> cmdclass = { '<STR_LIT:test>' : PyTest } , <EOL> packages = [ '<STR_LIT>' ] , <EOL> author = pdfkit . __author__ , <EOL> author_email = '<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> ) </s>
