From cfb9fadec854b37a598777f9980fb699a603e35d Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Wed, 20 Nov 2024 00:41:56 -0800 Subject: [PATCH] Python 3.13 compatibility (#2791) --- .github/workflows/test-only.yml | 7 +++++++ Dockerfile | 2 +- requirements.txt | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-only.yml b/.github/workflows/test-only.yml index 69e42cba..3d61ca2a 100644 --- a/.github/workflows/test-only.yml +++ b/.github/workflows/test-only.yml @@ -37,3 +37,10 @@ jobs: python-version: '3.12' skip-pypuppeteer: true + test-application-3-13: + needs: lint-code + uses: ./.github/workflows/test-stack-reusable-workflow.yml + with: + python-version: '3.13' + skip-pypuppeteer: true + diff --git a/Dockerfile b/Dockerfile index 3c057d67..c993ab24 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,7 @@ RUN pip install --extra-index-url https://www.piwheels.org/simple --target=/dep # Playwright is an alternative to Selenium # Excluded this package from requirements.txt to prevent arm/v6 and arm/v7 builds from failing # https://github.com/dgtlmoon/changedetection.io/pull/1067 also musl/alpine (not supported) -RUN pip install --target=/dependencies playwright~=1.41.2 \ +RUN pip install --target=/dependencies playwright~=1.48.0 \ || echo "WARN: Failed to install Playwright. The application can still run, but the Playwright option will be disabled." # Final image stage diff --git a/requirements.txt b/requirements.txt index 8182f0b4..6edd9edf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ # Used by Pyppeteer pyee -eventlet>=0.36.1 # fixes SSL error on Python 3.12 +eventlet>=0.38.0 feedgen~=0.9 flask-compress # 0.6.3 included compatibility fix for werkzeug 3.x (2.x had deprecation of url handlers)