-
Notifications
You must be signed in to change notification settings - Fork 566
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.8 #1966
Comments
i would suggest to go directly with 3.10 instead of 3.9, like for example ubuntu 20 comes with 3.8, but ubuntu 22 comes with 3.10, so there is 3.9 only in non LTS versions. just my 2 cents |
Changes the minimum version to 3.9
this is coming soon, should we go with 3.9 or 3.10? |
3.10 😜 |
To define the issue, "declaring support" (or "removing support for") means that:
By keeping more versions of Python available, theoretically there are more users/environments that can install capa. But, in practice, who are these people? Especially in the age of docker containers and virtual environments. Python 3.9 is supported (security patches) for the next year, until Oct 2025. https://devguide.python.org/versions/ So, the Python organization provides support for this audience. According to pypistats.org, around 2% of capa downloads are for Python 3.9 Here are the upcoming language features of Python that we can start using: |
We could try dropping support for 3.9 but not use any new language features, and if noone complains after X amount of time (advertised in the readme/changelog/warning messages) then we could make it official (or revert and re-add support for 3.9). https://docs.python.org/3/library/exceptions.html#DeprecationWarning |
Personally, I like the consistency of following Python.org, because then we don't have to make decisions ourselves and debate which language features are worth what user base. OTOH, I think capa would use the following 3.10 language features reasonably heavily:
|
Nice stats, thank you! I agree that 3.10 offers some cool new language features. For the <2% of Python 3.9 downloads I think the pros outweigh the few users (who can probably easily upgrade to a newer Python anyway). |
if we do a point release soon (which I think we were planning to do), then lets include a note about this (and maybe warning when run under Python 3.8 or 3.9). then as soon as that's released, bump the minimum python version to 3.10 and start using those language features. thoughts? |
Sounds good to me! |
Notably, Windows 7 will not be supported anymore as the last supporte Python is 3.8 (https://www.python.org/downloads/windows/). |
Tasks
The text was updated successfully, but these errors were encountered: