From 57f2149a32ffec1cacbd2f6aa6b0ea9642256977 Mon Sep 17 00:00:00 2001 From: Andrew Sayre <6730289+andrewsayre@users.noreply.github.com> Date: Sun, 5 Jan 2025 06:48:31 +0000 Subject: [PATCH] Add python 3.13 and update deps --- .devcontainer/devcontainer.json | 2 +- .github/workflows/ci.yaml | 9 ++++----- .github/workflows/publish.yaml | 2 +- pyproject.toml | 5 +++-- test-requirements.txt | 10 +++++----- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0db38b9..de8e966 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ { "name": "pyheos Dev", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye", + "image": "mcr.microsoft.com/devcontainers/python:1-3.13-bullseye", "postCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} | script/setup", "containerEnv": { "PYTHONASYNCIODEBUG": "1", diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 46c1649..aa50058 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,7 +16,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - uses: actions/cache@v4 with: path: ${{ env.pythonLocation }} @@ -42,7 +42,7 @@ jobs: needs: lint strategy: matrix: - python-version: ["3.11", "3.12"] + python-version: ["3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - name: Set up Python @@ -69,7 +69,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - uses: actions/cache@v4 with: path: ${{ env.pythonLocation }} @@ -81,7 +81,6 @@ jobs: - name: Run pytest on ${{ matrix.python-version }} run: pytest --cov --cov-report=xml - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4.0.1 + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} - fail_ci_if_error: true diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d4db4c5..61cea68 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -14,7 +14,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - uses: actions/cache@v4 with: path: ${{ env.pythonLocation }} diff --git a/pyproject.toml b/pyproject.toml index 01fc613..094a739 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,6 +20,7 @@ classifiers = [ "Topic :: Home Automation", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ] [project.urls] @@ -37,7 +38,7 @@ exclude = ["tests", "tests.*"] required-version = ">=0.8.0" [tool.pylint.MAIN] -py-version = "3.12" +py-version = "3.13" jobs = 2 load-plugins = [ "pylint.extensions.code_style", @@ -54,7 +55,7 @@ warn_required_dynamic_aliases = true warn_untyped_fields = true [tool.mypy] -python_version = "3.12" +python_version = "3.13" platform = "linux" plugins = ["pydantic.mypy", "pydantic.v1.mypy"] show_error_codes = true diff --git a/test-requirements.txt b/test-requirements.txt index bb02fbd..a893afe 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,11 +1,11 @@ codespell==2.3.0 coveralls==4.0.1 -mypy-dev==1.14.0a6 -pydantic==2.10.3 -pylint==3.3.2 +mypy-dev==1.15.0a1 +pydantic==2.10.4 +pylint==3.3.3 pylint-per-file-ignores==1.3.2 pytest==8.3.4 -pytest-asyncio==0.24.0 +pytest-asyncio==0.25.1 pytest-cov==6.0.0 pytest-timeout==2.3.1 -ruff==0.8.2 \ No newline at end of file +ruff==0.8.6 \ No newline at end of file