Skip to content

Commit 7f6bef0

Browse files
committed
Update 'fab clean' to use 'git clean' in addition to 'setup.py clean'
1 parent e66847e commit 7f6bef0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

fabfile.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,17 @@ def release():
3838
test()
3939
local("python setup.py sdist upload")
4040

41-
def clean():
41+
def clean(verified=False):
4242
local("python setup.py clean")
43+
args = ["git clean",
44+
"-dx",
45+
"-e '.pydevproject'",
46+
"-e '.project'"]
47+
if not verified:
48+
args.append("-n")
49+
else:
50+
args.append("-f")
51+
local(' '.join(args))
4352

4453
def whatsnew():
4554
local("git fetch")

0 commit comments

Comments
 (0)