Module Expr Str ImportFrom alias alias alias Import alias Import alias Import alias Import alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias alias alias alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad keyword NameLoad keyword Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword Call NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr If NameLoad body Raise Call NameLoad NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Call NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If NameLoad body Raise Call NameLoad NameLoad NameLoad orelse Return TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call NameLoad Str Expr Call NameLoad NameLoad decorator_list If CompareEq NameLoad Str body TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num handlers ExceptHandler type NameLoad body TryExcept body Assign NameStore Call AttributeLoad Call NameLoad Str attr handlers ExceptHandler type NameLoad body Assign NameStore Str Expr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad NameLoad orelse Expr Call NameLoad NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareNotEq NameLoad Str body Pass Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareNotEq NameLoad Str body Pass TryFinally body Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad Str attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr Num If CompareNotEq NameLoad Str body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Raise Call NameLoad NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Str finalbody Expr Call NameLoad NameLoad Expr Call NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad Str
N/A N/A Script to commit the doc build outputs into the github-pages repo.

Use:

  gh-pages.py [tag]

If no tag is given, the current output of 'git describe' is used.  If given,
that is how the resulting directory will be named.

In practice, you should use either actual clean tags from a current build or
something like 'current' as a stable URL for the most current version of the  __future__ print_function division absolute_import N/A os N/A re N/A shutil N/A sys os chdir cd os.path join pjoin subprocess Popen PIPE CalledProcessError check_call N/A pages_dir gh-pages N/A html_dir _build/html N/A pdf_dir _build/latex N/A pages_repo git@github.com:numba/numba-doc.git sub_environment N/A N/A N/A N/A N/A Return an environment dict for executing subcommands in. N/A env N/A N/A N/A os environ copy N/A N/A env N/A LANG C N/A env N/A sh N/A N/A cmd N/A N/A N/A Execute command in a subshell, return status code. N/A N/A check_call cmd shell True env N/A sub_environment N/A sh2 N/A N/A cmd N/A N/A N/A Execute command in a subshell, return stdout.

    Stderr is unbuffered from the subshell.x N/A p N/A Popen cmd stdout PIPE shell True env N/A sub_environment N/A out N/A N/A N/A p communicate N/A 0 N/A retcode N/A p returncode N/A retcode N/A N/A N/A CalledProcessError retcode cmd N/A N/A N/A N/A out rstrip N/A sh3 N/A N/A cmd N/A N/A N/A Execute command in a subshell, return stdout, stderr

    If anything appears in stderr, print it out to sys.stderr N/A p N/A Popen cmd stdout PIPE stderr PIPE shell True env N/A sub_environment N/A N/A out err N/A N/A p communicate N/A retcode N/A p returncode N/A retcode N/A N/A N/A CalledProcessError retcode cmd N/A N/A N/A N/A N/A out rstrip N/A N/A err rstrip N/A init_repo N/A N/A path N/A N/A N/A clone the gh-pages repo if we haven't already. N/A N/A sh N/A git clone %s %s N/A pages_repo path N/A here N/A N/A os getcwd N/A N/A cd path N/A N/A sh git checkout gh-pages N/A N/A cd here N/A N/A N/A __name__ __main__ N/A N/A N/A N/A tag N/A N/A sys argv N/A 1 N/A N/A N/A IndexError N/A N/A N/A N/A tag N/A N/A N/A sh2 git describe --exact-match decode N/A N/A N/A CalledProcessError N/A N/A tag dev N/A N/A print Using dev N/A startdir N/A N/A os getcwd N/A N/A N/A N/A N/A os path exists pages_dir N/A N/A N/A init_repo pages_dir N/A N/A N/A cd pages_dir N/A N/A sh git checkout gh-pages N/A N/A sh git pull N/A N/A cd startdir N/A dest N/A pjoin pages_dir tag N/A N/A tag dev N/A N/A N/A N/A N/A shutil rmtree dest ignore_errors True N/A N/A N/A shutil copytree html_dir dest N/A N/A tag dev N/A N/A N/A N/A N/A N/A cd pages_dir N/A status N/A N/A N/A sh2 git status | head -1 decode N/A branch N/A N/A N/A N/A re match \#?\s*On branch (.*)$ status group 1 N/A N/A branch gh-pages N/A N/A e N/A On %r, git branch is %r, MUST be "gh-pages" N/A pages_dir branch N/A N/A RuntimeError e N/A N/A sh N/A git add -A %s tag N/A N/A sh N/A git commit -m"Updated doc release: %s" tag N/A N/A print N/A N/A print Most recent 3 commits: N/A N/A N/A N/A sys stdout flush N/A N/A sh git --no-pager log --oneline HEAD~3.. N/A N/A N/A cd startdir N/A N/A print N/A N/A print N/A Now verify the build in: %r dest N/A N/A print If everything looks good, 'git push'