Drop Python 3.9 support in http-client-python (min Python 3.10)#10500
Open
Drop Python 3.9 support in http-client-python (min Python 3.10)#10500
Conversation
Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/4528d934-af72-4520-89b9-5de603ef92d6 Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update minimum Python version to 3.10
Drop Python 3.9 support in http-client-python (min Python 3.10)
Apr 27, 2026
msyyc
reviewed
Apr 27, 2026
commit: |
Contributor
|
All changed packages have been documented.
Show changes
|
Collaborator
|
You can try these changes here
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Python 3.9 reached end-of-life, so the
@typespec/http-client-pythonemitter and its generated SDKs now require Python 3.10+.Generator
MIN_PYTHON_VERSIONto3.10ingeneral_serializer.py— propagates to generatedsetup.py,pyproject.toml, andREADME.mdvia the packaging Jinja templates.Programming Language :: Python :: 3.9classifier fromgenerator/setup.py.README.md.jinja2wording to "Python 3.10+".Setup / install scripts
install.py,install.ts,run-python3.ts(emitter + eng copies),prepare.py, andbuild_pygen_wheel.pyfrom>=3.9to>=3.10, with matching message/comment updates.Lint / typecheck configs
pylintrc,pyrightconfig.json,mypy.ini,lint.ts, andrun_pylint.py.Changelog
breakingchronus entry for@typespec/http-client-python.Out of scope
Pipeline YAML already runs on 3.11/3.12. Pre-existing
(3, 9)references inimports.pyandsystem-requirements.tsare illustrative comments, not version checks, and were left alone. The deadsys.version_info < (3, 9, 0)branch invenvtools.pyand the>= (3, 9)test fallback intest_model_base_serialization.pyare similarly harmless and untouched to keep the diff minimal — happy to clean up if reviewers prefer.