-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Drop Python 3.8 support #8685
Comments
We should drop 3.9 unless there is an exceptional reason not to. 3.10 contains some really nice typing features that would allow us to clean quite a few things up. |
I'm not sure if its a good idea to drop support for Python 3.9 if there's still a year left and it might make Gradio 5 unusuable for many developers without having to install a new version of Python. It looks like ~10% of our users currently use Python 3.9 -- which is about the same % as Python 3.8, but at least that is being EOL'd. ![]() As far as I can tell, there is only this place in the code place where we have to handle Python 3.9 or below explicitly is here: Line 823 in 94a1143
|
Hmm, i thought I responded to this. While we don't explicitly handle versions elsewhere, there are definitely cases where we have multiple implementations to handle different versions. I definitely did this for the component docs. I didn't version sniff, but I did feature detection instead but it amounts to the same thing. As an example, my |
As a recent ex-Windows user, upgrading Python can be a major pain 😆 its not as simple as upgrading a library or even as simple as upgrading node versions. And it doesn't seem to be that rare either, a quick search on Spaces shows a decent number of Spaces that have set
If supporting Python 3.9 does indeed make the code more difficult to maintain, I'd be fine with dropping support. But I'm pretty surprised to hear that. What does Python 3.9 not support for the |
No, i've always had this in an dropped 3.9 support later. I'll double check what the issue was. |
results from an informal twitter poll just for fun: https://x.com/abidlabs/status/1810321004939612295 |
34 ppl, kill it til its dead. |
Given that Python 3.8 is EOL-ing in October, we can drop support for this. We can also consider ending support for 3.9 but that may be too aggressive for the 5.0 release
The text was updated successfully, but these errors were encountered: