Tweaked Fabric release
task.
This commit is contained in:
parent
3d9292ef4c
commit
20e178336a
12
fabfile.py
vendored
12
fabfile.py
vendored
|
@ -22,27 +22,15 @@
|
||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
import os.path
|
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from fabric.api import *
|
from fabric.api import *
|
||||||
|
|
||||||
|
|
||||||
execfile(os.path.join(os.path.dirname(__file__), 'rattail', 'hw', 'cognitive', '_version.py'))
|
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def release():
|
def release():
|
||||||
"""
|
"""
|
||||||
Release a new version of 'rattail.hw.cognitive'.
|
Release a new version of 'rattail.hw.cognitive'.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
shutil.rmtree('rattail.egg-info')
|
shutil.rmtree('rattail.egg-info')
|
||||||
local('python setup.py sdist --formats=gztar register upload')
|
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')
|
|
||||||
|
|
Loading…
Reference in a new issue