Tweaked Fabric release task.

This commit is contained in:
Lance Edgar 2013-12-16 18:39:58 -08:00
parent 3d9292ef4c
commit 20e178336a

12
fabfile.py vendored
View file

@ -22,27 +22,15 @@
#
################################################################################
import os.path
import shutil
from fabric.api import *
execfile(os.path.join(os.path.dirname(__file__), 'rattail', 'hw', 'cognitive', '_version.py'))
@task
def release():
"""
Release a new version of 'rattail.hw.cognitive'.
"""
shutil.rmtree('rattail.egg-info')
local('python setup.py sdist --formats=gztar register upload')
filename = 'rattail.hw.cognitive-{0}.tar.gz'.format(__version__)
put(os.path.join('dist', filename), '/srv/pypi/{0}'.format(filename))
with cd('/srv/pypi'):
run('rm --recursive --force simple')
run('compoze index')