summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-03-03 18:22:44 -0800
committerJeff Forcier <jeff@bitprophet.org>2014-03-03 18:22:44 -0800
commitc0fcd11ea0074d8cd019ed7087282754ea3ff792 (patch)
tree568e535e4f39ad77c1ab4882e1a42385ac5cf7e2
parent056323979d7a2a5623bc2c3845fde9888093b4f2 (diff)
downloadparamiko-sphinx-256.tar.gz
Herpaderp, copy not movesphinx-256
-rw-r--r--tasks.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tasks.py b/tasks.py
index d48a0de0..c9844780 100644
--- a/tasks.py
+++ b/tasks.py
@@ -1,5 +1,6 @@
+from os import mkdir
from os.path import join
-from shutil import rmtree, move
+from shutil import rmtree, copytree
from invoke import Collection, ctask as task
from invocations import docs as _docs
@@ -38,8 +39,9 @@ def coverage(ctx):
@task('docs') # Will invoke the API doc site build
def release(ctx):
# Move the built docs into where Epydocs used to live
- rmtree('docs')
- move(docs_build, 'docs')
+ target = 'docs'
+ rmtree(target, ignore_errors=True)
+ copytree(docs_build, target)
# Publish
publish(ctx)