From 6440319bb06fb393f5e30dc38eddd578dc14a565 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 22 May 2013 18:10:55 -0700 Subject: [PATCH] Tweaked Fabric `release` command. --- fabfile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fabfile.py b/fabfile.py index dddd320c..59fc3925 100644 --- a/fabfile.py +++ b/fabfile.py @@ -23,6 +23,7 @@ ################################################################################ import os.path +import shutil from fabric.api import * @@ -36,7 +37,8 @@ def release(): Release a new version of 'rattail.pyramid'. """ - local("python setup.py egg_info --tag-build='' sdist --formats=gztar") + shutil.rmtree('rattail.pyramid.egg-info') + local('python setup.py sdist --formats=gztar register upload') filename = 'rattail.pyramid-{0}.tar.gz'.format(__version__)