-
Notifications
You must be signed in to change notification settings - Fork 124
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
Add support for Python 3.12 and drop EOL 3.6 #323
Conversation
Thanks @hugovk! This LGTM; I'll wait for @frostming to additionally OK the Python version deprecations here. |
@hugovk just chiming it to say that not everything that is deprecated should be quickly discarded as unused. There are LTS operating system versions which are based off Python 3.6 which are maintained, e.g. RHEL 8 is maintained at least till 2029. |
I'm not sure this is a great reason for us, as an upstream, to continue supporting EOL Python versions: maintaining (and selling) an LTS Linux distribution comes with the expectation of carrying patches and support potentially past the point of upstream support. Given that and the fact that 3.6 and 3.7 are sitting at less that 5% total downloads combined (https://pypistats.org/packages/cachecontrol), my first inclination is to say that we should drop these. That being said, Requests itself also has a minimum Python version of 3.7, so maybe we should piggyback on their policy and drop only 3.6 for now. Thoughts @hugovk? |
Sure, updated! |
and tweak ignores.
Thanks @hugovk! |
* Add support for Python 3.12 * Drop support for EOL Python 3.6 * Upgrade Python syntax with pyupgrade --py37-plus * examples, tests: reformat * cachecontrol, tox: run mypy on 3.12 and tweak ignores. --------- Co-authored-by: William Woodruff <[email protected]>
The second Python 3.12 release candidate is out! 🚀
Python 3.12.0 final is due out in two weeks: 2023-10-02.
See also https://dev.to/hugovk/help-test-python-312-beta-1508/
Python 3.7 is EOL and no longer receiving security updates (or any updates) from the core Python team.
https://devguide.python.org/versions/