diff options
| author | Tres Seaver <tseaver@palladion.com> | 2024-02-07 12:24:11 -0500 |
|---|---|---|
| committer | Tres Seaver <tseaver@palladion.com> | 2024-02-07 12:24:11 -0500 |
| commit | 94d5ce60c783eed483d2fff49a6470b066430bfb (patch) | |
| tree | ac81f7577d873d1f667c34148cb6764865290720 /docs/tutorials/wiki/definingviews.rst | |
| parent | 13909fa1c603028109039e48af096ac4676a0010 (diff) | |
| download | pyramid-94d5ce60c783eed483d2fff49a6470b066430bfb.tar.gz pyramid-94d5ce60c783eed483d2fff49a6470b066430bfb.tar.bz2 pyramid-94d5ce60c783eed483d2fff49a6470b066430bfb.zip | |
docs: update ZODB wiki tutorial to cookiecutter
- Describe 'pyproject.toml' usage (replacing 'setup.py', 'pytest.ini',
'.coveragerc').
- Document the new PyPA-blessed build process.
Diffstat (limited to 'docs/tutorials/wiki/definingviews.rst')
| -rw-r--r-- | docs/tutorials/wiki/definingviews.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/tutorials/wiki/definingviews.rst b/docs/tutorials/wiki/definingviews.rst index 02d7bde9a..41d8c13a1 100644 --- a/docs/tutorials/wiki/definingviews.rst +++ b/docs/tutorials/wiki/definingviews.rst @@ -27,19 +27,19 @@ We will define several :term:`view callable` functions, then wire them into :app See also the chapter :ref:`resources_chapter` for a complete description of resources and the chapter :ref:`traversal_chapter` for the technical details of how traversal works in Pyramid. -Declaring Dependencies in Our ``setup.py`` File -=============================================== +Declaring Dependencies in Our ``pyproject.toml`` File +===================================================== The view code in our application will depend on a package which is not a dependency of the original "tutorial" application. The original "tutorial" application was generated by the cookiecutter. It does not know about our custom application requirements. -We need to add a dependency on the ``docutils`` package to our ``tutorial`` package's ``setup.py`` file by assigning this dependency to the ``requires`` parameter in the ``setup()`` function. +We need to add a dependency on the ``docutils`` package to our ``tutorial`` package's ``pyproject.toml`` file by assigning this dependency to the ``requires`` parameter in the ``setup()`` function. -Open ``setup.py`` and edit it to look like the following: +Open ``pyproject.toml`` and edit it to look like the following: -.. literalinclude:: src/views/setup.py - :lines: 11-29 +.. literalinclude:: src/views/pyproject.toml + :lines: 20-32 :lineno-match: :emphasize-lines: 2 :language: python @@ -54,7 +54,7 @@ Running ``pip install -e .`` Since a new software dependency was added, you need to run ``pip install -e .`` again inside the root of the ``tutorial`` package to obtain and register the newly added dependency distribution. -Make sure your current working directory is the root of the project (the directory in which ``setup.py`` lives) and execute the following command. +Make sure your current working directory is the root of the project (the directory in which ``pyproject.toml`` lives) and execute the following command. On Unix: |
