Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .chronus/changes/python-3-15-support-2026-10-12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- "@typespec/http-client-python"
---

Add Python 3.15 to generated package classifiers.
Comment thread
l0lawrence marked this conversation as resolved.
Resolved
2 changes: 1 addition & 1 deletion .github/workflows/ci-emitter-diff-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- uses: ./.github/actions/setup
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
python-version: "3.15"

- name: Install repo dependencies
run: pnpm install
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
python-version: "3.15"

- name: Install repo dependencies
run: pnpm install
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:

- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
python-version: "3.15"

- name: Download generated artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:

- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
python-version: "3.15"

- name: Download generated artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:

- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
python-version: "3.15"

- name: Download generated artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:

- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
python-version: "3.15"

- name: Download generated artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
Expand Down Expand Up @@ -220,7 +220,7 @@ jobs:

- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
python-version: "3.15"

- name: Install repo dependencies
run: pnpm install
Expand Down
2 changes: 1 addition & 1 deletion packages/http-client-python/eng/pipeline/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ extends:
LanguageShortName: "python"
CadlRanchName: "@typespec/http-client-python"
EnableCadlRanchReport: false
PythonVersion: "3.11"
PythonVersion: "3.15"
UploadPlaygroundBundle: true
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ stages:
Condition: ${{ parameters.Condition }}
DependsOn: ${{ parameters.DependsOn }}
LanguageShortName: "python"
PythonVersion: "3.12"
PythonVersion: "3.15"
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}

MIN_PYTHON_VERSION = "3.10"
MAX_PYTHON_VERSION = "3.14"
MAX_PYTHON_VERSION = "3.15"


class GeneralSerializer(BaseSerializer):
Expand Down
1 change: 1 addition & 0 deletions packages/http-client-python/generator/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"License :: OSI Approved :: MIT License",
],
packages=find_packages(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
]
requires-python = ">=3.10"
keywords = ["azure", "azure sdk"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
the emitter doesn't own (description, classifiers, project URLs) must be
preserved so they are not clobbered (see GitHub issue #10311).
"""
from pygen.codegen.serializers.general_serializer import GeneralSerializer
from pygen.codegen.serializers.general_serializer import MAX_PYTHON_VERSION, GeneralSerializer


_ALL_FIELDS = ("authors", "description", "classifiers", "urls")
Expand Down Expand Up @@ -192,7 +192,7 @@ def _render_pyproject(option_value, existing_content):
client_name="X",
VERSION_MAP={"isodate": "0.6.1", "azure-core": "1.37.0", "typing-extensions": "4.6.0"},
MIN_PYTHON_VERSION="3.10",
MAX_PYTHON_VERSION="3.14",
MAX_PYTHON_VERSION=MAX_PYTHON_VERSION,
ADDITIONAL_DEPENDENCIES=[],
)
return tomli.loads(rendered)
Expand Down Expand Up @@ -228,6 +228,7 @@ def test_render_keeps_nothing_by_default():
assert parsed["authors"] == [{"name": "Microsoft Corporation", "email": "azpysdkhelp@microsoft.com"}]
assert parsed["description"] != "Microsoft Azure AI Sample Client Library for Python"
assert "Programming Language :: Python :: 3.99" not in parsed["classifiers"]
assert "Programming Language :: Python :: 3.15" in parsed["classifiers"]
assert parsed["urls"]["repository"] == "https://github.com/Azure/azure-sdk-for-python"


Expand Down
Loading