Fix old python versions
@@ -77,13 +77,14 @@ install_requires = ['kafka-python==1.3.3']
PY_VER = sys.version_info
-if PY_VER <= (3, 4):
+if PY_VER >= (3, 5):
+ pass
+elif PY_VER >= (3, 4):
+ install_requires.append('typing')
+elif PY_VER >= (3, 3):
install_requires.append('typing')
-
-if PY_VER == (3, 3):
install_requires.append('asyncio')
-
-if PY_VER < (3, 3):
+else:
raise RuntimeError("aiokafka doesn't suppport Python earlier than 3.3")
