Skip to content

Add Python 3.14 classifier to generated pyproject.toml#10246

Merged
iscai-msft merged 5 commits into
mainfrom
copilot/update-pyproject-toml-python-support
Jun 5, 2026
Merged

Add Python 3.14 classifier to generated pyproject.toml#10246
iscai-msft merged 5 commits into
mainfrom
copilot/update-pyproject-toml-python-support

Conversation

Copilot AI commented Apr 2, 2026

Copy link
Copy Markdown
Contributor
  • Update MAX_PYTHON_VERSION from "3.13" to "3.14" in packages/http-client-python/generator/pygen/codegen/serializers/general_serializer.py so emitted pyproject.toml includes the Python 3.14 classifier
  • Add changelog entry for @typespec/http-client-python (feature kind)

Copilot AI and others added 2 commits April 2, 2026 00:52
@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 Apr 2, 2026
@pkg-pr-new

pkg-pr-new Bot commented Apr 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: bbccddb

Copilot AI requested a review from johanste April 2, 2026 01:16
@microsoft-github-policy-service microsoft-github-policy-service Bot added the stale Mark a PR that hasn't been recently updated and will be closed. label May 4, 2026
@iscai-msft iscai-msft reopened this Jun 5, 2026
iscai-msft and others added 2 commits June 5, 2026 16:01
In types.py (TypedDict definitions), use the JSON wire type instead of
rich Python types for properties:
- datetime.datetime → str
- datetime.date → str
- datetime.time → str
- datetime.timedelta → str
- datetime.datetime (unix) → int
- decimal.Decimal → float
- bytes → str

This follows the principle that TypedDicts represent the wire/JSON shape
of the data. Rich types like datetime are still used in model classes
and operation signatures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - feature ✏️

Add Python 3.14 classifier to generated pyproject.toml

@azure-sdk-automation

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@iscai-msft
iscai-msft added this pull request to the merge queue Jun 5, 2026
Merged via the queue into main with commit 91e98d4 Jun 5, 2026
41 checks passed
@iscai-msft
iscai-msft deleted the copilot/update-pyproject-toml-python-support branch June 5, 2026 22:07
JennyPng pushed a commit to JennyPng/typespec that referenced this pull request Jun 10, 2026
- [x] Update `MAX_PYTHON_VERSION` from `"3.13"` to `"3.14"` in
`packages/http-client-python/generator/pygen/codegen/serializers/general_serializer.py`
so emitted `pyproject.toml` includes the Python 3.14 classifier
- [x] Add changelog entry for `@typespec/http-client-python` (feature
kind)

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: johanste <15110018+johanste@users.noreply.github.com>
Co-authored-by: iscai-msft <isabellavcai@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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 stale Mark a PR that hasn't been recently updated and will be closed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants