-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove support for Python < 3.6 #320
Comments
We talked about this a bit today, some answers inline:
I don't think so, I think the next release can drop Python 2 support. It might be worth doing a point release with any bugfixes, if there are any.
It does not seem that anyone is still using Python 2 with sydent.
To start with, just updating setup.py with |
plan is to announce in the v2.3.0 release that it will be the last to support python 2 or python 3.5 |
This is now done. Next steps are to remove python2 and python 3.5 from CI, and update setup.py to require python 3.6. |
EDIT: Top comment hijacked by @callahad to track remaining work.
setup.py
to state a minimum Python version of 3.6 (example from Sygnal)pyproject.toml
to state a target Python version for Black (example from Synapse)# -*- coding: utf-8 -*-
lines from files; Python 3 is UTF-8 by default--py36-plus --keep-percent-format
Original Comment:
Sydent supports Python 3 as of a few months ago. However, it also still supports Python 2, which is now end of life. In order for Sydent to take advantage of newer Python features, support for Python 2 will eventually need to be dropped.
Some questions:
I bring this up as I'd like to start using some new language features, and only just realised that our official stance on Python 2 support was still in flux :)
The text was updated successfully, but these errors were encountered: