Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Python 3.13 support #1104

Merged
merged 3 commits into from
Feb 6, 2025
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
38 changes: 38 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
// "image": "mcr.microsoft.com/devcontainers/python:3.9-bookworm",
// "image": "mcr.microsoft.com/devcontainers/python:3.10-bookworm",
// "image": "mcr.microsoft.com/devcontainers/python:3.11-bookworm",
// "image": "mcr.microsoft.com/devcontainers/python:3.12-bookworm",
// "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
//"image": "mcr.microsoft.com/devcontainers/python:3.13-bookworm",
"image": "mcr.microsoft.com/devcontainers/python:3.13-bullseye",

"features": {
"ghcr.io/hspaans/devcontainer-features/pytest:1": {},
//"ghcr.io/devcontainers-extra/features/pylint:2": {},
//"ghcr.io/devcontainers-extra/features/poetry:2": {}
},

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "git config --global core.autocrlf true && pip3 install --user -r requirements-dev.txt",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": ["ms-python.python"]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
max-parallel: 5
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
python-version: 3.13
- name: Install flit
run: |
pip install flit
Expand Down
14 changes: 6 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@ authors = [{name = "Microsoft", email = "[email protected]"}]
description = "The Microsoft Graph Python SDK"
dependencies = [
"azure-identity >=1.12.0",
"microsoft-kiota-abstractions >=1.3.0,<2.0.0",
"microsoft-kiota-authentication-azure >=1.0.0,<2.0.0",
"microsoft-kiota-serialization-json >=1.3.0,<2.0.0",
"microsoft-kiota-serialization-text >=1.0.0,<2.0.0",
"microsoft-kiota-serialization-form >=0.1.0",
"microsoft-kiota-serialization-multipart >=0.1.0",
"microsoft-kiota-http >=1.0.0,<2.0.0",
"msgraph_core >=1.0.0"
"microsoft-kiota-serialization-json >=1.8.0,<2.0.0",
"microsoft-kiota-serialization-text >=1.8.0,<2.0.0",
"microsoft-kiota-serialization-form >=1.8.0,<2.0.0",
"microsoft-kiota-serialization-multipart >=1.8.0,<2.0.0",
"msgraph_core >=1.3.1"

]
requires-python = ">=3.9"
Expand All @@ -32,6 +29,7 @@ classifiers = [
"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",
]

Expand Down
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ opentelemetry-sdk==1.30.0
opentelemetry-semantic-conventions==0.51b0
packaging==24.2
pathlib2==2.3.7.post1
pendulum==3.0.0
platformdirs==4.3.6
portalocker==2.10.1
pycparser==2.22
Expand Down