Merge branch '2.1.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 67310ab, 187d717 · Browse files · 9 files·+35 added−26 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
9 files+35 added−26 removed
- other:+35 added−26 removed
Provenance
- Commit
48fe965- Tree
2740870- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent 1
67310ab- Parent 2
187d717
9 files changed+35 added−26 removed
modified:docs/async-await.rst+1 added-1 removed
89 unmodified lines90 ``await`` and ASGI use standard, modern Python capabilities. Deciding91 whether you should use Flask, Quart, or something else is ultimately up92 to understanding the specific needs of your project.93 94-.. _Quart: https://gitlab.com/pgjones/quart94+.. _Quart: https://github.com/pallets/quart95 .. _ASGI: https://asgi.readthedocs.io/en/latest/96 97 98 Extensions33 unmodified linesmodified:requirements/dev.txt+8 added-6 removed
6 unmodified lines7 #8 -r docs.txt9 -r tests.txt10 -r typing.txt11+build==0.8.012+ # via pip-tools13 cfgv==3.3.114 # via pre-commit15 click==8.1.316 # via8 unmodified lines25 greenlet==1.1.2 ; python_version < "3.11"26 # via -r requirements/tests.in27 identify==2.5.128 # via pre-commit27-nodeenv==1.6.029+nodeenv==1.7.030 # via pre-commit31 pep517==0.12.030- # via pip-tools32+ # via build33 pip-compile-multi==2.4.534 # via -r requirements/dev.in33-pip-tools==6.6.235+pip-tools==6.8.036 # via pip-compile-multi37 platformdirs==2.5.238 # via virtualenv37-pre-commit==2.19.039+pre-commit==2.20.040 # via -r requirements/dev.in41 pyyaml==6.042 # via pre-commit43 six==1.16.05 unmodified lines49 # pre-commit50 # tox51 toposort==1.752 # via pip-compile-multi51-tox==3.25.053+tox==3.25.154 # via -r requirements/dev.in53-virtualenv==20.14.155+virtualenv==20.15.156 # via57 # pre-commit58 # tox59 wheel==0.37.15 unmodified linesmodified:requirements/docs.in+4 added-2 removed
1 Pallets-Sphinx-Themes2+# sphinx 5 introduced error in references from werkzeug in docstrings2-Sphinx3+Sphinx < 54 sphinx-issues5 sphinxcontrib-log-cabinet6+# sphinx-tabs 3.4 requires docutils 0.18, sphinx < 5 requires < 0.185-sphinx-tabs7+sphinx-tabs < 3.4modified:requirements/docs.txt+7 added-7 removed
1-# SHA1:34fd4ca6516e97c7348e6facdd9c4ebb68209d1c1+# SHA1:323f1c1134d78952ea63131c187303def63b56bd2 #3 # This file is autogenerated by pip-compile-multi4 # To update, run:5 #6 # pip-compile-multi7 #8 alabaster==0.7.129 # via sphinx10-babel==2.10.110+babel==2.10.311 # via sphinx12-certifi==2022.5.18.112+certifi==2022.6.1513 # via requests14-charset-normalizer==2.0.1214+charset-normalizer==2.1.015 # via requests16 docutils==0.17.117 # via18 # sphinx19 # sphinx-tabs20 idna==3.321 # via requests22-imagesize==1.3.022+imagesize==1.4.123 # via sphinx24 jinja2==3.1.225 # via sphinx26 markupsafe==2.1.111 unmodified lines38 pyparsing==3.0.939 # via packaging40 pytz==2022.141 # via babel42-requests==2.27.142+requests==2.28.143 # via sphinx44 snowballstemmer==2.2.045 # via sphinx46 sphinx==4.5.020 unmodified lines67 sphinxcontrib-qthelp==1.0.368 # via sphinx69 sphinxcontrib-serializinghtml==1.1.570 # via sphinx71-urllib3==1.26.971+urllib3==1.26.1072 # via requestsmodified:requirements/tests-pallets-dev.txt+1 added
13 unmodified lines14 markupsafe @ https://github.com/pallets/markupsafe/archive/refs/heads/main.tar.gz15 # via16 # -r requirements/tests-pallets-dev.in17 # jinja218+ # werkzeug19 werkzeug @ https://github.com/pallets/werkzeug/archive/refs/heads/main.tar.gz20 # via -r requirements/tests-pallets-dev.inmodified:requirements/typing.txt+7 added-7 removed
3 unmodified lines4 # To update, run:5 #6 # pip-compile-multi7 #8-cffi==1.15.08+cffi==1.15.19 # via cryptography10-cryptography==37.0.210+cryptography==37.0.411 # via -r requirements/typing.in12-mypy==0.96012+mypy==0.96113 # via -r requirements/typing.in14 mypy-extensions==0.4.315 # via mypy16 pycparser==2.2117 # via cffi18 tomli==2.0.119 # via mypy20-types-contextvars==2.4.620+types-contextvars==2.4.721 # via -r requirements/typing.in22-types-dataclasses==0.6.522+types-dataclasses==0.6.623 # via -r requirements/typing.in24-types-setuptools==57.4.1724+types-setuptools==62.6.125 # via -r requirements/typing.in26-typing-extensions==4.2.026+typing-extensions==4.3.027 # via mypymodified:src/flask/json/__init__.py+1 added
18 unmodified lines19 20 - :class:`datetime.datetime` and :class:`datetime.date` are21 serialized to :rfc:`822` strings. This is the same as the HTTP22 date format.23+ - :class:`decimal.Decimal` is serialized to a string.24 - :class:`uuid.UUID` is serialized to a string.25 - :class:`dataclasses.dataclass` is passed to26 :func:`dataclasses.asdict`.27 - :class:`~markupsafe.Markup` (or any object with a ``__html__``315 unmodified linesmodified:.pre-commit-config.yaml+2 added-2 removed
12345667891011111213141523 unmodified linesci: autoupdate_branch: "2.1.x" autoupdate_schedule: monthlyrepos: - repo: https://github.com/asottile/pyupgrade rev: v2.34.0 rev: v2.37.1 hooks: - id: pyupgrade args: ["--py36-plus"] - repo: https://github.com/asottile/reorder_python_imports rev: v3.3.0 rev: v3.8.1 hooks: - id: reorder-python-imports name: Reorder Python imports (src, tests) files: "^(?!examples/)"23 unmodified linesmodified:CHANGES.rst+4 added-1 removed
94 unmodified lines95 96 Version 2.1.397 -------------98 99-Unreleased99+Released 2022-07-13100 101 - Inline some optional imports that are only used for certain CLI102 commands. :pr:`4606`103 - Relax type annotation for ``after_request`` functions. :issue:`4600`104 - ``instance_path`` for namespace packages uses the path closest to105 the imported submodule. :issue:`4600`106+- Clearer error message when ``render_template`` and107+ ``render_template_string`` are used outside an application context.108+ :pr:`4693`109 110 111 Version 2.1.2112 -------------1279 unmodified lines