From fcdc9c83c51a4a08a1234c77542a6501485a75f8 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 15 Oct 2019 01:17:05 -0300 Subject: [PATCH] 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 --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 7dc06f22..bd48d994 100644 --- a/setup.py +++ b/setup.py @@ -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",