-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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). * Update `pyproject.toml` to support Python 3.13 and set higher package requirements * 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 * chore: Copilot added something it shouldn't had * fix(ci): Publish pipeline to 3.13 * fix: Python 3.13 changes to typing * chore: revert typing changes --------- Co-authored-by: Vincent Biret <vibiret@microsoft.com> Co-authored-by: Andrew Omondi <andrew.omondi@microsoft.com>
- Loading branch information
1 parent
471018e
commit b972a20
Showing
5 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"editor.formatOnSave": true | ||
"editor.formatOnSave": true, | ||
"python.testing.pytestArgs": [ | ||
"tests" | ||
], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters