Skip to content

Conversation

@svlandeg
Copy link
Member

@svlandeg svlandeg commented Sep 24, 2025

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

@svlandeg svlandeg self-assigned this Sep 24, 2025
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@svlandeg
Copy link
Member Author

Note that Pydantic v1 won't be supported on Python 3.14: pydantic/pydantic#11613 (comment)

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions
Copy link
Contributor

📝 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"
Copy link
Member Author

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
Copy link
Member Author

@svlandeg svlandeg Sep 24, 2025

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.

@svlandeg svlandeg changed the base branch from master to feature/py314 September 24, 2025 15:56
@svlandeg svlandeg marked this pull request as ready for review September 24, 2025 15:57
@svlandeg
Copy link
Member Author

I'm going to merge this into a branch on the fastapi repo to facilitate testing of #14036 on the CI running Python 3.14.

@svlandeg svlandeg merged commit 42dd4e7 into fastapi:feature/py314 Sep 24, 2025
51 of 53 checks passed
@svlandeg svlandeg deleted the feature/314 branch September 24, 2025 15:58
@svlandeg
Copy link
Member Author

svlandeg commented Oct 7, 2025

This was useful for experimentation & testing, but the actual PR that will be merged into master will be #14165.

@svlandeg svlandeg removed their assignment Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant