summaryrefslogtreecommitdiff
path: root/fabfile.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-03-03 10:32:12 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-03-03 10:32:12 -0500
commita6f0e06a350f2ab65d3bf635fa7aae0b655ed44a (patch)
treecb5321342afa5d019dc6025efc7ee30b3f82c8aa /fabfile.py
parent024c0fda2c3a374c006b34bd0bf251b04e16a9cb (diff)
downloadcmd2-git-a6f0e06a350f2ab65d3bf635fa7aae0b655ed44a.tar.gz
Improved clean() function in fabfile.py
- It now cleans up all of the following: - cmd2.egg-info directory - dist directory - docs/_build directory - htmlcov code coverage directory Also: - Tested that the fabfile works with the fabric3 "fab" command - Removed raw Sphinx docs from MANIFEST.in and hence the PyPI tarball - It probably wouldn't help end users to include the raw restructured text files
Diffstat (limited to 'fabfile.py')
-rw-r--r--fabfile.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/fabfile.py b/fabfile.py
index d0989f3a..8d5281f4 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -21,6 +21,10 @@ def mkdirs(path):
def clean():
local("python setup.py clean")
local("find . -name '*.pyc' -delete")
+ local("rm -rf cmd2.egg-info")
+ local("rm -rf dist")
+ local("rm -rf htmlcov")
+ local("rm -rf docs/_build")
@task