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 #10666
Conversation
π Docs preview for commit 6a803e9 at: https://fdeed641.fastapitiangolo.pages.dev |
6a803e9
to
9cf9b37
Compare
π Docs preview for commit 9cf9b37 at: https://b363ac74.fastapitiangolo.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing PR! We should have this ASAP In FastAPI π
9cf9b37
to
4706a5a
Compare
π Docs preview for commit 4706a5a at: https://349a3a21.fastapitiangolo.pages.dev |
4706a5a
to
726ad48
Compare
π Docs preview for commit 726ad48 at: https://a5709203.fastapitiangolo.pages.dev |
726ad48
to
942720f
Compare
π Docs preview for commit 942720f at: https://29aa7fca.fastapitiangolo.pages.dev |
942720f
to
bdfb1e6
Compare
π Docs preview for commit bdfb1e6 at: https://3b25437a.fastapitiangolo.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My 2 cents: looks like FastAPI does not use utcnow
in its library code (only in docs_src/security
, not fastapi
) so it should not provide a compat function for it. The fix should be in the tutorials, not fastapi/_compat.py
These changes: * enable testing for Python 3.12 on CI * update classifiers at pyproject.toml * fix deprecation warning for tutorials
bdfb1e6
to
db118d7
Compare
π Docs preview for commit db118d7 at: https://4c865de2.fastapitiangolo.pages.dev |
Thank you for the review, @kiendang! ππ»ββοΈ I've came to a conclusion that you are completely right, so I've updated the PR to get rid of an unnecessary compatibility function. Even better, I've realized there is a universal solution with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π Hopefully this got merged soon.
@tiangolo When you merge this, close the others: |
Hello @tiangolo, Sorry for bothering you, but it would be really great if you find a few minutes for this PR. Thanks in advance and Happy New Year! π |
π Docs preview for commit 034ded2 at: https://56304ca1.fastapitiangolo.pages.dev |
Hello @tiangolo,
Thank you for this awesome framework! ππ»ββοΈ
I believe that it would be great to have an explicit Python 3.12 support, so I'd like to suggest changes that:
classifiers
atpyproject.toml
Best regards!