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 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

10 files+39 added−20 removed

modified:docs/deploying/eventlet.rst+1 added-1 removed
52 unmodified lines
53 from eventlet import wsgi54 from hello import create_app5556 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)5859.. code-block:: text6061 $ python wsgi.py
19 unmodified lines
modified:docs/debugging.rst+20 added-8 removed
64 unmodified lines
65be used to step through code during a request before an error is raised,66or if no error is raised. Some even have a remote mode so you can debug67code running on another machine.6869When using an external debugger, the app should still be in debug mode,70but it can be useful to disable the built-in debugger and reloader,71which can interfere.69When using an external debugger, the app should still be in debug mode, otherwise Flask70turns unhandled errors into generic 500 error pages. However, the built-in debugger and71reloader should be disabled so they don't interfere with the external debugger.7273.. code-block:: text7475 $ flask --app hello run --debug --no-debugger --no-reload
3 unmodified lines
79.. code-block:: python8081 app.run(debug=True, use_debugger=False, use_reloader=False)8283Disabling these isn't required, an external debugger will continue to84work with the following caveats. If the built-in debugger is not85disabled, it will catch unhandled exceptions before the external86debugger can. If the reloader is not disabled, it could cause an87unexpected reload if code changes during debugging.83Disabling these isn't required, an external debugger will continue to work with the84following caveats.8586- 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``.9394 .. code-block:: python9596 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 lines
6# pip-compile-multi7#8build==0.10.09 # via -r requirements/build.in10packaging==23.010packaging==23.111 # via build12pyproject-hooks==1.0.013 # via build
modified:requirements/dev.txt+1 added-1 removed
48 unmodified lines
49pyyaml==6.050 # via pre-commit51toposort==1.1052 # via pip-compile-multi53tox==4.4.1153tox==4.4.1254 # via -r requirements/dev.in55virtualenv==20.21.056 # via57 # pre-commit
7 unmodified lines
modified:requirements/docs.txt+1 added-1 removed
23 unmodified lines
24jinja2==3.1.225 # via sphinx26markupsafe==2.1.227 # via jinja228packaging==23.028packaging==23.129 # via30 # pallets-sphinx-themes31 # sphinx32pallets-sphinx-themes==2.0.3
36 unmodified lines
modified:requirements/tests-pallets-min.in+2 added-2 removed
1Werkzeug==2.0.01Werkzeug==2.2.22Jinja2==3.0.03MarkupSafe==2.0.03MarkupSafe==2.1.14itsdangerous==2.0.05click==8.0.06blinker==1.6.2
modified: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 lines
12itsdangerous==2.0.013 # via -r requirements/tests-pallets-min.in14jinja2==3.0.015 # via -r requirements/tests-pallets-min.in16markupsafe==2.0.016markupsafe==2.1.117 # via18 # -r requirements/tests-pallets-min.in19 # jinja220 # werkzeug20werkzeug==2.0.021werkzeug==2.2.222 # via -r requirements/tests-pallets-min.in
modified:requirements/tests.txt+2 added-2 removed
7 unmodified lines
8asgiref==3.6.09 # via -r requirements/tests.in10iniconfig==2.0.011 # via pytest12packaging==23.012packaging==23.113 # via pytest14pluggy==1.0.015 # via pytest16pytest==7.3.016pytest==7.3.117 # via -r requirements/tests.in18python-dotenv==1.0.0 ; python_version >= "3.8"19 # via -r requirements/tests.in
modified:requirements/typing.txt+1 added-1 removed
5 unmodified lines
6# pip-compile-multi7#8cffi==1.15.19 # via cryptography10cryptography==40.0.110cryptography==40.0.211 # via -r requirements/typing.in12mypy==1.2.013 # via -r requirements/typing.in14mypy-extensions==1.0.0
11 unmodified lines
modified:tox.ini+6 added
11 unmodified lines
12[testenv]13package = wheel14wheel_build_env = .pkg15envtmpdir = {toxworkdir}/tmp/{envname}16constrain_package_deps = true17use_frozen_constraints = true18deps =19 -r requirements/tests.txt20 min: -r requirements/tests-pallets-min.txt21 dev: https://github.com/pallets/werkzeug/archive/refs/heads/main.tar.gz
13 unmodified lines
3536[testenv:typing]37package = wheel38wheel_build_env = .pkg39constrain_package_deps = true40use_frozen_constraints = true41deps = -r requirements/typing.txt42commands = mypy4344[testenv:docs]45package = wheel46wheel_build_env = .pkg47constrain_package_deps = true48use_frozen_constraints = true49deps = -r requirements/docs.txt50commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html