switch docs to flit
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 · parent 46b3288 · Browse files · 7 files·+10 added−32 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
7 files+10 added−32 removed
- other:+10 added−32 removed
Provenance
- Commit
6b9acd5- Tree
514b2dd- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
46b3288
7 files changed+10 added−32 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: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+1 added-1 removed
307 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`312-- 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 lines