Skip to content

Commit

Permalink
Since all MyGeotab servers use TLS 1.2, we must force a version of Py…
Browse files Browse the repository at this point in the history
…thon 2 that supports this (2.7.9+).

Addresses found issue in #91.
  • Loading branch information
aaront committed Mar 21, 2018
1 parent cb1d825 commit 3891bc3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
readme = ''
changelog = ''

py_version = sys.version_info[:2]
py_version = sys.version_info[:3]

packages = ['mygeotab', 'mygeotab/ext']
if py_version < (2, 7, 9):
raise RuntimeError("This package requres Python 2.7.9+")

if py_version >= (3, 5):
packages = ['mygeotab', 'mygeotab/ext']
if py_version >= (3, 5, 0):
packages.append('mygeotab/async')

setup(
Expand Down

0 comments on commit 3891bc3

Please sign in to comment.