From 465558f2e09645794f3b963616440929cbf4d8b5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 28 Jul 2025 05:36:37 +0000 Subject: [PATCH 1/4] Initial plan From e59a0a98a76c0c0d8f13db0300121332d5b5c855 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 28 Jul 2025 05:44:35 +0000 Subject: [PATCH 2/4] Update Python 3.12 to 3.13 and upgrade azure dependencies Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- eng/pipelines/ci.yml | 18 +++++++++--------- .../test/azure/legacy/requirements.txt | 2 +- .../autorest.python/test/azure/legacy/tox.ini | 2 +- .../azure/version-tolerant/requirements.txt | 2 +- .../test/azure/version-tolerant/tox.ini | 2 +- .../test/dpg/version-tolerant/requirements.txt | 2 +- .../test/dpg/version-tolerant/tox.ini | 2 +- .../test/multiapi/requirements.txt | 2 +- packages/autorest.python/test/multiapi/tox.ini | 2 +- .../test/unittests/requirements.txt | 2 +- .../autorest.python/test/unittests/tox.ini | 2 +- .../test/vanilla/legacy/requirements.txt | 2 +- .../test/vanilla/legacy/tox.ini | 2 +- .../vanilla/version-tolerant/requirements.txt | 2 +- .../test/vanilla/version-tolerant/tox.ini | 2 +- .../test/azure/requirements.txt | 2 +- packages/typespec-python/test/azure/tox.ini | 2 +- .../typespec-python/test/unbranded/tox.ini | 2 +- 18 files changed, 26 insertions(+), 26 deletions(-) diff --git a/eng/pipelines/ci.yml b/eng/pipelines/ci.yml index 18509b2181e..fbdae75685f 100644 --- a/eng/pipelines/ci.yml +++ b/eng/pipelines/ci.yml @@ -20,7 +20,7 @@ resources: variables: - template: /eng/pipelines/templates/variables/image.yml - name: PythonVersion - value: "3.12" + value: "3.13" - name: AUTOREST_TESTSERVER_COVERAGE_DIRECTORY value: "$(Build.SourcesDirectory)/autorest.python/packages/autorest.python/coverage/" - name: PROXY_URL @@ -69,16 +69,16 @@ jobs: Pool: ${{ variables.LINUXPOOL }} OSVmImage: ${{ variables.LINUXVMIMAGE}} PythonVersion: "3.11" - Linux_Python3.12: + Linux_Python3.13: OSName: "Linux" Pool: ${{ variables.LINUXPOOL }} OSVmImage: ${{ variables.LINUXVMIMAGE}} - PythonVersion: "3.12" - Windows_Python3.12: + PythonVersion: "3.13" + Windows_Python3.13: OSName: "Windows" Pool: ${{ variables.WINDOWSPOOL }} OSVmImage: ${{ variables.WINDOWSVMIMAGE}} - PythonVersion: "3.12" + PythonVersion: "3.13" pool: name: $(Pool) @@ -168,16 +168,16 @@ jobs: Pool: ${{ variables.LINUXPOOL }} OSVmImage: ${{ variables.LINUXVMIMAGE}} PythonVersion: "3.11" - Linux_Python312: + Linux_Python313: OSName: "Linux" Pool: ${{ variables.LINUXPOOL }} OSVmImage: ${{ variables.LINUXVMIMAGE}} - PythonVersion: "3.12" - Windows_Python312: + PythonVersion: "3.13" + Windows_Python313: OSName: "Windows" Pool: ${{ variables.WINDOWSPOOL }} OSVmImage: ${{ variables.WINDOWSVMIMAGE}} - PythonVersion: "3.12" + PythonVersion: "3.13" pool: name: $(Pool) diff --git a/packages/autorest.python/test/azure/legacy/requirements.txt b/packages/autorest.python/test/azure/legacy/requirements.txt index 72f8a1f0af6..a924f6cec38 100644 --- a/packages/autorest.python/test/azure/legacy/requirements.txt +++ b/packages/autorest.python/test/azure/legacy/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -azure-mgmt-core==1.5.0 +azure-mgmt-core==1.6.0 msrest==0.7.1 -e ./Expected/AcceptanceTests/AzureBodyDuration -e ./Expected/AcceptanceTests/AzureParameterGrouping diff --git a/packages/autorest.python/test/azure/legacy/tox.ini b/packages/autorest.python/test/azure/legacy/tox.ini index bb387be9998..50c43975aef 100644 --- a/packages/autorest.python/test/azure/legacy/tox.ini +++ b/packages/autorest.python/test/azure/legacy/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py38, py310, py311, py312 +envlist=py38, py310, py311, py313 skipsdist=True [testenv] diff --git a/packages/autorest.python/test/azure/version-tolerant/requirements.txt b/packages/autorest.python/test/azure/version-tolerant/requirements.txt index 2b4be0a1847..c7138680868 100644 --- a/packages/autorest.python/test/azure/version-tolerant/requirements.txt +++ b/packages/autorest.python/test/azure/version-tolerant/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -azure-mgmt-core==1.5.0 +azure-mgmt-core==1.6.0 -e ./Expected/AcceptanceTests/AzureBodyDurationVersionTolerant -e ./Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant -e ./Expected/AcceptanceTests/AzureReportVersionTolerant diff --git a/packages/autorest.python/test/azure/version-tolerant/tox.ini b/packages/autorest.python/test/azure/version-tolerant/tox.ini index 40cbebeac6c..f8bfba6009c 100644 --- a/packages/autorest.python/test/azure/version-tolerant/tox.ini +++ b/packages/autorest.python/test/azure/version-tolerant/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py38, py310, py311, py312 +envlist=py38, py310, py311, py313 skipsdist=True [testenv] diff --git a/packages/autorest.python/test/dpg/version-tolerant/requirements.txt b/packages/autorest.python/test/dpg/version-tolerant/requirements.txt index f571472ccb9..9e89b164aa2 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/requirements.txt +++ b/packages/autorest.python/test/dpg/version-tolerant/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -azure-core==1.30.0 +azure-core==1.35.0 -e ./Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/ -e ./Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/ -e ./Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/ diff --git a/packages/autorest.python/test/dpg/version-tolerant/tox.ini b/packages/autorest.python/test/dpg/version-tolerant/tox.ini index 7b4268a5426..9db3f9e8d28 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/tox.ini +++ b/packages/autorest.python/test/dpg/version-tolerant/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py38, py310, py311, py312 +envlist=py38, py310, py311, py313 skipsdist=True [testenv] diff --git a/packages/autorest.python/test/multiapi/requirements.txt b/packages/autorest.python/test/multiapi/requirements.txt index 206ba37fb44..c8b51ce8829 100644 --- a/packages/autorest.python/test/multiapi/requirements.txt +++ b/packages/autorest.python/test/multiapi/requirements.txt @@ -1,7 +1,7 @@ aiohttp; python_full_version >= '3.5.2' azure-common msrest==0.7.1 -azure-mgmt-core==1.5.0 +azure-mgmt-core==1.6.0 pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" diff --git a/packages/autorest.python/test/multiapi/tox.ini b/packages/autorest.python/test/multiapi/tox.ini index 8b188547ab8..9ec70332c8d 100644 --- a/packages/autorest.python/test/multiapi/tox.ini +++ b/packages/autorest.python/test/multiapi/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py38, py310, py311, py312 +envlist=py38, py310, py311, py313 skipsdist=True [testenv] diff --git a/packages/autorest.python/test/unittests/requirements.txt b/packages/autorest.python/test/unittests/requirements.txt index cd7d3c0eeae..9ebb4f34d6f 100644 --- a/packages/autorest.python/test/unittests/requirements.txt +++ b/packages/autorest.python/test/unittests/requirements.txt @@ -2,7 +2,7 @@ isodate>=0.6.1 requests==2.28.2 pytest pytest-cov -azure-mgmt-core==1.5.0 +azure-mgmt-core==1.6.0 -e ../../. -e ../../generator -e ../../samples/specification/azure-mgmt-test/test/azure-mgmt-test diff --git a/packages/autorest.python/test/unittests/tox.ini b/packages/autorest.python/test/unittests/tox.ini index 859a7dece30..e6591d6cc85 100644 --- a/packages/autorest.python/test/unittests/tox.ini +++ b/packages/autorest.python/test/unittests/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py38, py310, py311, py312 +envlist=py38, py310, py311, py313 skipsdist=True [testenv:ci] diff --git a/packages/autorest.python/test/vanilla/legacy/requirements.txt b/packages/autorest.python/test/vanilla/legacy/requirements.txt index d48b432636a..73c3ea26388 100644 --- a/packages/autorest.python/test/vanilla/legacy/requirements.txt +++ b/packages/autorest.python/test/vanilla/legacy/requirements.txt @@ -6,7 +6,7 @@ pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" isodate==0.6.1 msrest==0.7.1 -azure-core==1.30.0 +azure-core==1.35.0 -e ./Expected/AcceptanceTests/AdditionalProperties -e ./Expected/AcceptanceTests/Anything -e ./Expected/AcceptanceTests/BodyArray diff --git a/packages/autorest.python/test/vanilla/legacy/tox.ini b/packages/autorest.python/test/vanilla/legacy/tox.ini index 42c52381b87..6b7c1cb60f1 100644 --- a/packages/autorest.python/test/vanilla/legacy/tox.ini +++ b/packages/autorest.python/test/vanilla/legacy/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py38, py310, py311, py312 +envlist=py38, py310, py311, py313 skipsdist=True [testenv] diff --git a/packages/autorest.python/test/vanilla/version-tolerant/requirements.txt b/packages/autorest.python/test/vanilla/version-tolerant/requirements.txt index de1ba258a95..dba7f03c1e1 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/requirements.txt +++ b/packages/autorest.python/test/vanilla/version-tolerant/requirements.txt @@ -5,7 +5,7 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" isodate==0.6.1 -azure-core==1.30.0 +azure-core==1.35.0 -e ./Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant -e ./Expected/AcceptanceTests/AnythingVersionTolerant -e ./Expected/AcceptanceTests/BodyArrayVersionTolerant diff --git a/packages/autorest.python/test/vanilla/version-tolerant/tox.ini b/packages/autorest.python/test/vanilla/version-tolerant/tox.ini index 39601b040e9..b63a2b40ffc 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/tox.ini +++ b/packages/autorest.python/test/vanilla/version-tolerant/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py38, py310, py311, py312 +envlist=py38, py310, py311, py313 skipsdist=True [testenv] diff --git a/packages/typespec-python/test/azure/requirements.txt b/packages/typespec-python/test/azure/requirements.txt index 0f2d04e1dce..cc49510dac9 100644 --- a/packages/typespec-python/test/azure/requirements.txt +++ b/packages/typespec-python/test/azure/requirements.txt @@ -2,7 +2,7 @@ aiohttp;python_full_version>="3.5.2" requests==2.32.4 pytest pytest-asyncio==0.14.0;python_full_version>="3.5.2" -azure-mgmt-core==1.5.0 +azure-mgmt-core==1.6.0 # only for azure -e ./generated/azure-client-generator-core-access -e ./generated/azure-client-generator-core-client-initialization diff --git a/packages/typespec-python/test/azure/tox.ini b/packages/typespec-python/test/azure/tox.ini index 39fa29c1e38..3239ed1833e 100644 --- a/packages/typespec-python/test/azure/tox.ini +++ b/packages/typespec-python/test/azure/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py38, py310, py311, py312 +envlist=py38, py310, py311, py313 skipsdist=True [testenv] diff --git a/packages/typespec-python/test/unbranded/tox.ini b/packages/typespec-python/test/unbranded/tox.ini index 8d78747bfcf..c2fafbda366 100644 --- a/packages/typespec-python/test/unbranded/tox.ini +++ b/packages/typespec-python/test/unbranded/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py38, py310, py311, py312 +envlist=py38, py310, py311, py313 skipsdist=True [testenv] From bffea1abe572cbcda908af67a153944f8a112761 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 28 Jul 2025 05:47:29 +0000 Subject: [PATCH 3/4] Add Python 3.13 support to setup.py files Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- packages/autorest.python/setup.py | 1 + .../specification/packagemodecustomize/template/setup.py.jinja2 | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/autorest.python/setup.py b/packages/autorest.python/setup.py index 1a508b48cc8..45527034857 100644 --- a/packages/autorest.python/setup.py +++ b/packages/autorest.python/setup.py @@ -38,6 +38,7 @@ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "License :: OSI Approved :: MIT License", ], packages=find_packages( diff --git a/packages/autorest.python/test/azure/legacy/specification/packagemodecustomize/template/setup.py.jinja2 b/packages/autorest.python/test/azure/legacy/specification/packagemodecustomize/template/setup.py.jinja2 index 7cdfdfcf301..88b7d90d442 100644 --- a/packages/autorest.python/test/azure/legacy/specification/packagemodecustomize/template/setup.py.jinja2 +++ b/packages/autorest.python/test/azure/legacy/specification/packagemodecustomize/template/setup.py.jinja2 @@ -52,6 +52,7 @@ setup( "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "License :: OSI Approved :: MIT License", ], zip_safe=False, From 2b25cfc93b89de2cacbb95f9776c6c3cf7ce6db8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 28 Jul 2025 07:02:41 +0000 Subject: [PATCH 4/4] Add changelog entry for Python 3.13 support Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- .chronus/changes/copilot-fix-3144-2025-6-28-7-2-10.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .chronus/changes/copilot-fix-3144-2025-6-28-7-2-10.md diff --git a/.chronus/changes/copilot-fix-3144-2025-6-28-7-2-10.md b/.chronus/changes/copilot-fix-3144-2025-6-28-7-2-10.md new file mode 100644 index 00000000000..c7ebd85403e --- /dev/null +++ b/.chronus/changes/copilot-fix-3144-2025-6-28-7-2-10.md @@ -0,0 +1,8 @@ +--- +changeKind: internal +packages: + - "@autorest/python" + - "@azure-tools/typespec-python" +--- + +Support python 3.13 \ No newline at end of file