From a8ea72d414621a13ff7705330bd731ffe94eeef8 Mon Sep 17 00:00:00 2001 From: Johannes Wienke Date: Sun, 12 Jan 2025 23:03:43 +0100 Subject: [PATCH] feat: official Python 3.13 support Things worked before. However, now the project is tested on 3.13, too. --- .github/workflows/ci.yml | 8 ++++---- tox.ini | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01d77e1d..a979f607 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Install native dependencies run: sudo apt-get update && sudo apt-get -y install libdbus-1-dev libgirepository1.0-dev libcairo2-dev - name: Cache Python packages @@ -49,10 +49,10 @@ jobs: steps: - name: Clone repo uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Install native dependencies run: sudo apt-get update && sudo apt-get -y install libdbus-1-dev libgirepository1.0-dev plantuml libcairo2-dev - name: Cache Python packages @@ -95,7 +95,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - name: Clone repo diff --git a/tox.ini b/tox.ini index 40efdbf2..65e08923 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = coverage-clean,test-py310-psutil59-dateutil28-tzlocal2, test-py{310,311,312}-psutillatest-dateutillatest-tzlocal{4,latest}, integration-py{310,311,312}, mindeps, check, docs, coverage +envlist = coverage-clean,test-py310-psutil59-dateutil28-tzlocal2, test-py{310,311,312,313}-psutillatest-dateutillatest-tzlocal{4,latest}, integration-py{310,311,312,313}, mindeps, check, docs, coverage [testenv] extras = test @@ -28,7 +28,7 @@ commands = coverage erase depends = [testenv:coverage] -depends = test-py310-psutil{59,latest}-dateutil{28,latest}, test-py{310,311,312}-psutillatest-dateutillatest, integration-py{310,311,312} +depends = test-py310-psutil{59,latest}-dateutil{28,latest}, test-py{310,311,312,313}-psutillatest-dateutillatest, integration-py{310,311,312,313} deps = coverage skip_install = true @@ -60,7 +60,7 @@ commands = {envbindir}/mypy src tests [testenv:docs] -basepython = python3.12 +basepython = python3.13 depends = deps = -rrequirements-doc.txt commands = {envbindir}/sphinx-build -W -b html -d {envtmpdir}/doctrees doc/source {envtmpdir}/html @@ -70,3 +70,4 @@ python = 3.10: py310, coverage 3.11: py311, coverage 3.12: py312, coverage + 3.13: py313, coverage