Skip to content

Commit 9d3a8c8

Browse files
feat: drop Python 3.9 and add Python 3.14 support across packaging, CI, and docs (#1481)
* Initial plan * feat: drop Python 3.9 support metadata and CI matrix Agent-Logs-Url: https://github.com/microsoftgraph/msgraph-sdk-python/sessions/b149b291-3ae9-47a9-9cdd-311077bdd577 Co-authored-by: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> * feat: add Python 3.14 support in metadata and workflows Agent-Logs-Url: https://github.com/microsoftgraph/msgraph-sdk-python/sessions/f0db838f-31e8-4ad7-b9ba-e9f18571910d Co-authored-by: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> * chore: set devcontainer python image to 3.14 Agent-Logs-Url: https://github.com/microsoftgraph/msgraph-sdk-python/sessions/9d2334e8-1034-4309-925b-95d702a548bb Co-authored-by: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com>
1 parent c8fd694 commit 9d3a8c8

5 files changed

Lines changed: 7 additions & 8 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
{
44
"name": "Python 3",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
// "image": "mcr.microsoft.com/devcontainers/python:3.9-bookworm",
76
// "image": "mcr.microsoft.com/devcontainers/python:3.10-bookworm",
87
// "image": "mcr.microsoft.com/devcontainers/python:3.11-bookworm",
98
// "image": "mcr.microsoft.com/devcontainers/python:3.12-bookworm",
109
// "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
11-
//"image": "mcr.microsoft.com/devcontainers/python:3.13-bookworm",
12-
"image": "mcr.microsoft.com/devcontainers/python:3.13-bullseye",
10+
//"image": "mcr.microsoft.com/devcontainers/python:3.14-bookworm",
11+
"image": "mcr.microsoft.com/devcontainers/python:3.14-bullseye",
1312

1413
"features": {
1514
"ghcr.io/hspaans/devcontainer-features/pytest:1": {},

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
max-parallel: 5
1717
matrix:
18-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
18+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1919
steps:
2020
- uses: actions/checkout@v6
2121
- name: Set up Python ${{ matrix.python-version }}
@@ -42,4 +42,3 @@ jobs:
4242
- name: One or more build matrix options failed
4343
if: ${{ contains(needs.*.result, 'failure') }}
4444
run: exit 1
45-

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Python
2222
uses: actions/setup-python@v6
2323
with:
24-
python-version: 3.13
24+
python-version: 3.14
2525
- name: Install flit
2626
run: |
2727
pip install flit

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pip install msgraph-sdk
1919

2020
> **Note:**
2121
>
22+
> * This library supports Python 3.10+.
2223
> * The Microsoft Graph SDK for Python is a fairly large package. It may take a few minutes for the initial installation to complete.
2324
> * Enable long paths in your environment if you receive a `Could not install packages due to an OSError`. For details, see [Enable Long Paths in Windows 10, Version 1607, and Later](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=powershell#enable-long-paths-in-windows-10-version-1607-and-later).
2425

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ dependencies = [
1919
"msgraph_core >=1.3.1"
2020

2121
]
22-
requires-python = ">=3.9"
22+
requires-python = ">=3.10"
2323
license = "MIT"
2424
license-files = ["LICENSE"]
2525
readme = "README.md"
2626
keywords = ["msgraph", "openAPI", "Microsoft", "Graph"]
2727
classifiers = [
2828
"Development Status :: 5 - Production/Stable",
29-
"Programming Language :: Python :: 3.9",
3029
"Programming Language :: Python :: 3.10",
3130
"Programming Language :: Python :: 3.11",
3231
"Programming Language :: Python :: 3.12",
3332
"Programming Language :: Python :: 3.13",
33+
"Programming Language :: Python :: 3.14",
3434
]
3535

3636
[project.optional-dependencies]

0 commit comments

Comments
 (0)