forked from redcap-tools/PyCap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfabfile.py
37 lines (26 loc) · 776 Bytes
/
fabfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Scott Burns <[email protected]>'
__license__ = 'MIT'
__copyright__ = '2014, Vanderbilt University'
from fabric.api import local, lcd
def upload():
local('python setup.py register')
local('python setup.py sdist upload')
local('python setup.py bdist_wheel upload')
def rebuild():
clean()
local("python setup.py develop -u")
local("python setup.py clean")
local("python setup.py install")
clean()
def clean():
local("""find redcap -type f -name "*.pyc" -exec rm {} \;""")
local("rm -rf build")
local("rm -rf dist")
local("rm -rf PyCap.egg-info")
def test():
local('nosetests -sv -w test/')
def doc():
with lcd('docs'):
local('make html')