-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
⬆️ Add support for Python 3.14 #14110
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
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Note that Pydantic v1 won't be supported on Python 3.14: pydantic/pydantic#11613 (comment) |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
📝 Docs preview for commit 40f604d at: https://5c17757c.fastapitiangolo.pages.dev |
| pyproject.toml | ||
| - name: Preinstall Pydantic 2.12.0a1 for Python 3.14 | ||
| if: matrix.python-version == '3.14' | ||
| run: uv pip install --pre "pydantic==2.12.0a1" |
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.
This can be removed when a stable Pydantic 2.12 release is available.
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| allow-prereleases: true |
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.
This can be removed when Python 3.14 is officially available.
|
I'm going to merge this into a branch on the |
|
This was useful for experimentation & testing, but the actual PR that will be merged into |
Python 3.14.0 is supposed to be released on October 7th, 2 weeks from now.
We'll need to merge this PR with #14036
Note: probably requires fastapi/sqlmodel#1578 first