From 8b38a14f31e319e7fb0a906a8f84d2cb103b281f 2020-09-19 16:14:47 From: Lance Edgar Date: 2020-09-19 16:14:47 Subject: [PATCH] Allow skipping tests when building new release --- diff --git a/tasks.py b/tasks.py index c13acde19420ab654d950945b06b2e3d3db36b42..45a199617d0c4317c4110c3d6ae29c0ff1d0d0c7 100644 --- a/tasks.py +++ b/tasks.py @@ -37,11 +37,12 @@ exec(open(os.path.join(here, 'rattail', '_version.py')).read()) @task -def release(ctx): +def release(ctx, skip_tests=False): """ Release a new version of `rattail`. """ - ctx.run('tox') + if not skip_tests: + ctx.run('tox') shutil.rmtree('rattail.egg-info') ctx.run('python setup.py sdist --formats=gztar') ctx.run('twine upload dist/rattail-{}.tar.gz'.format(__version__))