Allow skipping tests when building new release

This commit is contained in:
Lance Edgar 2020-09-19 16:14:47 -05:00
parent 10f879dfc8
commit 8b38a14f31

View file

@ -37,11 +37,12 @@ exec(open(os.path.join(here, 'rattail', '_version.py')).read())
@task @task
def release(ctx): def release(ctx, skip_tests=False):
""" """
Release a new version of `rattail`. Release a new version of `rattail`.
""" """
ctx.run('tox') if not skip_tests:
ctx.run('tox')
shutil.rmtree('rattail.egg-info') shutil.rmtree('rattail.egg-info')
ctx.run('python setup.py sdist --formats=gztar') ctx.run('python setup.py sdist --formats=gztar')
ctx.run('twine upload dist/rattail-{}.tar.gz'.format(__version__)) ctx.run('twine upload dist/rattail-{}.tar.gz'.format(__version__))