From c9ea79f0f94a1d34dc6f8dc36f9f7471f6d840b9 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 12 Apr 2018 04:31:53 -0700 Subject: Pass python_requires argument to setuptools (#847) Helps pip decide what version of the library to install. https://packaging.python.org/tutorials/distributing-packages/#python-requires > If your project only runs on certain Python versions, setting the > python_requires argument to the appropriate PEP 440 version specifier > string will prevent pip from installing the project on other Python > versions. https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords > python_requires > > A string corresponding to a version specifier (as defined in PEP 440) > for the Python version, used to specify the Requires-Python defined in > PEP 345. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 21d7f8ab..d0e3ff3a 100644 --- a/setup.py +++ b/setup.py @@ -132,6 +132,7 @@ setup( zip_safe=False, license='BSD', cmdclass={'test': pytest}, + python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", install_requires=reqs('default.txt'), tests_require=reqs('test.txt'), extras_require={ -- cgit v1.2.1