From fe4193c553695bcf75893105074cedca3a56572d Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 6 Jan 2025 09:16:53 +0100 Subject: [PATCH] Update default Python version to 3.13 --- .github/workflows/release.yml | 2 +- .github/workflows/tests.yml | 18 ++++++++++-------- .readthedocs.yml | 2 +- noxfile.py | 8 ++++---- pyproject.toml | 1 + 5 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f8eb2fa0..6bca8a2d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Upgrade pip run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 45e5705a..cf00b845 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,23 +18,25 @@ jobs: fail-fast: false matrix: include: - - { python-version: "3.11", os: ubuntu-latest, session: "pre-commit" } - - { python-version: "3.12", os: ubuntu-latest, session: "safety" } + - { python-version: "3.13", os: ubuntu-latest, session: "pre-commit" } + - { python-version: "3.13", os: ubuntu-latest, session: "safety" } + - { python-version: "3.13", os: ubuntu-latest, session: "mypy" } - { python-version: "3.12", os: ubuntu-latest, session: "mypy" } - { python-version: "3.11", os: ubuntu-latest, session: "mypy" } - { python-version: "3.10", os: ubuntu-latest, session: "mypy" } - { python-version: "3.9", os: ubuntu-latest, session: "mypy" } - { python-version: "3.8", os: ubuntu-latest, session: "mypy" } + - { python-version: "3.13", os: ubuntu-latest, session: "tests" } - { python-version: "3.12", os: ubuntu-latest, session: "tests" } - { python-version: "3.11", os: ubuntu-latest, session: "tests" } - { python-version: "3.10", os: ubuntu-latest, session: "tests" } - { python-version: "3.9", os: ubuntu-latest, session: "tests" } - { python-version: "3.8", os: ubuntu-latest, session: "tests" } - - { python-version: "3.12", os: windows-latest, session: "tests" } - - { python-version: "3.12", os: macos-latest, session: "tests" } - - { python-version: "3.12", os: ubuntu-latest, session: "typeguard" } - - { python-version: "3.12", os: ubuntu-latest, session: "xdoctest" } - - { python-version: "3.12", os: ubuntu-latest, session: "docs-build" } + - { python-version: "3.13", os: windows-latest, session: "tests" } + - { python-version: "3.13", os: macos-latest, session: "tests" } + - { python-version: "3.13", os: ubuntu-latest, session: "typeguard" } + - { python-version: "3.13", os: ubuntu-latest, session: "xdoctest" } + - { python-version: "3.13", os: ubuntu-latest, session: "docs-build" } env: NOXSESSION: ${{ matrix.session }} @@ -116,7 +118,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Upgrade pip run: | diff --git a/.readthedocs.yml b/.readthedocs.yml index a0d76654..4ef52919 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -3,7 +3,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.12" + python: "3.13" sphinx: configuration: docs/conf.py diff --git a/noxfile.py b/noxfile.py index 131c97cb..2d082d5f 100644 --- a/noxfile.py +++ b/noxfile.py @@ -21,7 +21,7 @@ package = "renault_api" -python_versions = ["3.12", "3.11", "3.10", "3.9", "3.8"] +python_versions = ["3.13", "3.12", "3.11", "3.10", "3.9", "3.8"] nox.needs_version = ">= 2021.6.6" nox.options.sessions = ( "pre-commit", @@ -97,7 +97,7 @@ def precommit(session: Session) -> None: activate_virtualenv_in_precommit_hooks(session) -@session(python="3.12") +@session(python="3.13") def safety(session: Session) -> None: """Scan dependencies for insecure packages.""" requirements = session.poetry.export_requirements() @@ -180,7 +180,7 @@ def xdoctest(session: Session) -> None: session.run("python", "-m", "xdoctest", package, *args) -@session(name="docs-build", python="3.12") +@session(name="docs-build", python="3.13") def docs_build(session: Session) -> None: """Build the documentation.""" args = session.posargs or ["docs", "docs/_build"] @@ -194,7 +194,7 @@ def docs_build(session: Session) -> None: session.run("sphinx-build", *args) -@session(python="3.12") +@session(python="3.13") def docs(session: Session) -> None: """Build and serve the documentation with live reloading on file changes.""" args = session.posargs or ["--open-browser", "docs", "docs/_build"] diff --git a/pyproject.toml b/pyproject.toml index 508d98b1..20112b3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ] [tool.poetry.urls]