Skip to content

Commit a6f0e06

Browse files
committed
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
1 parent 024c0fd commit a6f0e06

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ include CHANGELOG.md
44
include CODEOWNERS
55
include CONTRIBUTING.md
66
include tox.ini
7-
recursive-include docs *
87
recursive-include examples *
98
recursive-include tests *

fabfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ def mkdirs(path):
2121
def clean():
2222
local("python setup.py clean")
2323
local("find . -name '*.pyc' -delete")
24+
local("rm -rf cmd2.egg-info")
25+
local("rm -rf dist")
26+
local("rm -rf htmlcov")
27+
local("rm -rf docs/_build")
2428

2529

2630
@task

0 commit comments

Comments
 (0)