Bump minimum python version to 3.7.0 (#2394)

This is in anticipation of #2246, although I've written that PR to not break on 3.6, the feature itself is not usable on 3.6. So I think the best way forward is to simply require python 3.7. This also allows devs and cog creators to utilise all of the new features in 3.7, and it also updates the docs so all operating systems will have 3.7 installed.

Signed-off-by: Toby <tobyharradine@gmail.com>
This commit is contained in:
Toby Harradine
2019-01-30 14:07:53 +11:00
committed by GitHub
parent c7d98f88e8
commit 016a6d3aa6
13 changed files with 99 additions and 82 deletions

View File

@@ -3,12 +3,7 @@ import warnings
import discord
import colorama
# Let's do all the dumb version checking in one place.
if sys.platform == "win32":
# Due to issues with ProactorEventLoop prior to 3.6.6 (bpo-26819)
MIN_PYTHON_VERSION = (3, 6, 6)
else:
MIN_PYTHON_VERSION = (3, 6, 2)
MIN_PYTHON_VERSION = (3, 7, 0)
if sys.version_info < MIN_PYTHON_VERSION:
print(