Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a0b35dfadb |
1 changed files with 0 additions and 12 deletions
12
fabfile.py
vendored
12
fabfile.py
vendored
|
@ -22,27 +22,15 @@
|
|||
#
|
||||
################################################################################
|
||||
|
||||
import os.path
|
||||
import shutil
|
||||
|
||||
from fabric.api import *
|
||||
|
||||
|
||||
execfile(os.path.join(os.path.dirname(__file__), 'edbob', '_version.py'))
|
||||
|
||||
|
||||
@task
|
||||
def release():
|
||||
"""
|
||||
Release a new version of 'edbob'.
|
||||
"""
|
||||
|
||||
shutil.rmtree('edbob.egg-info')
|
||||
local('python setup.py sdist --formats=gztar register upload')
|
||||
|
||||
filename = 'edbob-{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…
Add table
Add a link
Reference in a new issue