From f3842aca421569923b11e77da04dc0ba95b9ff97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Thu, 21 Aug 2025 10:14:12 +0200 Subject: [PATCH 1/5] Kodi 21 still uses Python 3.8 on Windows --- .github/workflows/test.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 01122562..286dc16a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -18,6 +18,9 @@ jobs: matrix: py_version: ['3.9', '3.11', '3.12'] os: [ubuntu-latest, windows-latest] + include: + - py_version: '3.8.15' + os: windows-latest runs-on: ${{ matrix.os }} steps: From 9425d82b35bf846671d61f65cef73adfd469edec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Thu, 21 Aug 2025 10:15:16 +0200 Subject: [PATCH 2/5] Add Python 3.13 to test matrix --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 286dc16a..f2142a32 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - py_version: ['3.9', '3.11', '3.12'] + py_version: ['3.9', '3.11', '3.12', '3.13'] os: [ubuntu-latest, windows-latest] include: - py_version: '3.8.15' From f9b0f685f1f7248b96bbaa96a70fbcc7eec9b2fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Thu, 21 Aug 2025 10:18:49 +0200 Subject: [PATCH 3/5] The 3.8 version used by Kodi isn't provided precompiled for Windows by Python --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f2142a32..e09f8855 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,7 +19,7 @@ jobs: py_version: ['3.9', '3.11', '3.12', '3.13'] os: [ubuntu-latest, windows-latest] include: - - py_version: '3.8.15' + - py_version: '3.8' os: windows-latest runs-on: ${{ matrix.os }} From 4a9458f3a5176de2c2b2f6667b170d68bdaa5685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Thu, 21 Aug 2025 10:26:46 +0200 Subject: [PATCH 4/5] Rename requirements-dev.txt --- requirements-dev.txt => requirements-test.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename requirements-dev.txt => requirements-test.txt (100%) diff --git a/requirements-dev.txt b/requirements-test.txt similarity index 100% rename from requirements-dev.txt rename to requirements-test.txt From 5979afc65eaae79cc5aeb8c4b6e965338098afea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Thu, 21 Aug 2025 10:27:56 +0200 Subject: [PATCH 5/5] Separate test and dev dependencies --- .github/workflows/test.yaml | 2 +- requirements-dev.txt | 4 ++++ requirements-test.txt | 2 -- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 requirements-dev.txt diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e09f8855..2a44d5d9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -35,7 +35,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install -r requirements-dev.txt + python -m pip install -r requirements-test.txt - name: Lint with flake8 run: | diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 00000000..04bcd7b5 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,4 @@ +-r requirements-test.txt + +pre-commit >= 3.7.1 +black >= 24.4.2 diff --git a/requirements-test.txt b/requirements-test.txt index 5f37e165..a33d9b94 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -10,13 +10,11 @@ Kodistubs ~=21.0 git+https://github.com/ruuk/script.module.addon.signals -pre-commit >= 3.7.1 pytest >= 4.6.11 coverage >= 5.2 flake8 >= 3.8 flake8-import-order >= 0.18 websocket-client >= 1.6.4 -black >= 24.4.2 types-requests >= 2.31 types-PyYAML >= 6.0