From ecdd333649b1807075c8861e29137441ae3cf96e Mon Sep 17 00:00:00 2001 From: FriedrichFroebel Date: Wed, 24 Jul 2024 18:34:36 +0200 Subject: [PATCH] remove hard error for cgi module on Python 3.13 --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ebe790..f68e351 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,9 +41,12 @@ jobs: python -m pip install .[dev,mypy] # Bottle still depends on the old `cgi` module removed in Python 3.13, # thus provide it here. + # Avoid the additional error: + # RuntimeError: 'cgi' was slated for removal after Python 3.13 alpha - name: prepare cgi module (Python 3.13) run: | wget https://github.com/python/cpython/raw/3.12/Lib/cgi.py + sed --in-place 's/warnings._deprecated(__name__, remove=(3,13))//' cgi.py if: ${{ matrix.python == '3.13-dev' }} - name: run tests run: