summaryrefslogtreecommitdiff
path: root/fabfile.py
blob: e2b0f8da6e71f902229222399aeeca540236dcd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
from fabric.api import *


def scrub():
	""" Death to the bytecode! """
	local('rm -fr dist build')
	local("find . -name \"*.pyc\" -exec rm '{}' ';'")

def docs():
	"""Build docs."""
	os.system('make dirhtml')
	os.chdir('_build/dirhtml')
	os.system('sphinxtogithub .')
	os.system('git add -A')
	os.system('git commit -m \'documentation update\'')
	os.system('git push origin gh-pages')