From 6b3e645c12c842c8a7ad33246617578ab11841d2 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 19 Jul 2018 17:41:17 -0500 Subject: [PATCH] Allow skipping of tests during release sometimes ya just gotta do it --- tasks.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index a363bf34..c9f5c4a2 100644 --- a/tasks.py +++ b/tasks.py @@ -32,10 +32,12 @@ from invoke import task @task -def release(ctx): +def release(ctx, skip_tests=False): """ Release a new version of 'Tailbone'. """ - ctx.run('tox') + if not skip_tests: + ctx.run('tox') + shutil.rmtree('Tailbone.egg-info') ctx.run('python setup.py sdist --formats=gztar upload')