From 79ebf6c39cba01b240a926b899b7d0828e63fc4b Mon Sep 17 00:00:00 2001 From: David Lord Date: Tue, 25 Apr 2023 12:27:06 -0600 Subject: [PATCH] update minimum requirements --- CHANGES.rst | 2 ++ pyproject.toml | 8 ++++---- requirements/tests-pallets-min.in | 8 ++++---- requirements/tests-pallets-min.txt | 10 +++++----- src/flask/app.py | 2 +- 5 files changed, 16 insertions(+), 14 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 45c21c5974..dbd9595f95 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,8 @@ Version 2.3.0 Unreleased - Drop support for Python 3.7. :pr:`5072` +- Update minimum requirements to the latest versions: Werkzeug>=2.3.0, Jinja2>3.1.2, + itsdangerous>=2.1.2, click>=8.1.3. - Remove previously deprecated code. :pr:`4995` - The ``push`` and ``pop`` methods of the deprecated ``_app_ctx_stack`` and diff --git a/pyproject.toml b/pyproject.toml index 544e1696b6..08601bafa4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,10 +20,10 @@ classifiers = [ ] requires-python = ">=3.8" dependencies = [ - "Werkzeug>=2.2.2", - "Jinja2>=3.0", - "itsdangerous>=2.0", - "click>=8.0", + "Werkzeug>=2.3.0", + "Jinja2>=3.1.2", + "itsdangerous>=2.1.2", + "click>=8.1.3", "blinker>=1.6.2", "importlib-metadata>=3.6.0; python_version < '3.10'", ] diff --git a/requirements/tests-pallets-min.in b/requirements/tests-pallets-min.in index d9891c7367..65a46faf4b 100644 --- a/requirements/tests-pallets-min.in +++ b/requirements/tests-pallets-min.in @@ -1,6 +1,6 @@ -Werkzeug==2.2.2 -Jinja2==3.0.0 +Werkzeug==2.3.0 +Jinja2==3.1.2 MarkupSafe==2.1.1 -itsdangerous==2.0.0 -click==8.0.0 +itsdangerous==2.1.2 +click==8.1.3 blinker==1.6.2 diff --git a/requirements/tests-pallets-min.txt b/requirements/tests-pallets-min.txt index 793b0ba805..945988791e 100644 --- a/requirements/tests-pallets-min.txt +++ b/requirements/tests-pallets-min.txt @@ -1,4 +1,4 @@ -# SHA1:3f343e92214ba64bc3fc9e3667c8a7d5a2d8ccd6 +# SHA1:93a20a0c3518e8617dd501183caffc1364455d8d # # This file is autogenerated by pip-compile-multi # To update, run: @@ -7,16 +7,16 @@ # blinker==1.6.2 # via -r requirements/tests-pallets-min.in -click==8.0.0 +click==8.1.3 # via -r requirements/tests-pallets-min.in -itsdangerous==2.0.0 +itsdangerous==2.1.2 # via -r requirements/tests-pallets-min.in -jinja2==3.0.0 +jinja2==3.1.2 # via -r requirements/tests-pallets-min.in markupsafe==2.1.1 # via # -r requirements/tests-pallets-min.in # jinja2 # werkzeug -werkzeug==2.2.2 +werkzeug==2.3.0 # via -r requirements/tests-pallets-min.in diff --git a/src/flask/app.py b/src/flask/app.py index 3b6b38d8ad..bd90a24bd2 100644 --- a/src/flask/app.py +++ b/src/flask/app.py @@ -1852,7 +1852,7 @@ def make_response(self, rv: ft.ResponseReturnValue) -> Response: # extend existing headers with provided headers if headers: - rv.headers.update(headers) # type: ignore[arg-type] + rv.headers.update(headers) return rv