Skip to content
Myr

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

11 files+31 added−29 removed

modified:docs/errorhandling.rst-1 removed
67 unmodified lines
6869- 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/>`__737475Error Handlers
448 unmodified lines
modified:docs/installation.rst+1 added-1 removed
42 unmodified lines
43 commands.44* `Watchdog`_ provides a faster, more efficient reloader for the development45 server.4647.. _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/5051
94 unmodified lines
modified:requirements/build.txt+1 added-3 removed
10 unmodified lines
11 # via build12pyproject-hooks==1.0.013 # via build14tomli==2.0.115 # via16 # build17 # pyproject-hooks15 # via build
modified:requirements/dev.txt+6 added-6 removed
26 unmodified lines
27filelock==3.9.028 # via29 # tox30 # virtualenv31identify==2.5.1831identify==2.5.1932 # via pre-commit33nodeenv==1.7.034 # via pre-commit35pip-compile-multi==2.6.236 # via -r requirements/dev.in37pip-tools==6.12.237pip-tools==6.12.338 # via pip-compile-multi39platformdirs==3.0.039platformdirs==3.1.140 # via41 # tox42 # virtualenv43pre-commit==3.1.043pre-commit==3.1.144 # via -r requirements/dev.in45pyproject-api==1.5.046 # via tox47pyproject-hooks==1.0.048 # via build49pyyaml==6.050 # via pre-commit51toposort==1.951toposort==1.1052 # via pip-compile-multi53tox==4.4.654 # via -r requirements/dev.in55virtualenv==20.19.055virtualenv==20.20.056 # via57 # pre-commit58 # tox59wheel==0.38.4
5 unmodified lines
modified:requirements/docs.txt+3 added-5 removed
5 unmodified lines
6# pip-compile-multi7#8alabaster==0.7.139 # via sphinx10babel==2.11.010babel==2.12.111 # via sphinx12certifi==2022.12.713 # via requests14charset-normalizer==3.0.114charset-normalizer==3.1.015 # via requests16docutils==0.17.117 # via18 # sphinx
15 unmodified lines
34pygments==2.14.035 # via36 # sphinx37 # sphinx-tabs38pytz==2022.7.139 # via babel38requests==2.28.239 # via sphinx40snowballstemmer==2.2.041 # via sphinx
21 unmodified lines
63sphinxcontrib-qthelp==1.0.364 # via sphinx65sphinxcontrib-serializinghtml==1.1.566 # via sphinx69urllib3==1.26.1467urllib3==1.26.1568 # via requests
modified:requirements/tests.in+1 added-1 removed
1pytest2asgiref3blinker4greenlet ; python_version < "3.11"5python-dotenv5python-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 lines
20packaging==23.021 # via pytest22pluggy==1.0.023 # via pytest24pytest==7.2.124pytest==7.2.225 # via -r requirements/tests.in26python-dotenv==0.21.126python-dotenv==1.0.0 ; python_version >= "3.8"27 # via -r requirements/tests.in28tomli==2.0.129 # via pytest
modified:requirements/typing.txt+3 added-5 removed
5 unmodified lines
6# pip-compile-multi7#8cffi==1.15.19 # via cryptography10cryptography==39.0.110cryptography==39.0.211 # via -r requirements/typing.in12mypy==1.0.112mypy==1.1.113 # via -r requirements/typing.in14mypy-extensions==1.0.015 # via mypy16pycparser==2.21
3 unmodified lines
20types-contextvars==2.4.7.121 # via -r requirements/typing.in22types-dataclasses==0.6.623 # via -r requirements/typing.in24types-docutils==0.19.1.625 # via types-setuptools26types-setuptools==67.4.0.124types-setuptools==67.6.0.025 # via -r requirements/typing.in26typing-extensions==4.5.027 # via mypy
modified:src/flask/app.py+3 added-2 removed
7 unmodified lines
8from collections.abc import Iterator as _abc_Iterator9from datetime import timedelta10from itertools import chain11from types import TracebackType12from urllib.parse import quote as _url_quote1314import click15from werkzeug.datastructures import Headers16from werkzeug.datastructures import ImmutableDict
8 unmodified lines
25from werkzeug.routing import RequestRedirect26from werkzeug.routing import RoutingException27from werkzeug.routing import Rule28from werkzeug.serving import is_running_from_reloader28from werkzeug.urls import url_quote29from werkzeug.utils import cached_property30from werkzeug.utils import redirect as _wz_redirect31from werkzeug.wrappers import Response as BaseResponse32
1676 unmodified lines
1709 )1710 return self.handle_url_build_error(error, endpoint, values)17111712 if _anchor is not None:1713 rv = f"{rv}#{url_quote(_anchor)}"1713 _anchor = _url_quote(_anchor, safe="%!#$&'()*+,/:;=?@")1714 rv = f"{rv}#{_anchor}"17151716 return rv17171718 def redirect(self, location: str, code: int = 302) -> BaseResponse:
510 unmodified lines
modified:src/flask/testing.py+2 added-2 removed
1 unmodified line
2from contextlib import contextmanager3from contextlib import ExitStack4from copy import copy5from types import TracebackType6from urllib.parse import urlsplit78import werkzeug.test9from click.testing import CliRunner10from werkzeug.test import Client10from werkzeug.urls import url_parse11from werkzeug.wrappers import Request as BaseRequest1213from .cli import ScriptInfo14from .globals import _cv_request
52 unmodified lines
6768 if url_scheme is None:69 url_scheme = app.config["PREFERRED_URL_SCHEME"]7071 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 lines
modified:CHANGES.rst+8 added
35 unmodified lines
36- ``config.from_file`` can use ``text=False`` to indicate that the parser wants a37 binary file instead. :issue:`4989`383940Version 2.2.441-------------4243Unreleased4445- Update for compatibility with Werkzeug 2.3.464748Version 2.2.349-------------5051Released 2023-02-15
1413 unmodified lines