Skip to content

Add Python 3.15 support to the Python emitter - #12161

Merged
Libba Lawrence (l0lawrence) merged 3 commits into
mainfrom
copilot/microsofttypespec-12158-add-3-15-support-to-emitte
Oct 16, 2026
Merged

Libba Lawrence (l0lawrence) merged 3 commits into
mainfrom
copilot/microsofttypespec-12158-add-3-15-support-to-emitte

Conversation

Copilot AI commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Generated Python package metadata did not advertise Python 3.15. The emitter now includes it in supported-version classifiers.

  • Generated clients: Extend the classifier range through Python 3.15 and update the checked-in fixture.
  • Generator package: Add the Python 3.15 classifier.
  • Coverage: Assert that generated project metadata includes the new classifier.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: l0lawrence <100643745+l0lawrence@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Oct 12, 2026
Copilot AI changed the title [WIP] Add 3.15 support to emitter Add Python 3.15 support to the Python emitter Oct 12, 2026
@pkg-pr-new

pkg-pr-new Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-python@12161

commit: 7850dc9

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused metadata changes have a regression assertion and no blocking findings; tests were not run.

1 open finding
What changed in this PR

Updates Python emitter metadata to advertise Python 3.15 support.

Changes:

  • Extends generated-client and generator-package classifiers through Python 3.15.
  • Updates the generated fixture and adds a regression assertion.
  • Adds a changelog entry.
File Description
packages/​http-client-python/​tests/​unit/​test_pyproject_keep_fields.py Asserts the Python 3.15 classifier is generated.
packages/​http-client-python/​tests/​generated/​azure/​authentication-union/​pyproject.toml Updates the generated classifier fixture.
packages/​http-client-python/​generator/​setup.py Advertises Python 3.15 for the generator.
packages/​http-client-python/​generator/​pygen/​codegen/​serializers/​general_serializer.py Raises the maximum classifier version to 3.15.
.chronus/​changes/​python-3-15-support-2026-10-12.md Documents the metadata update.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .chronus/changes/python-3-15-support-2026-10-12.md
@iscai-msft

Copy link
Copy Markdown
Member

Copilot can you make sure that we upgrade the maximum python version we test with as well?

Co-authored-by: iscai-msft <43154838+iscai-msft@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 15, 2026 17:35

Copilot AI commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

Copilot can you make sure that we upgrade the maximum python version we test with as well?

Updated the Python emitter CI and pipeline test runtimes to Python 3.15 in 7850dc9.

@azure-sdk-automation

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The CI and publishing runtime changes need Python 3.15 compatibility validation and human review.

1 open finding

🧠 Review effort: Balanced

@l0lawrence
Libba Lawrence (l0lawrence) added this pull request to the merge queue Oct 16, 2026
Merged via the queue into main with commit 5e3d328 Oct 16, 2026
40 of 41 checks passed
@l0lawrence
Libba Lawrence (l0lawrence) deleted the copilot/microsofttypespec-12158-add-3-15-support-to-emitte branch October 16, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python eng

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[python] add 3.15 support to emitter

5 participants