Skip to content

Commit

Permalink
REL: add python_requires to setup.py
Browse files Browse the repository at this point in the history
This allows pip to figure out the last compatible version
with a particular Python version before attempting to
install.

Support for this field was added to setuptools last year:
pypa/setuptools#631
  • Loading branch information
rgommers committed Apr 15, 2017
1 parent 6c91e9e commit 343de6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ def setup_package():
platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
test_suite='nose.collector',
cmdclass={"sdist": sdist_checked},
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
)

if "--force" in sys.argv:
Expand Down

0 comments on commit 343de6f

Please sign in to comment.