summaryrefslogtreecommitdiffhomepage
path: root/fabfile.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-03-04 11:45:12 -0800
committerJeff Forcier <jeff@bitprophet.org>2014-03-04 11:45:12 -0800
commitb9cea90581c7bf3b34a12947107a4b2ee456300b (patch)
tree28f4423caff3b742e09406cdf16fc6f79a69ab0a /fabfile.py
parenta24ca77636b48f80a4cc93f07e2bb951b4de9ab7 (diff)
parentfac6cde8743d73bfce200062da1bbf5e05a74742 (diff)
Merge branch '1.12'
Diffstat (limited to 'fabfile.py')
-rw-r--r--fabfile.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/fabfile.py b/fabfile.py
deleted file mode 100644
index 7883daba..00000000
--- a/fabfile.py
+++ /dev/null
@@ -1,39 +0,0 @@
-from fabric.api import task, sudo, env, local, hosts
-from fabric.contrib.project import rsync_project
-from fabric.contrib.console import confirm
-
-
-@task
-@hosts("paramiko.org")
-def upload_docs():
- target = "/var/www/paramiko.org"
- staging = "/tmp/paramiko_docs"
- sudo("mkdir -p %s" % staging)
- sudo("chown -R %s %s" % (env.user, staging))
- 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!")
- confirm("Also, did you remember to tag your release?")
- build_docs()
- local("python setup.py sdist register upload")
- upload_docs()