Allow skipping tests when building new release
This commit is contained in:
parent
10f879dfc8
commit
8b38a14f31
3
tasks.py
3
tasks.py
|
@ -37,10 +37,11 @@ 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`.
|
||||||
"""
|
"""
|
||||||
|
if not skip_tests:
|
||||||
ctx.run('tox')
|
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')
|
||||||
|
|
Loading…
Reference in a new issue