diff options
author | Jeremy T. Bouse <jbouse@debian.org> | 2014-05-11 22:30:25 -0400 |
---|---|---|
committer | Jeremy T. Bouse <jbouse@debian.org> | 2014-05-11 22:30:25 -0400 |
commit | 4e426087436d01fe00a120e5e7ce7a5e0a1e0970 (patch) | |
tree | 16b810aaf50263083ca758b6bd70895cba4378a3 /fabfile.py | |
parent | 3bb46c9cb414ca82afab715d2d0cc00ed71cfb6d (diff) | |
download | python-paramiko-upstream/1.14.0.tar python-paramiko-upstream/1.14.0.tar.gz |
Imported Upstream version 1.14.0upstream/1.14.0
Diffstat (limited to 'fabfile.py')
-rw-r--r-- | fabfile.py | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/fabfile.py b/fabfile.py deleted file mode 100644 index 7883dab..0000000 --- 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() |