diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..3a4d53e6 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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" +} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b32073d..e0c2f647 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d1df3135..b505c9fa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,10 +18,10 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: 3.12 + python-version: 3.13 - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.vscode/settings.json b/.vscode/settings.json index 23fd35f0..0df470aa 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,8 @@ { - "editor.formatOnSave": true + "editor.formatOnSave": true, + "python.testing.pytestArgs": [ + "tests" + ], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true } \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 20e19fd7..c467a1b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,9 +11,9 @@ version = "1.2.1" authors = [{name = "Microsoft", email = "graphtooling+python@microsoft.com"}] description = "Core component of the Microsoft Graph Python SDK" dependencies = [ - "microsoft-kiota-abstractions >=1.0.0,<2.0.0", - "microsoft-kiota-authentication-azure >=1.0.0,<2.0.0", - "microsoft-kiota-http >=1.0.0,<2.0.0", + "microsoft-kiota-abstractions >=1.8.0,<2.0.0", + "microsoft-kiota-authentication-azure >=1.8.0,<2.0.0", + "microsoft-kiota-http >=1.8.0,<2.0.0", "httpx[http2] >=0.23.0", ] requires-python = ">=3.9" @@ -26,6 +26,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", ]