Skip to content

Commit 15f0348

Browse files
authored
python 2.7 compat
1 parent 52447a4 commit 15f0348

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@
33
from setuptools import find_packages, setup
44
from setuptools.command.test import test as TestCommand
55

6+
requests = "requests>=2.3.0,<3"
7+
8+
# python 2.7.9 does not support SNI
9+
if sys.version_info < (2, 7, 9):
10+
requests = "requests[security]>=2.4.1,<3"
11+
612
install_requires = [
713
"pycryptodomex==3.8.1",
8-
"requests>=2.3.0,<3",
14+
requests,
915
"pyjwt==1.7.1",
1016
"six>=1.8.0",
1117
]

0 commit comments

Comments
 (0)