From e99399ce6683aa137cdc8199407fb8673a345cca Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Sun, 14 Oct 2012 17:05:18 -0700 Subject: [PATCH 1/2] Set up 1.8.1 chunk in NEWS --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NEWS b/NEWS index 27debed..7a08dea 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,10 @@ Issues noted as "Fabric #NN" can be found at https://github.com/fabric/fabric/. Releases ======== +v1.8.1 (DD MM YYYY) +------------------- + + v1.8.0 (3rd Oct 2012) --------------------- From 8e5f774965bc281b8154379f68e6152356eedfd8 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Sun, 14 Oct 2012 20:40:39 -0700 Subject: [PATCH 2/2] Meh fabfile for docs uploading --- fabfile.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 fabfile.py diff --git a/fabfile.py b/fabfile.py new file mode 100644 index 0000000..29394f9 --- /dev/null +++ b/fabfile.py @@ -0,0 +1,13 @@ +from fabric.api import task, sudo, env +from fabric.contrib.project import rsync_project + + +@task +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))