<s> import sys <EOL> from paver . easy import * <EOL> from paver import doctools <EOL> from paver . setuputils import setup <EOL> PYCOMPILE_CACHES = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> options ( <EOL> sphinx = Bunch ( builddir = '<STR_LIT>' ) , <EOL> ) <EOL> def sphinx_builddir ( options ) : <EOL> return path ( '<STR_LIT>' ) / options . sphinx . builddir / '<STR_LIT:html>' <EOL> @ task <EOL> def clean_docs ( options ) : <EOL> sphinx_builddir ( options ) . rmtree ( ) <EOL> @ task <EOL> @ needs ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def html ( options ) : <EOL> destdir = path ( '<STR_LIT>' ) <EOL> destdir . rmtree ( ) <EOL> builtdocs = sphinx_builddir ( options ) <EOL> builtdocs . move ( destdir ) <EOL> @ task <EOL> @ needs ( '<STR_LIT>' ) <EOL> def qhtml ( options ) : <EOL> destdir = path ( '<STR_LIT>' ) <EOL> builtdocs = sphinx_builddir ( options ) <EOL> sh ( '<STR_LIT>' . format ( builtdocs , destdir ) ) <EOL> @ task <EOL> @ needs ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def ghdocs ( options ) : <EOL> builtdocs = sphinx_builddir ( options ) <EOL> sh ( "<STR_LIT>" . format ( builtdocs ) ) <EOL> @ task <EOL> @ needs ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def upload_pypi_docs ( options ) : <EOL> builtdocs = path ( '<STR_LIT>' ) / options . builddir / '<STR_LIT:html>' <EOL> sh ( "<STR_LIT>" . format ( <EOL> sys . executable , builtdocs ) ) <EOL> @ task <EOL> @ needs ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def upload_docs ( options ) : <EOL> pass <EOL> @ task <EOL> def autodoc ( options ) : <EOL> sh ( '<STR_LIT>' ) <EOL> @ task <EOL> def verifyindex ( options ) : <EOL> sh ( '<STR_LIT>' ) <EOL> @ task <EOL> def verifyconfigref ( options ) : <EOL> sh ( '<STR_LIT>' . format ( sys . executable ) ) <EOL> @ task <EOL> @ cmdopts ( [ <EOL> ( '<STR_LIT>' , '<STR_LIT:E>' , '<STR_LIT>' ) , <EOL> ] ) <EOL> def flake8 ( options ) : <EOL> noerror = getattr ( options , '<STR_LIT>' , False ) <EOL> complexity = getattr ( options , '<STR_LIT>' , <NUM_LIT> ) <EOL> sh ( """<STR_LIT>""" . format ( complexity ) , ignore_error = noerror ) <EOL> @ task <EOL> @ cmdopts ( [ <EOL> ( '<STR_LIT>' , '<STR_LIT:E>' , '<STR_LIT>' ) , <EOL> ] ) <EOL> def flakeplus ( options ) : <EOL> noerror = getattr ( options , '<STR_LIT>' , False ) <EOL> sh ( '<STR_LIT>' , ignore_error = noerror ) <EOL> @ task <EOL> @ cmdopts ( [ <EOL> ( '<STR_LIT>' , '<STR_LIT:E>' , '<STR_LIT>' ) <EOL> ] ) <EOL> def flakes ( options ) : <EOL> flake8 ( options ) <EOL> flakeplus ( options ) <EOL> @ task <EOL> def clean_readme ( options ) : <EOL> path ( '<STR_LIT>' ) . unlink ( ) <EOL> path ( '<STR_LIT>' ) . unlink ( ) <EOL> @ task <EOL> @ needs ( '<STR_LIT>' ) <EOL> def readme ( options ) : <EOL> sh ( '<STR_LIT>' . format ( sys . executable ) ) <EOL> @ task <EOL> def bump ( options ) : <EOL> sh ( "<STR_LIT>" ) <EOL> @ task <EOL> @ cmdopts ( [ <EOL> ( '<STR_LIT>' , '<STR_LIT:c>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] ) <EOL> def test ( options ) : <EOL> cmd = '<STR_LIT>' <EOL> if getattr ( options , '<STR_LIT>' , False ) : <EOL> cmd += '<STR_LIT>' <EOL> if getattr ( options , '<STR_LIT>' , False ) : <EOL> cmd += '<STR_LIT>' <EOL> sh ( cmd ) <EOL> @ task <EOL> @ cmdopts ( [ <EOL> ( '<STR_LIT>' , '<STR_LIT:E>' , '<STR_LIT>' ) , <EOL> ] ) <EOL> def pep8 ( options ) : <EOL> noerror = getattr ( options , '<STR_LIT>' , False ) <EOL> return sh ( """<STR_LIT>""" , ignore_error = noerror ) <EOL> @ task <EOL> def removepyc ( options ) : <EOL> sh ( '<STR_LIT>' . format ( <EOL> '<STR_LIT>' . join ( "<STR_LIT>" . format ( pat ) for pat in PYCOMPILE_CACHES ) ) ) <EOL> @ task <EOL> @ needs ( '<STR_LIT>' ) <EOL> def gitclean ( options ) : <EOL> sh ( '<STR_LIT>' ) <EOL> @ task <EOL> @ needs ( '<STR_LIT>' ) <EOL> def gitcleanforce ( options ) : <EOL> sh ( '<STR_LIT>' ) <EOL> @ task <EOL> @ needs ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT:test>' , '<STR_LIT>' ) <EOL> def releaseok ( options ) : <EOL> pass <EOL> @ task <EOL> @ needs ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> def release ( options ) : <EOL> pass <EOL> @ task <EOL> def verify_authors ( options ) : <EOL> sh ( '<STR_LIT>' ) </s>
