From 174cb1b1bd192061a00bcbf503f02ea8a00a489f Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Fri, 16 Dec 2022 17:26:22 -0500 Subject: [PATCH] Update deploy dependencies --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e7870cb1..13640978 100755 --- a/setup.py +++ b/setup.py @@ -36,7 +36,10 @@ if sys.argv[-1] == "publish": reply = str(input_method(confirm_text)).lower().strip() if reply == "yes": print("\n*** Checking code health with flake8:\n") - os.system("python -m pip install 'flake8==5.0.4'") + if sys.version_info >= (3, 9): + os.system("python -m pip install 'flake8==6.0.0'") + else: + os.system("python -m pip install 'flake8==5.0.4'") flake8_status = os.system("flake8 --exclude=recordings,temp") if flake8_status != 0: print("\nWARNING! Fix flake8 issues before publishing to PyPI!\n")