From 1545269ae4e5545c5a0786a4e26b86c608b7e6a9 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 20 Nov 2023 21:44:00 -0600 Subject: [PATCH] Add flag to skip tests when pushing a release hopefully this doesn't get used much, but currently am having a major headache when running python 3.7 tests via tox. probably should just drop support for that one ASAP.. --- tasks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index e6f5bf7..1a27942 100644 --- a/tasks.py +++ b/tasks.py @@ -14,11 +14,12 @@ exec(open(os.path.join(here, 'src', 'wuttjamaican', '_version.py')).read()) @task -def release(c): +def release(c, skip_tests=False): """ Release a new version of WuttJamaican """ - c.run('tox') + if not skip_tests: + c.run('tox') # rebuild local tar.gz file for distribution if os.path.exists('WuttJamaican.egg-info'):