Merge branch '2.2.x'
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parents 2f67e0f, cac56a2 · Browse files · 11 files·+31 added−29 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
11 files+31 added−29 removed
- other:+31 added−29 removed
Provenance
- Commit
7ee9ceb- Tree
c3d16a1- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent 1
2f67e0f- Parent 2
cac56a2
11 files changed+31 added−29 removed
modified:docs/errorhandling.rst-1 removed
67 unmodified lines68 69 - Sentry also supports catching errors from a worker queue70 (RQ, Celery, etc.) in a similar fashion. See the `Python SDK docs71 <https://docs.sentry.io/platforms/python/>`__ for more information.72-- `Getting started with Sentry <https://docs.sentry.io/quickstart/?platform=python>`__72 - `Flask-specific documentation <https://docs.sentry.io/platforms/python/guides/flask/>`__73 74 75 Error Handlers448 unmodified linesmodified:docs/installation.rst+1 added-1 removed
42 unmodified lines43 commands.44 * `Watchdog`_ provides a faster, more efficient reloader for the development45 server.46 47-.. _Blinker: https://pythonhosted.org/blinker/47+.. _Blinker: https://blinker.readthedocs.io/en/stable/48 .. _python-dotenv: https://github.com/theskumar/python-dotenv#readme49 .. _watchdog: https://pythonhosted.org/watchdog/50 51 94 unmodified linesmodified:requirements/build.txt+1 added-3 removed
10 unmodified lines11 # via build12 pyproject-hooks==1.0.013 # via build14 tomli==2.0.115- # via16- # build17- # pyproject-hooks15+ # via buildmodified:requirements/dev.txt+6 added-6 removed
26 unmodified lines27 filelock==3.9.028 # via29 # tox30 # virtualenv31-identify==2.5.1831+identify==2.5.1932 # via pre-commit33 nodeenv==1.7.034 # via pre-commit35 pip-compile-multi==2.6.236 # via -r requirements/dev.in37-pip-tools==6.12.237+pip-tools==6.12.338 # via pip-compile-multi39-platformdirs==3.0.039+platformdirs==3.1.140 # via41 # tox42 # virtualenv43-pre-commit==3.1.043+pre-commit==3.1.144 # via -r requirements/dev.in45 pyproject-api==1.5.046 # via tox47 pyproject-hooks==1.0.048 # via build49 pyyaml==6.050 # via pre-commit51-toposort==1.951+toposort==1.1052 # via pip-compile-multi53 tox==4.4.654 # via -r requirements/dev.in55-virtualenv==20.19.055+virtualenv==20.20.056 # via57 # pre-commit58 # tox59 wheel==0.38.45 unmodified linesmodified:requirements/docs.txt+3 added-5 removed
5 unmodified lines6 # pip-compile-multi7 #8 alabaster==0.7.139 # via sphinx10-babel==2.11.010+babel==2.12.111 # via sphinx12 certifi==2022.12.713 # via requests14-charset-normalizer==3.0.114+charset-normalizer==3.1.015 # via requests16 docutils==0.17.117 # via18 # sphinx15 unmodified lines34 pygments==2.14.035 # via36 # sphinx37 # sphinx-tabs38-pytz==2022.7.139- # via babel38 requests==2.28.239 # via sphinx40 snowballstemmer==2.2.041 # via sphinx21 unmodified lines63 sphinxcontrib-qthelp==1.0.364 # via sphinx65 sphinxcontrib-serializinghtml==1.1.566 # via sphinx69-urllib3==1.26.1467+urllib3==1.26.1568 # via requestsmodified:requirements/tests.in+1 added-1 removed
1 pytest2 asgiref3 blinker4 greenlet ; python_version < "3.11"5-python-dotenv5+python-dotenv>=1; python_version >= "3.8"modified:requirements/tests.txt+3 added-3 removed
1-# SHA1:69cf1e101a60350e9933c6f1f3b129bd9ed1ea7c1+# SHA1:30698f5f4f9cba5088318306829a15b0dc123b382 #3 # This file is autogenerated by pip-compile-multi4 # To update, run:5 #14 unmodified lines20 packaging==23.021 # via pytest22 pluggy==1.0.023 # via pytest24-pytest==7.2.124+pytest==7.2.225 # via -r requirements/tests.in26-python-dotenv==0.21.126+python-dotenv==1.0.0 ; python_version >= "3.8"27 # via -r requirements/tests.in28 tomli==2.0.129 # via pytestmodified:requirements/typing.txt+3 added-5 removed
5 unmodified lines6 # pip-compile-multi7 #8 cffi==1.15.19 # via cryptography10-cryptography==39.0.110+cryptography==39.0.211 # via -r requirements/typing.in12-mypy==1.0.112+mypy==1.1.113 # via -r requirements/typing.in14 mypy-extensions==1.0.015 # via mypy16 pycparser==2.213 unmodified lines20 types-contextvars==2.4.7.121 # via -r requirements/typing.in22 types-dataclasses==0.6.623 # via -r requirements/typing.in24-types-docutils==0.19.1.625- # via types-setuptools26-types-setuptools==67.4.0.124+types-setuptools==67.6.0.025 # via -r requirements/typing.in26 typing-extensions==4.5.027 # via mypymodified:src/flask/app.py+3 added-2 removed
7 unmodified lines8 from collections.abc import Iterator as _abc_Iterator9 from datetime import timedelta10 from itertools import chain11 from types import TracebackType12+from urllib.parse import quote as _url_quote13 14 import click15 from werkzeug.datastructures import Headers16 from werkzeug.datastructures import ImmutableDict8 unmodified lines25 from werkzeug.routing import RequestRedirect26 from werkzeug.routing import RoutingException27 from werkzeug.routing import Rule28 from werkzeug.serving import is_running_from_reloader28-from werkzeug.urls import url_quote29 from werkzeug.utils import cached_property30 from werkzeug.utils import redirect as _wz_redirect31 from werkzeug.wrappers import Response as BaseResponse32 1676 unmodified lines1709 )1710 return self.handle_url_build_error(error, endpoint, values)1711 1712 if _anchor is not None:1713- rv = f"{rv}#{url_quote(_anchor)}"1713+ _anchor = _url_quote(_anchor, safe="%!#$&'()*+,/:;=?@")1714+ rv = f"{rv}#{_anchor}"1715 1716 return rv1717 1718 def redirect(self, location: str, code: int = 302) -> BaseResponse:510 unmodified linesmodified:src/flask/testing.py+2 added-2 removed
1 unmodified line2 from contextlib import contextmanager3 from contextlib import ExitStack4 from copy import copy5 from types import TracebackType6+from urllib.parse import urlsplit7 8 import werkzeug.test9 from click.testing import CliRunner10 from werkzeug.test import Client10-from werkzeug.urls import url_parse11 from werkzeug.wrappers import Request as BaseRequest12 13 from .cli import ScriptInfo14 from .globals import _cv_request52 unmodified lines67 68 if url_scheme is None:69 url_scheme = app.config["PREFERRED_URL_SCHEME"]70 71- url = url_parse(path)71+ url = urlsplit(path)72 base_url = (73 f"{url.scheme or url_scheme}://{url.netloc or http_host}"74 f"/{app_root.lstrip('/')}"75 )211 unmodified linesmodified:CHANGES.rst+8 added
35 unmodified lines36 - ``config.from_file`` can use ``text=False`` to indicate that the parser wants a37 binary file instead. :issue:`4989`38 39 40+Version 2.2.441+-------------42+43+Unreleased44+45+- Update for compatibility with Werkzeug 2.3.46+47+48 Version 2.2.349 -------------50 51 Released 2023-02-151413 unmodified lines