Repository navigation
Drop Python 2.6 support - #916
Conversation
|
Here's the pip installs for redis from PyPI for the last month, showing low numbers for 2.6: 3.3 also went EOL last month and has even lower numbers. |
|
I'm happy to also drop support for Python 3.3 if it is agreeable with the project maintainers. @andymccurdy what do you think? |
|
@jdufresne you should really split all changes in this MR into separate commits where you in each commit fix each of the lines in your list in the first comment. That would make it much easier to review compared to now where it is just one big commit with 19 files changed. |
|
@Grokzen I've split the commit to several smaller commits. Each commit tries to handle a single focused aspect of the change. Please review. |
|
There are a couple of functions on the client that accept timedeltas that get converted to seconds/milliseconds by manual calculation, e.g. in client.py:1212 With the introduction of timedelta.total_seconds() in py2.7 this can be changed to: etc. |
|
@zeebonk, good call. Thanks for reviewing. I've added two new commits. One to use I've also rebased all commits to the latest master. |
|
Here's pip installs for redis from PyPI for May 2018, Python 2.6 downloads are down 61% since October:
Source: |
|
Rebased to resolve merge conflicts. |
|
I'm going to look at this tomorrow or over the weekend. I would very much like to drop support for 2.6 and 3.3. Thanks for the work on this. |
Python 2.6 is EOL. It is no longer receiving bug fixes, including for security issues. It has been EOL since 2013-10-29. For additional details of the status of Python versions, see: https://devguide.python.org/#status-of-python-branches For discussions on why removing Python 2.6 benefits the entire community, please see: https://snarky.ca/stop-using-python-2-6/ http://www.curiousefficiency.org/posts/2015/04/stop-supporting-python26.html
All supported Python versions support the with statement.
All Python versions can handled ordered placeholders.
Available on all supported Python versions.
Remove workaround for handling unicode with older Pythons.
Python 3.3 is EOL. It is no longer receiving bug fixes, including for security issues. It has been EOL since 2017-09-29. For additional details of the status of Python versions, see: https://devguide.python.org/#status-of-python-branches
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.
Now that redis-py has removed support for EOL Pythons, can once again run tests using the latest version of pytest.
|
@jdufresne @di Thanks so much for the effort on this. Super helpful. Merged. |
Remove 2.6 workarounds. Update testing configurations. Use modern Python syntax where available:
iopackage forBytesIOfrom __future__ import with_statementThanks Dustin Ingram for the original patch.
This is a continuation of the work started by @di in #796. I have rebased the patch and addressed a couple other cleanups I saw. I'll happily close this PR if the other work continues.