Merge branch '2.3.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 b1bdd97, f39c716 · Browse files · 14 files·+51 added−65 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
14 files+51 added−65 removed
- other:+51 added−65 removed
Provenance
- Commit
15a0d4a- Tree
fa25e76- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent 1
b1bdd97- Parent 2
f39c716
14 files changed+51 added−65 removed
modified:.devcontainer/on-create-command.sh+1 added-1 removed
1234566789#!/bin/bashset -e
python3 -m venv .venv. .venv/bin/activatepip install -U pip setuptools wheelpip install -U pippip install -r requirements/dev.txtpip install -e .pre-commit install --install-hooksmodified:docs/patterns/packages.rst+2 added-2 removed
52 unmodified lines53 "flask",54 ]55 56 [build-system]57- requires = ["setuptools"]58- build-backend = "setuptools.build_meta"57+ requires = ["flit_core<4"]58+ build-backend = "flit_core.buildapi"59 60 Install your application so it is importable:61 62 .. code-block:: text71 unmodified linesmodified:docs/tutorial/install.rst+4 added-23 removed
38 unmodified lines39 "flask",40 ]41 42 [build-system]43- requires = ["setuptools"]44- build-backend = "setuptools.build_meta"43+ requires = ["flit_core<4"]44+ build-backend = "flit_core.buildapi"45 46+See the official `Packaging tutorial <packaging tutorial_>`_ for more47+explanation of the files and options used.48 47-The setuptools build backend needs another file named ``MANIFEST.in`` to tell it about48-non-Python files to include.49-50-.. code-block:: none51- :caption: ``MANIFEST.in``52-53- include flaskr/schema.sql54- graft flaskr/static55- graft flaskr/templates56- global-exclude *.pyc57-58-This tells the build to copy everything in the ``static`` and ``templates`` directories,59-and the ``schema.sql`` file, but to exclude all bytecode files.60-61-See the official `Packaging tutorial <packaging tutorial_>`_ and62-`detailed guide <packaging guide_>`_ for more explanation of the files63-and options used.64-49 .. _packaging tutorial: https://packaging.python.org/tutorials/packaging-projects/66-.. _packaging guide: https://packaging.python.org/guides/distributing-packages-using-setuptools/50 51 52 Install the Project53 -------------------23 unmodified lines77 itsdangerous 0.2478 Jinja2 2.1079 MarkupSafe 1.080 pip 9.0.398- setuptools 39.0.181 Werkzeug 0.14.1100- wheel 0.30.082 83 Nothing changes from how you've been running your project so far.84 ``--app`` is still set to ``flaskr`` and ``flask run`` still runs85 the application, but you can call it from anywhere, not just the3 unmodified linesmodified:examples/celery/pyproject.toml+5 added-2 removed
5 unmodified lines6789101110111213145 unmodified linesrequires-python = ">=3.8"dependencies = ["flask>=2.2.2", "celery[redis]>=5.2.7"]
[build-system]requires = ["setuptools"]build-backend = "setuptools.build_meta"requires = ["flit_core<4"]build-backend = "flit_core.buildapi"
[tool.flit.module]name = "task_app"deleted:examples/javascript/MANIFEST.in-4 removed
1-include LICENSE.rst2-graft js_example/templates3-graft tests4-global-exclude *.pycmodified:examples/javascript/pyproject.toml+6 added-3 removed
1234566789102 unmodified lines131415161718171819202122232425263 unmodified lines[project]name = "js_example"version = "1.1.0"description = "Demonstrates making AJAX requests to Flask."readme = "README.rst"license = {text = "BSD-3-Clause"}license = {file = "LICENSE.rst"}maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]dependencies = ["flask"]
[project.urls]2 unmodified lines[project.optional-dependencies]test = ["pytest"]
[build-system]requires = ["setuptools"]build-backend = "setuptools.build_meta"requires = ["flit_core<4"]build-backend = "flit_core.buildapi"
[tool.flit.module]name = "js_example"
[tool.pytest.ini_options]testpaths = ["tests"]filterwarnings = ["error"]
3 unmodified linesdeleted:examples/tutorial/MANIFEST.in-6 removed
1-include LICENSE.rst2-include flaskr/schema.sql3-graft flaskr/static4-graft flaskr/templates5-graft tests6-global-exclude *.pycmodified:examples/tutorial/pyproject.toml+10 added-2 removed
14 unmodified lines1516171819201920212223242526272829303132333 unmodified lines14 unmodified lines[project.optional-dependencies]test = ["pytest"]
[build-system]requires = ["setuptools"]build-backend = "setuptools.build_meta"requires = ["flit_core<4"]build-backend = "flit_core.buildapi"
[tool.flit.module]name = "flaskr"
[tool.flit.sdist]include = [ "tests/",]
[tool.pytest.ini_options]testpaths = ["tests"]filterwarnings = ["error"]
3 unmodified linesmodified:requirements/typing.in-1 removed
1 mypy2 types-contextvars3 types-dataclasses4-types-setuptools4 cryptographymodified:requirements/typing.txt+1 added-3 removed
1-# SHA1:7cc3f64d4e78db89d81680ac81503d5ac35d31a91+# SHA1:6a354b832686fd3ec017455769a0270953a1e2252 #3 # This file is autogenerated by pip-compile-multi4 # To update, run:5 #12 unmodified lines18 types-contextvars==2.4.7.219 # via -r requirements/typing.in20 types-dataclasses==0.6.621 # via -r requirements/typing.in22-types-setuptools==68.0.0.023- # via -r requirements/typing.in22 typing-extensions==4.6.323 # via mypymodified:CHANGES.rst+2 added-1 removed
3 unmodified lines4 Unreleased5 6 - Python 3.12 compatibility.7 - Require Werkzeug >= 2.3.6.8+- Use ``flit_core`` instead of ``setuptools`` as build backend.9 - Refactor how an app's root and instance paths are determined. :issue:`5160`10 11 12 Version 2.3.2295 unmodified lines308 - The ``RequestContext.g`` property is deprecated. Use ``g`` directly309 or ``AppContext.g`` instead. :issue:`3898`310 - ``copy_current_request_context`` can decorate async functions.311 :pr:`4303`311-- The CLI uses ``importlib.metadata`` instead of ``setuptools`` to312+- The CLI uses ``importlib.metadata`` instead of ``pkg_resources`` to313 load command entry points. :issue:`4419`314 - Overriding ``FlaskClient.open`` will not cause an error on redirect.315 :issue:`3396`316 - Add an ``--exclude-patterns`` option to the ``flask run`` CLI1200 unmodified linesmodified:CONTRIBUTING.rst+1 added-1 removed
125 unmodified lines126 - Install the development dependencies, then install Flask in editable mode.127 128 .. code-block:: text129 130- $ python -m pip install -U pip setuptools wheel130+ $ python -m pip install -U pip131 $ pip install -r requirements/dev.txt && pip install -e .132 133 - Install the pre-commit hooks.134 104 unmodified linesdeleted:MANIFEST.in-11 removed
1-include CHANGES.rst2-include CONTRIBUTING.rst3-include tox.ini4-include requirements/*.txt5-graft artwork6-graft docs7-prune docs/_build8-graft examples9-graft tests10-include src/flask/py.typed11-global-exclude *.pycmodified:pyproject.toml+19 added-5 removed
1 [project]2 name = "Flask"3 description = "A simple framework for building complex web applications."4 readme = "README.rst"5-license = {text = "BSD-3-Clause"}5+license = {file = "LICENSE.rst"}6 maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]7 classifiers = [8 "Development Status :: 5 - Production/Stable",9 "Environment :: Web Environment",33 unmodified lines43 [project.scripts]44 flask = "flask.cli:main"45 46 [build-system]47-requires = ["setuptools"]48-build-backend = "setuptools.build_meta"47+requires = ["flit_core<4"]48+build-backend = "flit_core.buildapi"49 50-[tool.setuptools.dynamic]51-version = {attr = "flask.__version__"}50+[tool.flit.module]51+name = "flask"52 53+[tool.flit.sdist]54+include = [55+ "docs/",56+ "examples/",57+ "requirements/",58+ "tests/",59+ "CHANGES.rst",60+ "CONTRIBUTING.rst",61+ "tox.ini",62+]63+exclude = [64+ "docs/_build/",65+]66+67 [tool.pytest.ini_options]68 testpaths = ["tests"]69 filterwarnings = [70 "error",38 unmodified lines