<s> """<STR_LIT>""" <EOL> from __future__ import ( <EOL> absolute_import , division , print_function , with_statement , <EOL> unicode_literals ) <EOL> from os import path as p <EOL> from subprocess import call , check_call , CalledProcessError <EOL> from builtins import * <EOL> from manager import Manager <EOL> manager = Manager ( ) <EOL> BASEDIR = p . dirname ( __file__ ) <EOL> def upload_ ( ) : <EOL> """<STR_LIT>""" <EOL> check_call ( '<STR_LIT>' % p . join ( BASEDIR , '<STR_LIT>' , '<STR_LIT:*>' ) , shell = True ) <EOL> def sdist_ ( ) : <EOL> """<STR_LIT>""" <EOL> check_call ( p . join ( BASEDIR , '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> def wheel_ ( ) : <EOL> """<STR_LIT>""" <EOL> check_call ( p . join ( BASEDIR , '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> def clean_ ( ) : <EOL> """<STR_LIT>""" <EOL> check_call ( p . join ( BASEDIR , '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> @ manager . command <EOL> def check ( ) : <EOL> """<STR_LIT>""" <EOL> exit ( call ( p . join ( BASEDIR , '<STR_LIT>' , '<STR_LIT>' ) ) ) <EOL> @ manager . arg ( '<STR_LIT>' , '<STR_LIT:w>' , help = '<STR_LIT>' ) <EOL> @ manager . arg ( '<STR_LIT:strict>' , '<STR_LIT:s>' , help = '<STR_LIT>' ) <EOL> @ manager . command <EOL> def lint ( where = None , strict = False ) : <EOL> """<STR_LIT>""" <EOL> args = '<STR_LIT>' <EOL> try : <EOL> check_call ( [ '<STR_LIT>' , where ] if where else '<STR_LIT>' ) <EOL> check_call ( args . split ( '<STR_LIT:U+0020>' ) + [ '<STR_LIT>' ] ) <EOL> check_call ( args . split ( '<STR_LIT:U+0020>' ) ) if strict else None <EOL> except CalledProcessError as e : <EOL> exit ( e . returncode ) <EOL> @ manager . command <EOL> def pipme ( ) : <EOL> """<STR_LIT>""" <EOL> exit ( call ( '<STR_LIT>' . split ( '<STR_LIT:U+0020>' ) ) ) <EOL> @ manager . command <EOL> def require ( ) : <EOL> """<STR_LIT>""" <EOL> cmd = '<STR_LIT>' <EOL> exit ( call ( cmd , shell = True ) ) <EOL> @ manager . arg ( '<STR_LIT>' , '<STR_LIT:w>' , help = '<STR_LIT>' , default = None ) <EOL> @ manager . arg ( <EOL> '<STR_LIT>' , '<STR_LIT:x>' , help = '<STR_LIT>' , type = bool , default = False ) <EOL> @ manager . arg ( '<STR_LIT>' , '<STR_LIT:t>' , help = '<STR_LIT>' ) <EOL> @ manager . command <EOL> def test ( where = None , stop = False , tox = False ) : <EOL> """<STR_LIT>""" <EOL> opts = '<STR_LIT>' if stop else '<STR_LIT>' <EOL> opts += '<STR_LIT>' % where if where else '<STR_LIT>' <EOL> try : <EOL> if tox : <EOL> check_call ( '<STR_LIT>' ) <EOL> else : <EOL> check_call ( ( '<STR_LIT>' % opts ) . split ( '<STR_LIT:U+0020>' ) ) <EOL> check_call ( [ '<STR_LIT>' , p . join ( BASEDIR , '<STR_LIT>' , '<STR_LIT>' ) ] ) <EOL> except CalledProcessError as e : <EOL> exit ( e . returncode ) <EOL> @ manager . command <EOL> def docs ( ) : <EOL> """<STR_LIT>""" <EOL> exit ( call ( p . join ( BASEDIR , '<STR_LIT>' , '<STR_LIT>' ) ) ) <EOL> @ manager . command <EOL> def checkdocs ( ) : <EOL> """<STR_LIT>""" <EOL> exit ( call ( p . join ( BASEDIR , '<STR_LIT>' , '<STR_LIT>' ) ) ) <EOL> @ manager . command <EOL> def register ( ) : <EOL> """<STR_LIT>""" <EOL> exit ( call ( '<STR_LIT>' % p . join ( BASEDIR , '<STR_LIT>' ) , shell = True ) ) <EOL> @ manager . command <EOL> def release ( ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> clean_ ( ) <EOL> sdist_ ( ) <EOL> wheel_ ( ) <EOL> upload_ ( ) <EOL> except CalledProcessError as e : <EOL> exit ( e . returncode ) <EOL> @ manager . command <EOL> def build ( ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> clean_ ( ) <EOL> sdist_ ( ) <EOL> wheel_ ( ) <EOL> except CalledProcessError as e : <EOL> exit ( e . returncode ) <EOL> @ manager . command <EOL> def upload ( ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> upload_ ( ) <EOL> except CalledProcessError as e : <EOL> exit ( e . returncode ) <EOL> @ manager . command <EOL> def sdist ( ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> clean_ ( ) <EOL> sdist_ ( ) <EOL> except CalledProcessError as e : <EOL> exit ( e . returncode ) <EOL> @ manager . command <EOL> def wheel ( ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> clean_ ( ) <EOL> wheel_ ( ) <EOL> except CalledProcessError as e : <EOL> exit ( e . returncode ) <EOL> @ manager . command <EOL> def clean ( ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> clean_ ( ) <EOL> except CalledProcessError as e : <EOL> exit ( e . returncode ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> manager . main ( ) </s>
