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 9a4d370, db7d2d2 · Browse files · 10 files·+39 added−20 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
10 files+39 added−20 removed
- other:+39 added−20 removed
Provenance
- Commit
cfa863c- Tree
da10949- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent 1
9a4d370- Parent 2
db7d2d2
10 files changed+39 added−20 removed
modified:docs/deploying/eventlet.rst+1 added-1 removed
52 unmodified lines53 from eventlet import wsgi54 from hello import create_app55 56 app = create_app()57- wsgi.server(eventlet.listen(("127.0.0.1", 8000), app)57+ wsgi.server(eventlet.listen(("127.0.0.1", 8000)), app)58 59 .. code-block:: text60 61 $ python wsgi.py19 unmodified linesmodified:docs/debugging.rst+20 added-8 removed
64 unmodified lines65 be used to step through code during a request before an error is raised,66 or if no error is raised. Some even have a remote mode so you can debug67 code running on another machine.68 69-When using an external debugger, the app should still be in debug mode,70-but it can be useful to disable the built-in debugger and reloader,71-which can interfere.69+When using an external debugger, the app should still be in debug mode, otherwise Flask70+turns unhandled errors into generic 500 error pages. However, the built-in debugger and71+reloader should be disabled so they don't interfere with the external debugger.72 73 .. code-block:: text74 75 $ flask --app hello run --debug --no-debugger --no-reload3 unmodified lines79 .. code-block:: python80 81 app.run(debug=True, use_debugger=False, use_reloader=False)82 83-Disabling these isn't required, an external debugger will continue to84-work with the following caveats. If the built-in debugger is not85-disabled, it will catch unhandled exceptions before the external86-debugger can. If the reloader is not disabled, it could cause an87-unexpected reload if code changes during debugging.83+Disabling these isn't required, an external debugger will continue to work with the84+following caveats.85+86+- If the built-in debugger is not disabled, it will catch unhandled exceptions before87+ the external debugger can.88+- If the reloader is not disabled, it could cause an unexpected reload if code changes89+ during a breakpoint.90+- The development server will still catch unhandled exceptions if the built-in91+ debugger is disabled, otherwise it would crash on any error. If you want that (and92+ usually you don't) pass ``passthrough_errors=True`` to ``app.run``.93+94+ .. code-block:: python95+96+ app.run(97+ debug=True, passthrough_errors=True,98+ use_debugger=False, use_reloader=False99+ )modified:requirements/build.txt+1 added-1 removed
5 unmodified lines6 # pip-compile-multi7 #8 build==0.10.09 # via -r requirements/build.in10-packaging==23.010+packaging==23.111 # via build12 pyproject-hooks==1.0.013 # via buildmodified:requirements/dev.txt+1 added-1 removed
48 unmodified lines49 pyyaml==6.050 # via pre-commit51 toposort==1.1052 # via pip-compile-multi53-tox==4.4.1153+tox==4.4.1254 # via -r requirements/dev.in55 virtualenv==20.21.056 # via57 # pre-commit7 unmodified linesmodified:requirements/docs.txt+1 added-1 removed
23 unmodified lines24 jinja2==3.1.225 # via sphinx26 markupsafe==2.1.227 # via jinja228-packaging==23.028+packaging==23.129 # via30 # pallets-sphinx-themes31 # sphinx32 pallets-sphinx-themes==2.0.336 unmodified linesmodified:requirements/tests-pallets-min.in+2 added-2 removed
1-Werkzeug==2.0.01+Werkzeug==2.2.22 Jinja2==3.0.03-MarkupSafe==2.0.03+MarkupSafe==2.1.14 itsdangerous==2.0.05 click==8.0.06 blinker==1.6.2modified:requirements/tests-pallets-min.txt+4 added-3 removed
1-# SHA1:575f86f45391b662630a6080f0a12676215eb0cf1+# SHA1:3f343e92214ba64bc3fc9e3667c8a7d5a2d8ccd62 #3 # This file is autogenerated by pip-compile-multi4 # To update, run:5 #6 unmodified lines12 itsdangerous==2.0.013 # via -r requirements/tests-pallets-min.in14 jinja2==3.0.015 # via -r requirements/tests-pallets-min.in16-markupsafe==2.0.016+markupsafe==2.1.117 # via18 # -r requirements/tests-pallets-min.in19 # jinja220+ # werkzeug20-werkzeug==2.0.021+werkzeug==2.2.222 # via -r requirements/tests-pallets-min.inmodified:requirements/tests.txt+2 added-2 removed
7 unmodified lines8 asgiref==3.6.09 # via -r requirements/tests.in10 iniconfig==2.0.011 # via pytest12-packaging==23.012+packaging==23.113 # via pytest14 pluggy==1.0.015 # via pytest16-pytest==7.3.016+pytest==7.3.117 # via -r requirements/tests.in18 python-dotenv==1.0.0 ; python_version >= "3.8"19 # via -r requirements/tests.inmodified:requirements/typing.txt+1 added-1 removed
5 unmodified lines6 # pip-compile-multi7 #8 cffi==1.15.19 # via cryptography10-cryptography==40.0.110+cryptography==40.0.211 # via -r requirements/typing.in12 mypy==1.2.013 # via -r requirements/typing.in14 mypy-extensions==1.0.011 unmodified linesmodified:tox.ini+6 added
11 unmodified lines12 [testenv]13 package = wheel14 wheel_build_env = .pkg15 envtmpdir = {toxworkdir}/tmp/{envname}16+constrain_package_deps = true17+use_frozen_constraints = true18 deps =19 -r requirements/tests.txt20 min: -r requirements/tests-pallets-min.txt21 dev: https://github.com/pallets/werkzeug/archive/refs/heads/main.tar.gz13 unmodified lines35 36 [testenv:typing]37 package = wheel38 wheel_build_env = .pkg39+constrain_package_deps = true40+use_frozen_constraints = true41 deps = -r requirements/typing.txt42 commands = mypy43 44 [testenv:docs]45 package = wheel46 wheel_build_env = .pkg47+constrain_package_deps = true48+use_frozen_constraints = true49 deps = -r requirements/docs.txt50 commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html