From de16718b39e3544688130339a0813997e3790c48 Mon Sep 17 00:00:00 2001 From: David Lord Date: Mon, 8 Aug 2022 16:14:00 -0700 Subject: [PATCH 1/2] require werkzeug >= 2.2.2 --- CHANGES.rst | 3 +++ setup.py | 2 +- src/flask/cli.py | 7 ------- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index bc7dae20..ca20ccd7 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,6 +3,9 @@ Version 2.2.2 Unreleased +- Update Werkzeug dependency to >= 2.2.2. This includes fixes related + to the new faster router, header parsing, and the development + server. :pr:`4754` - Fix the default value for ``app.env`` to be ``"production"``. This attribute remains deprecated. :issue:`4740` diff --git a/setup.py b/setup.py index 7c53630d..67175467 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup setup( name="Flask", install_requires=[ - "Werkzeug >= 2.2.0", + "Werkzeug >= 2.2.2", "Jinja2 >= 3.0", "itsdangerous >= 2.0", "click >= 8.0", diff --git a/src/flask/cli.py b/src/flask/cli.py index a155aad1..82fe8194 100644 --- a/src/flask/cli.py +++ b/src/flask/cli.py @@ -719,13 +719,6 @@ def show_server_banner(debug, app_import_path): if is_running_from_reloader(): return - click.secho( - "WARNING: This is a development server. Do not use it in a production" - " deployment. Use a production WSGI server instead.", - fg="red", - bold=True, - ) - if app_import_path is not None: click.echo(f" * Serving Flask app '{app_import_path}'") From 43d2fff317aec64a000604a764b8ab2dc751c753 Mon Sep 17 00:00:00 2001 From: David Lord Date: Mon, 8 Aug 2022 16:21:40 -0700 Subject: [PATCH 2/2] release version 2.2.2 --- CHANGES.rst | 2 +- src/flask/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index ca20ccd7..e33abe8a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,7 +1,7 @@ Version 2.2.2 ------------- -Unreleased +Released 2022-08-08 - Update Werkzeug dependency to >= 2.2.2. This includes fixes related to the new faster router, header parsing, and the development diff --git a/src/flask/__init__.py b/src/flask/__init__.py index d97ac832..e02531c5 100644 --- a/src/flask/__init__.py +++ b/src/flask/__init__.py @@ -42,7 +42,7 @@ from .templating import render_template_string as render_template_string from .templating import stream_template as stream_template from .templating import stream_template_string as stream_template_string -__version__ = "2.2.2.dev" +__version__ = "2.2.2" def __getattr__(name):