Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (23 sloc) 0.773 kB
"""Run this using ``fabric``.
I can't remember any of this syntax on my own.
"""
from functools import partial
from os import environ
from os.path import abspath, dirname
from fabric.api import local, cd
local = partial(local, capture=False)
ROOT = abspath(dirname(__file__))
environ['PYTHONPATH'] = (((environ['PYTHONPATH'] + ':') if
environ.get('PYTHONPATH') else '') + ROOT)
def doc(kind='html'):
"""Build Sphinx docs.
Requires Sphinx to be installed.
"""
with cd('docs'):
local('make clean %s' % kind)
def updoc():
"""Build Sphinx docs and upload them to packages.python.org.
Requires Sphinx-PyPI-upload to be installed.
"""
doc('html')
local('python setup.py upload_sphinx --upload-dir=docs/_build/html')
Jump to Line
Something went wrong with that request. Please try again.