Update release task to use twine for upload
This commit is contained in:
parent
0e4ac381c3
commit
0f07b536ee
8
tasks.py
8
tasks.py
|
@ -26,15 +26,21 @@ Tasks for rattail-fabric2
|
||||||
|
|
||||||
from __future__ import unicode_literals, absolute_import
|
from __future__ import unicode_literals, absolute_import
|
||||||
|
|
||||||
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from invoke import task
|
from invoke import task
|
||||||
|
|
||||||
|
|
||||||
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
exec(open(os.path.join(here, 'rattail', '_version.py')).read())
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def release(c):
|
def release(c):
|
||||||
"""
|
"""
|
||||||
Release a new version of 'rattail-fabric2'.
|
Release a new version of 'rattail-fabric2'.
|
||||||
"""
|
"""
|
||||||
shutil.rmtree('rattail_fabric2.egg-info')
|
shutil.rmtree('rattail_fabric2.egg-info')
|
||||||
c.run('python setup.py sdist --formats=gztar upload')
|
c.run('python setup.py sdist --formats=gztar')
|
||||||
|
c.run('twine upload dist/rattail-fabric2-{}.tar.gz'.format(__version__))
|
||||||
|
|
Loading…
Reference in a new issue