summaryrefslogtreecommitdiff
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
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
-rw-r--r--MANIFEST.in1
-rw-r--r--fabfile.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index 42aac57f..07c2db6b 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -4,6 +4,5 @@ include CHANGELOG.md
include CODEOWNERS
include CONTRIBUTING.md
include tox.ini
-recursive-include docs *
recursive-include examples *
recursive-include tests *
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