Skip to content

Commit

Permalink
remove hard error for cgi module on Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichFroebel authored Jul 24, 2024
1 parent 20d8516 commit ecdd333
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ecdd333

Please sign in to comment.