Skip to content

Commit f59300d

Browse files
author
Victoria Hall
committed
formatting for setup.py
1 parent 106e4c0 commit f59300d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

setup.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33

4+
import sys
5+
46
from setuptools import find_packages, setup
57
from azure.functions import __version__
68

79
EXTRA_REQUIRES = {
810
'dev': [
9-
"flake8~=4.0.1; python_version <= '3.11'",
10-
"flake8~=7.*; python_version >= '3.12'",
1111
'flake8-logging-format',
1212
'mypy',
1313
'pytest',
@@ -18,6 +18,15 @@
1818
]
1919
}
2020

21+
if sys.version_info[:2] <= (3, 11):
22+
EXTRA_REQUIRES.get('dev').extend(
23+
("flake8~=4.0.1")
24+
)
25+
else:
26+
EXTRA_REQUIRES.get('dev').extend(
27+
("flake8~=7.1.1")
28+
)
29+
2130
with open("README.md") as readme:
2231
long_description = readme.read()
2332

0 commit comments

Comments
 (0)