summaryrefslogtreecommitdiffhomepage
path: root/fabfile.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-03-03 18:24:04 -0800
committerJeff Forcier <jeff@bitprophet.org>2014-03-03 18:24:04 -0800
commit72a73f55fae697fe3b940f378664a7c58214647f (patch)
tree553609aaa777980503536d76f074b74e1a3551ba /fabfile.py
parent4e9af2f7ca91613ea4c60ca22b96adc2247b1ba2 (diff)
parentc0fcd11ea0074d8cd019ed7087282754ea3ff792 (diff)
Merge branch '1.10' into 1.11
Conflicts: fabfile.py paramiko/__init__.py
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()