From db638cb873d49b2796457dcc7d0cb2b4e421fbb6 Mon Sep 17 00:00:00 2001 From: Patricio Paez Date: Wed, 30 Mar 2011 16:32:01 -0600 Subject: Move the Declaring Dependencies topic to the Defining Views section --- docs/tutorials/wiki/definingviews.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs/tutorials/wiki/definingviews.rst') diff --git a/docs/tutorials/wiki/definingviews.rst b/docs/tutorials/wiki/definingviews.rst index 31900233c..0d001db25 100644 --- a/docs/tutorials/wiki/definingviews.rst +++ b/docs/tutorials/wiki/definingviews.rst @@ -42,6 +42,22 @@ The source code for this tutorial stage can be browsed via `http://github.com/Pylons/pyramid/tree/master/docs/tutorials/wiki/src/views/ `_. +Declaring Dependencies in Our ``setup.py`` File +----------------------------------------------- + +Our application now depends on packages which are not dependencies of the +original "tutorial" application as it was generated by the ``paster create`` +command. We'll add these dependencies to our ``tutorial`` package's +``setup.py`` file by assigning these dependencies to both the +``install_requires`` and the ``tests_require`` parameters to the ``setup`` +function. In particular, we require the ``docutils`` package. + +Our resulting ``setup.py`` should look like so: + +.. literalinclude:: src/models/setup.py + :linenos: + :language: python + Adding View Functions ===================== -- cgit v1.2.3