Add 'python_requires' key to setup.py (#1701)

This key is important so that `pip` doesn't try to install `sanic` in unsupported Python versions:

https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
This commit is contained in:
Bruno Oliveira 2019-10-15 01:17:05 -03:00 committed by 7
parent be0d539746
commit fcdc9c83c5

View File

@ -60,6 +60,7 @@ setup_kwargs = {
"long_description": long_description,
"packages": ["sanic"],
"platforms": "any",
"python_requires": ">=3.6",
"classifiers": [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",