Skip to content

Commit

Permalink
Add python_requires in setup.py (python-attrs#454)
Browse files Browse the repository at this point in the history
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 =)
  • Loading branch information
williamjamir authored and hynek committed Oct 25, 2018
1 parent 4202dcb commit 1a095d1
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 @@ -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,
Expand Down

0 comments on commit 1a095d1

Please sign in to comment.