Skip to content

Commit

Permalink
Merge pull request #76 from descarteslabs/bug/ssl
Browse files Browse the repository at this point in the history
Make sure SSL works correctly for older Python versions
  • Loading branch information
samskillman authored May 4, 2017
2 parents 8863eb4 + a6126e6 commit e63a7db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,16 @@ def do_setup():
'descarteslabs/scripts/metadata',
]
kwargs['install_requires'] = [
"requests",
"cachetools",
"six",
]

# Python < 2.7.9 needs requests[security] to avoid SSL issues
if sys.version_info[0:3] >= (2, 7, 9):
kwargs["install_requires"].append('requests')
else:
kwargs["install_requires"].append('requests[security]')

kwargs['license'] = 'Apache 2.0',
kwargs['zip_safe'] = False

Expand Down

0 comments on commit e63a7db

Please sign in to comment.