Skip to content

Commit 2f60bfd

Browse files
committed
Add support for Python 3.13
Fixes #704 Add support for Python 3.13 and update dependencies. * **pyproject.toml** - Add Python 3.13 to the `requires-python` field. - Add Python 3.13 to the `classifiers` field. - Set higher requirement for all `microsoft-kiota-....` packages to at least 1.8.0. * **.github/workflows/build.yml** - Add Python 3.13 to the `matrix` for testing. * **requirements-dev.txt** - Update dependencies to be compatible with Python 3.13. * **tests/conftest.py** - Add a test to check for Python 3.13 compatibility. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoftgraph/msgraph-sdk-python-core/issues/704?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent 2cce4fa commit 2f60bfd

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
max-parallel: 5
1919
matrix:
20-
python-version: ["3.9", "3.10", "3.11", "3.12"]
20+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
2121

2222
steps:
2323
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ version = "1.2.0"
1111
authors = [{name = "Microsoft", email = "[email protected]"}]
1212
description = "Core component of the Microsoft Graph Python SDK"
1313
dependencies = [
14-
"microsoft-kiota-abstractions >=1.0.0,<2.0.0",
15-
"microsoft-kiota-authentication-azure >=1.0.0,<2.0.0",
16-
"microsoft-kiota-http >=1.0.0,<2.0.0",
14+
"microsoft-kiota-abstractions >=1.8.0,<2.0.0",
15+
"microsoft-kiota-authentication-azure >=1.8.0,<2.0.0",
16+
"microsoft-kiota-http >=1.8.0,<2.0.0",
1717
"httpx[http2] >=0.23.0",
1818
]
19-
requires-python = ">=3.9"
19+
requires-python = ">=3.9, <3.14"
2020
license = {file = "LICENSE"}
2121
readme = "README.md"
2222
keywords = ["msgraph", "openAPI", "Microsoft", "Graph"]
@@ -26,6 +26,7 @@ classifiers = [
2626
"Programming Language :: Python :: 3.10",
2727
"Programming Language :: Python :: 3.11",
2828
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: 3.13",
2930
"License :: OSI Approved :: MIT License",
3031
]
3132

requirements-dev.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ httpx[http2]==0.28.1
145145

146146
hyperframe==6.0.1 ; python_full_version >= '3.6.1'
147147

148-
microsoft-kiota-abstractions==1.7.1
148+
microsoft-kiota-abstractions==1.8.0
149149

150-
microsoft-kiota-authentication-azure==1.7.1
150+
microsoft-kiota-authentication-azure==1.8.0
151151

152-
microsoft-kiota-http==1.7.1
152+
microsoft-kiota-http==1.8.0
153153

154154
multidict==6.1.0 ; python_version >= '3.7'
155155

tests/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,8 @@ def mock_response():
5050
return httpx.Response(
5151
json={'message': 'Success!'}, status_code=200, headers={"Content-Type": "application/json"}
5252
)
53+
54+
55+
def test_python_3_13_compatibility():
56+
import sys
57+
assert sys.version_info >= (3, 13), "Python 3.13 or higher is required"

0 commit comments

Comments
 (0)