Update release task to use twine for upload

This commit is contained in:
Lance Edgar 2018-10-18 23:36:08 -05:00
parent af956c6c42
commit 67e7ba023a

View file

@ -26,11 +26,16 @@ Tasks for Tailbone
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, 'tailbone', '_version.py')).read())
@task @task
def release(ctx, skip_tests=False): def release(ctx, skip_tests=False):
""" """
@ -40,4 +45,5 @@ def release(ctx, skip_tests=False):
ctx.run('tox') ctx.run('tox')
shutil.rmtree('Tailbone.egg-info') shutil.rmtree('Tailbone.egg-info')
ctx.run('python setup.py sdist --formats=gztar upload') ctx.run('python setup.py sdist --formats=gztar')
ctx.run('twine upload dist/Tailbone-{}.tar.gz'.format(__version__))