Skip to content

Drop Python 3.9 support in typespec-python#4329

Open
Copilot wants to merge 3 commits into
mainfrom
copilot/drop-python-3-9
Open

Drop Python 3.9 support in typespec-python#4329
Copilot wants to merge 3 commits into
mainfrom
copilot/drop-python-3-9

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 27, 2026

Python 3.9 reached end-of-life, so bump the minimum supported Python version to 3.10 in @azure-tools/typespec-python.

  • Runtime version guards: bumped the sys.version_info check (and error message) from (3, 9, 0) to (3, 10, 0) in eng/scripts/setup/install.py and prepare.py, and updated the patchPythonPath requirement in eng/scripts/setup/run-python3.ts from >=3.9 to >=3.10.
  • Static analysis configs: updated target Python version to 3.10 in pylintrc, pyrightconfig.json, mypy.ini, and the --py-version flag passed in run_pylint.py.
  • Changelog: added a breaking chronus entry under .chronus/changes/.
# eng/scripts/setup/install.py / prepare.py
if not sys.version_info >= (3, 10, 0):
    raise Exception("Autorest for Python extension requires Python 3.10 at least")

Copilot AI linked an issue Apr 27, 2026 that may be closed by this pull request
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:python Issues for @azure-tools/typespec-python emitter label Apr 27, 2026
Copilot AI changed the title [WIP] Update minimum version to Python 3.10 Drop Python 3.9 support in typespec-python Apr 27, 2026
Copilot AI requested a review from msyyc April 27, 2026 06:58
Comment thread .chronus/changes/python-drop-py39-2026-04-27-06-52-15.md Outdated
@msyyc msyyc marked this pull request as ready for review April 27, 2026 07:45
@azure-sdk
Copy link
Copy Markdown
Collaborator

All changed packages have been documented.

  • @azure-tools/typespec-python
Show changes

@azure-tools/typespec-python - deprecation ✏️

Drop support for Python 3.9. The minimum supported Python version is now 3.10.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 27, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@azure-tools/typespec-python@4329

commit: c077117

@azure-sdk
Copy link
Copy Markdown
Collaborator

You can try these changes here

🛝 Playground 🌐 Website

@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 27, 2026
@microsoft-github-policy-service
Copy link
Copy Markdown

Hi @@copilot. Your PR has had no update for 30 days and it is marked as a stale PR. If it is not updated within 30 days, the PR will automatically be closed. If you want to refresh the PR, please remove the stale label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:python Issues for @azure-tools/typespec-python emitter 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.

Drop python 3.9

3 participants