Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 31 lines (24 sloc) 682 Bytes
#!/usr/bin/python
import subprocess
from pynt import task
@task()
def apidoc():
"""
Generate API documentation using epydoc.
"""
subprocess.call(["epydoc","--config","epydoc.config"])
@task()
def test(*args):
"""
Run unit tests.
"""
subprocess.call(["py.test-2.7"] + list(args))
subprocess.call(["py.test-3.3"] + list(args))
@task()
def generate_rst():
subprocess.call(['pandoc', '-f', 'markdown', '-t', 'rst', '-o', 'README.rst', 'README.md'])
@task(generate_rst)
def upload():
subprocess.call(['ssh-add', '~/.ssh/id_rsa'])
subprocess.call(['python', 'setup.py', 'sdist', 'bdist_wininst', 'upload'])
__DEFAULT__ = test
Jump to Line
Something went wrong with that request. Please try again.