From 1a095d1620966091bd51c25acec23ab639f5aa83 Mon Sep 17 00:00:00 2001 From: William Jamir Silva Date: Thu, 25 Oct 2018 07:50:37 -0300 Subject: [PATCH] Add python_requires in setup.py (#454) This PR adds `python_requires` into `setup.py` to prevent `pip` from installing `attrs` in unsupported python versions. I know that currently `attrs` supports a wide range of python versions but I think that it's always good to have some sanity check =) --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 8ec447a38..a181c95ff 100644 --- a/setup.py +++ b/setup.py @@ -113,6 +113,7 @@ def find_meta(meta): long_description=LONG, packages=PACKAGES, package_dir={"": "src"}, + python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", zip_safe=False, classifiers=CLASSIFIERS, install_requires=INSTALL_REQUIRES,