summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2013-06-26 09:08:42 -0700
committerJeff Forcier <jeff@bitprophet.org>2013-06-28 13:07:06 -0700
commit993ecb31d2a0606cb1e95e85dd29ea2809866663 (patch)
treef1fb7f5bebb435a43a8f207867a93056cb76a169
parent4ee577abc529603414836d9929f75fa8d67bbffb (diff)
Port Makefile contents into fabfile
-rw-r--r--fabfile.py26
1 files changed, 25 insertions, 1 deletions
diff --git a/fabfile.py b/fabfile.py
index 29394f94..52183382 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -1,5 +1,6 @@
-from fabric.api import task, sudo, env
+from fabric.api import task, sudo, env, local
from fabric.contrib.project import rsync_project
+from fabric.contrib.console import confirm
@task
@@ -11,3 +12,26 @@ def upload_docs():
sudo("rm -rf %s/*" % target)
rsync_project(local_dir='docs/', remote_dir=staging, delete=True)
sudo("cp -R %s/* %s/" % (staging, target))
+
+@task
+def build_docs():
+ local("epydoc --no-private -o docs/ paramiko")
+
+@task
+def clean():
+ local("rm -rf build dist docs")
+ local("rm -f MANIFEST *.log demos/*.log")
+ local("rm -f paramiko/*.pyc")
+ local("rm -f test.log")
+ local("rm -rf paramiko.egg-info")
+
+@task
+def test():
+ local("python ./test.py")
+
+@task
+def release():
+ confirm("Only hit Enter if you remembered to update the version!")
+ build_docs()
+ local("python setup.py sdist register upload")
+ upload_docs()