Skip to content

Commit 17ef076

Browse files
committed
Pin Werkzeug==2.3.8 for Flask 2.2.3 compatibility
Flask 2.2.3 imports url_quote from werkzeug.urls which was removed in Werkzeug 3.x. Pin to 2.3.8 to fix CI ImportError. Also add urllib3<2 to CI install command.
1 parent 6e259a5 commit 17ef076

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install Flask==2.2.3 flask-socketio==5.5.1 pandas==1.5.3 numpy==1.24.3 \
25-
scikit-learn==1.3.0 requests==2.28.2 pytest==7.4.0 pytest-flask==1.2.0 \
24+
pip install Flask==2.2.3 Werkzeug==2.3.8 flask-socketio==5.5.1 pandas==1.5.3 numpy==1.24.3 \
25+
scikit-learn==1.3.0 requests==2.28.2 "urllib3<2" pytest==7.4.0 pytest-flask==1.2.0 \
2626
python-dotenv==1.0.0 plotly==5.14.1 matplotlib==3.7.1 seaborn==0.12.2
2727
2828
- name: Run tests

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Web Framework
44
Flask==2.2.3
5+
Werkzeug==2.3.8
56
flask-socketio==5.5.1
67

78
# Data Processing

0 commit comments

Comments
 (0)