Skip to content

Commit

Permalink
Merge pull request #1104 from svrooij/main
Browse files Browse the repository at this point in the history
feat: Python 3.13 support
  • Loading branch information
baywet authored Feb 6, 2025
2 parents 499783f + 7c3f458 commit fac3184
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 11 deletions.
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

0 comments on commit fac3184

Please sign in to comment.