Skip to content

Add support for Python 3.14#227

Open
hugovk wants to merge 3 commits intoGitHubSecurityLab:mainfrom
hugovk:main
Open

Add support for Python 3.14#227
hugovk wants to merge 3 commits intoGitHubSecurityLab:mainfrom
hugovk:main

Conversation

@hugovk
Copy link
Copy Markdown

@hugovk hugovk commented Apr 22, 2026

After this is released, https://github.com/GitHubSecurityLab/seclab-taskflows can be updated for 3.14 as well.

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

Adds Python 3.14 support across packaging metadata and CI, along with dependency and GitHub Actions updates needed to keep the project compatible.

Changes:

  • Advertise Python 3.14 support via Trove classifier updates.
  • Update CI matrix to run tests on Python 3.14 (alongside 3.11).
  • Bump Pydantic-related dependencies and update several GitHub Actions major versions.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pyproject.toml Adds Python 3.14 classifier; updates pinned dependency versions (notably Pydantic stack).
.github/workflows/ci.yml Tests on Python 3.14; updates checkout action major version.
.github/workflows/smoketest.yaml Updates actions/setup-python major version.
.github/workflows/release.yml Updates checkout/setup-python/attestation action major versions.
.github/workflows/codeql.yml Updates checkout action major version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyproject.toml
"pydantic_core==2.33.2",
"pydantic==2.13.3",
"pydantic-settings==2.14.0",
"pydantic_core==2.46.3",
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

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

pydantic, pydantic-settings, and especially pydantic_core are tightly coupled; pinning pydantic_core independently can make the dependency set unsatisfiable if it doesn’t match the exact pydantic requirement. Consider removing the explicit pydantic_core pin (let pydantic pull the compatible version) or update it to the version required by pydantic==2.13.3 to avoid pip resolver failures.

Suggested change
"pydantic_core==2.46.3",

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/ci.yml
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.11', '3.13'] # the one we have in the Codespace + the latest supported one by PyO3.
python-version: ['3.11', '3.14'] # the one we have in the Codespace + the latest supported one by PyO3.
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

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

The inline comment mentions “latest supported one by PyO3”, but this repository doesn’t appear to use PyO3; this makes the rationale for the matrix versions unclear/misleading. Update the comment to reflect the actual reason for testing 3.11 and 3.14 (or remove it).

Suggested change
python-version: ['3.11', '3.14'] # the one we have in the Codespace + the latest supported one by PyO3.
python-version: ['3.11', '3.14']

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants