From de8d4562b655b5db3c218f4b98a243b62a3d65a7 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Wed, 7 Feb 2024 05:44:11 +0000 Subject: [PATCH] Add missing Werkzeug test requirement Used in `test/unit/util/test_get_url.py` since commit 69ebbb761aa610c1eab2f92a385c34b47259ac32 . Pin Werkzeug in `lib/galaxy/dependencies/dev-requirements.txt` to latest version compatible with pytest-httpserver 1.0.6 . Fix unit test collection error on Python 3.11: ``` File "/home/runner/work/galaxy/galaxy/galaxy root/.tox/unit-coverage/lib/python3.11/site-packages/pytest_httpserver/httpserver.py", line 26, in from werkzeug.http import parse_authorization_header ImportError: cannot import name 'parse_authorization_header' from 'werkzeug.http' (/home/runner/work/galaxy/galaxy/galaxy root/.tox/unit-coverage/lib/python3.11/site-packages/werkzeug/http.py) ``` --- lib/galaxy/dependencies/dev-requirements.txt | 1 + packages/util/test-requirements.txt | 1 + pyproject.toml | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/galaxy/dependencies/dev-requirements.txt b/lib/galaxy/dependencies/dev-requirements.txt index b2767bc36878..6393839ea395 100644 --- a/lib/galaxy/dependencies/dev-requirements.txt +++ b/lib/galaxy/dependencies/dev-requirements.txt @@ -142,6 +142,7 @@ urllib3[socks]==1.26.14 ; python_version >= "3.7" and python_version < "3.12" vine==5.0.0 ; python_version >= "3.7" and python_version < "3.12" watchdog==2.2.1 ; python_version >= "3.7" and python_version < "3.12" wcwidth==0.2.6 ; python_version >= "3.7" and python_version < "3.12" +werkzeug==2.2.3 ; python_version >= "3.7" and python_version < "3.12" wrapt==1.14.1 ; python_version >= "3.7" and python_version < "3.12" wsproto==1.2.0 ; python_version >= "3.7" and python_version < "3.12" yarl==1.8.2 ; python_version >= "3.7" and python_version < "3.12" diff --git a/packages/util/test-requirements.txt b/packages/util/test-requirements.txt index 779ccfa23c7e..2b7d321b4f1a 100644 --- a/packages/util/test-requirements.txt +++ b/packages/util/test-requirements.txt @@ -1,3 +1,4 @@ pytest pytest-httpserver responses +Werkzeug diff --git a/pyproject.toml b/pyproject.toml index c1c825f1aa84..64673290764d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -151,6 +151,7 @@ testfixtures = "*" tuspy = "*" twill = "*" watchdog = "*" +Werkzeug = "*" [tool.ruff] select = ["E", "F", "B", "UP"]