From 161c777ddf28e039abcddf669d5c5622f59a1c5d Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Tue, 7 Oct 2025 18:34:13 +0200 Subject: [PATCH 1/4] Start py314 compat --- .github/workflows/merge.yml | 2 +- .github/workflows/verify.yml | 2 +- .pre-commit-config.yaml | 2 +- pyproject.toml | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index c643079..9bb1532 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -2,7 +2,7 @@ name: Latest release env: CACHE_VERSION: 1 - DEFAULT_PYTHON: "3.13" + DEFAULT_PYTHON: "3.14" on: pull_request: diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 52a7b4a..8cc39ce 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -2,7 +2,7 @@ name: Latest commit env: CACHE_VERSION: 1 - DEFAULT_PYTHON: "3.13" + DEFAULT_PYTHON: "3.14" PRE_COMMIT_HOME: ~/.cache/pre-commit VENV: venv diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f5f36c..a5cf3ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ default_language_version: # force all unspecified python hooks to run python3 - python: python3.13 + python: python3.14 repos: # Run manually in CI skipping the branch checks diff --git a/pyproject.toml b/pyproject.toml index f8a98ed..315090c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,7 @@ classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Operating System :: OS Independent", + "Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3.13", "Topic :: Home Automation", ] @@ -39,7 +40,7 @@ include-package-data = true include = ["airos*"] [tool.pylint.MAIN] -py-version = "3.13" +py-version = "3.14" # Use a conservative default here; 2 should speed up most setups and not hurt # any too bad. Override on command line as appropriate. jobs = 2 From e033ebd7d8f705ede041751f19fba1437994abf6 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Tue, 7 Oct 2025 18:44:09 +0200 Subject: [PATCH 2/4] Adjust actions --- .github/workflows/verify.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 8cc39ce..0cece81 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -33,6 +33,9 @@ jobs: with: persist-credentials: false - name: Prepare python + uses: actions/setup-python@v6 + with: + python-version: ${DEFAULT_PYTHON} run: | pip install uv uv venv --seed venv @@ -63,6 +66,9 @@ jobs: - name: Check out committed code uses: actions/checkout@v5 - name: Prepare python + uses: actions/setup-python@v6 + with: + python-version: ${DEFAULT_PYTHON} run: | pip install uv uv venv --seed venv @@ -83,11 +89,14 @@ jobs: - commitcheck strategy: matrix: - python-version: ["3.13"] + python-version: ["3.13", "3.14"] steps: - name: Check out committed code uses: actions/checkout@v5 - name: Prepare python + uses: actions/setup-python@v6 + with: + python-version: ${{matrix.python-version}} run: | pip install uv uv venv --seed venv @@ -139,6 +148,9 @@ jobs: - name: Check out committed code uses: actions/checkout@v5 - name: Prepare python + uses: actions/setup-python@v6 + with: + python-version: ${DEFAULT_PYTHON} run: | pip install uv uv venv --seed venv @@ -175,6 +187,9 @@ jobs: - name: Check out committed code uses: actions/checkout@v5 - name: Prepare python + uses: actions/setup-python@v6 + with: + python-version: ${DEFAULT_PYTHON} run: | pip install uv uv venv --seed venv @@ -216,6 +231,9 @@ jobs: - name: Check out committed code uses: actions/checkout@v5 - name: Prepare python + uses: actions/setup-python@v6 + with: + python-version: ${DEFAULT_PYTHON} run: | pip install uv uv venv --seed venv From d7f713ea3c5d56b6acdedf565acb077cbfbc5d6e Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Tue, 7 Oct 2025 18:47:46 +0200 Subject: [PATCH 3/4] Adjust actions --- .github/workflows/verify.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 0cece81..fa20529 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -32,10 +32,11 @@ jobs: uses: actions/checkout@v5 with: persist-credentials: false - - name: Prepare python + - name: Use python uses: actions/setup-python@v6 with: python-version: ${DEFAULT_PYTHON} + - name: Prepare python run: | pip install uv uv venv --seed venv @@ -65,10 +66,11 @@ jobs: steps: - name: Check out committed code uses: actions/checkout@v5 - - name: Prepare python + - name: Use python uses: actions/setup-python@v6 with: python-version: ${DEFAULT_PYTHON} + - name: Prepare python run: | pip install uv uv venv --seed venv @@ -93,10 +95,11 @@ jobs: steps: - name: Check out committed code uses: actions/checkout@v5 - - name: Prepare python + - name: Use python ${{matrix.python-version}} uses: actions/setup-python@v6 with: python-version: ${{matrix.python-version}} + - name: Prepare python run: | pip install uv uv venv --seed venv @@ -125,6 +128,10 @@ jobs: uses: actions/checkout@v5 with: persist-credentials: false + - name: Use python + uses: actions/setup-python@v6 + with: + python-version: ${DEFAULT_PYTHON} - name: Prepare python run: | pip install uv @@ -147,10 +154,11 @@ jobs: steps: - name: Check out committed code uses: actions/checkout@v5 - - name: Prepare python + - name: Use python uses: actions/setup-python@v6 with: python-version: ${DEFAULT_PYTHON} + - name: Prepare python run: | pip install uv uv venv --seed venv @@ -186,10 +194,11 @@ jobs: steps: - name: Check out committed code uses: actions/checkout@v5 - - name: Prepare python + - name: Use python uses: actions/setup-python@v6 with: python-version: ${DEFAULT_PYTHON} + - name: Prepare python run: | pip install uv uv venv --seed venv @@ -230,10 +239,11 @@ jobs: steps: - name: Check out committed code uses: actions/checkout@v5 - - name: Prepare python + - name: Use python uses: actions/setup-python@v6 with: python-version: ${DEFAULT_PYTHON} + - name: Prepare python run: | pip install uv uv venv --seed venv From a6dee863645f1abb41defa52c8d6321f83fdb371 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Tue, 7 Oct 2025 18:50:09 +0200 Subject: [PATCH 4/4] Adjust actions --- .github/workflows/verify.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index fa20529..7c48192 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -35,7 +35,7 @@ jobs: - name: Use python uses: actions/setup-python@v6 with: - python-version: ${DEFAULT_PYTHON} + python-version: ${{ env.DEFAULT_PYTHON }} - name: Prepare python run: | pip install uv @@ -69,7 +69,7 @@ jobs: - name: Use python uses: actions/setup-python@v6 with: - python-version: ${DEFAULT_PYTHON} + python-version: ${{ env.DEFAULT_PYTHON }} - name: Prepare python run: | pip install uv @@ -131,7 +131,7 @@ jobs: - name: Use python uses: actions/setup-python@v6 with: - python-version: ${DEFAULT_PYTHON} + python-version: ${{ env.DEFAULT_PYTHON }} - name: Prepare python run: | pip install uv @@ -157,7 +157,7 @@ jobs: - name: Use python uses: actions/setup-python@v6 with: - python-version: ${DEFAULT_PYTHON} + python-version: ${{ env.DEFAULT_PYTHON }} - name: Prepare python run: | pip install uv @@ -197,7 +197,7 @@ jobs: - name: Use python uses: actions/setup-python@v6 with: - python-version: ${DEFAULT_PYTHON} + python-version: ${{ env.DEFAULT_PYTHON }} - name: Prepare python run: | pip install uv @@ -242,7 +242,7 @@ jobs: - name: Use python uses: actions/setup-python@v6 with: - python-version: ${DEFAULT_PYTHON} + python-version: ${{ env.DEFAULT_PYTHON }} - name: Prepare python run: | pip install uv