We should use the python_requires setup option to enforce supported Python versions at install time. This will have to wait for us to drop support for pypy3.2. The syntax once pypy3.2 and python 2.6 are dropped should look like this:
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*'
Note that we'll have to build wheels using at least setuptools 24.2.0 for this to work (which shouldn't be a problem anywhere), and versions of pip older than 9.0.0 completely ignore this.
- depends on
-
PYTHON-1467 Drop support for CPython 2.6
- Released
-
PYTHON-1536 Drop support for PyPy 3.2
- Closed
- is depended on by
-
PYTHON-1542 Consider using PEP 508 environment markers with extras_require
- Closed