Skip to content

Add support for Python 3.14#12967

Merged
lukasmasuch merged 11 commits intodevelopfrom
add-python-3-14-support
Nov 19, 2025
Merged

Add support for Python 3.14#12967
lukasmasuch merged 11 commits intodevelopfrom
add-python-3-14-support

Conversation

@lukasmasuch
Copy link
Copy Markdown
Collaborator

@lukasmasuch lukasmasuch commented Nov 7, 2025

Describe your changes

Adds official support for Python 3.14 and activates our CI to run with Python 3.14.

GitHub Issue Link (if applicable)


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@snyk-io
Copy link
Copy Markdown
Contributor

snyk-io bot commented Nov 7, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 7, 2025

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-12967/streamlit-1.51.0-py3-none-any.whl
📦 @streamlit/component-v2-lib Download from artifacts
🕹️ Preview app pr-12967.streamlit.app (☁️ Deploy here if not accessible)

@lukasmasuch
Copy link
Copy Markdown
Collaborator Author

lukasmasuch commented Nov 7, 2025

Requires a new altair release: vega/altair#3895

@sfc-gh-lmasuch sfc-gh-lmasuch changed the title Add support for Python 3.14 [WIP] Add support for Python 3.14 Nov 7, 2025
@EwoutH
Copy link
Copy Markdown
Contributor

EwoutH commented Nov 12, 2025

altair 6.0.0 Is now released with Python 3.14 support.

@lukasmasuch lukasmasuch changed the base branch from develop to support-altair-6 November 14, 2025 01:50
@lukasmasuch lukasmasuch added security-assessment-completed change:feature PR contains new feature or enhancement implementation impact:users PR changes affect end users labels Nov 14, 2025
@lukasmasuch lukasmasuch requested a review from Copilot November 14, 2025 01:50
@lukasmasuch lukasmasuch changed the title [WIP] Add support for Python 3.14 Add support for Python 3.14 Nov 14, 2025
@lukasmasuch lukasmasuch marked this pull request as ready for review November 14, 2025 01:51
@lukasmasuch lukasmasuch requested a review from a team as a code owner November 14, 2025 01:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR attempts to add support for Python 3.14 to the Streamlit library. However, Python 3.14 has not been officially released yet (as of early 2025), making this change premature.

Key Changes:

  • Updated Python version classifiers in setup.py to include 3.14
  • Updated documentation and developer guidelines to reflect 3.10-3.14 support range
  • Modified CI/CD configuration to include Python 3.14 in the test matrix

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lib/setup.py Added Python 3.14 classifier to package metadata
lib/AGENTS.md Updated supported Python versions documentation from 3.10-3.13 to 3.10-3.14
.github/instructions/python.instructions.md Updated supported Python versions in developer instructions
.github/actions/build_info/action.yml Modified CI configuration to set max Python version to 3.14 and added 3.13 to test matrix
.github/ISSUE_TEMPLATE/bug_report.yml Updated example Python version from 3.13 to 3.14 in bug report template
.cursor/rules/python.mdc Updated supported Python versions in cursor rules documentation

Base automatically changed from support-altair-6 to develop November 18, 2025 00:34
assert sr6.selectbox[3].value == "Lisp"

with pytest.raises(ValueError, match="'invalid' is not in list"):
with pytest.raises(ValueError, match="not in list"):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[question] How is this related to python 3.14?

Copy link
Copy Markdown
Collaborator Author

@lukasmasuch lukasmasuch Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I remember, this ValueError error message is triggered by python itself and something had slightly changed with the wording in 3.14

Copy link
Copy Markdown
Collaborator

@sfc-gh-lwilby sfc-gh-lwilby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT

@lukasmasuch lukasmasuch merged commit 1873696 into develop Nov 19, 2025
39 checks passed
@lukasmasuch lukasmasuch deleted the add-python-3-14-support branch November 19, 2025 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:feature PR contains new feature or enhancement implementation impact:users PR changes affect end users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Python 3.14

4 participants