summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/definingviews.rst
diff options
context:
space:
mode:
authorPatricio Paez <pp@pp.com.mx>2011-03-30 16:32:01 -0600
committerPatricio Paez <pp@pp.com.mx>2011-03-30 16:47:51 -0600
commitdb638cb873d49b2796457dcc7d0cb2b4e421fbb6 (patch)
tree399ab23002f58947ee0e8ea6a57ab20de6759898 /docs/tutorials/wiki/definingviews.rst
parentd0c2f35597d03aebf7226aaa5bd1efc92df199f4 (diff)
downloadpyramid-db638cb873d49b2796457dcc7d0cb2b4e421fbb6.tar.gz
pyramid-db638cb873d49b2796457dcc7d0cb2b4e421fbb6.tar.bz2
pyramid-db638cb873d49b2796457dcc7d0cb2b4e421fbb6.zip
Move the Declaring Dependencies topic to the Defining Views section
Diffstat (limited to 'docs/tutorials/wiki/definingviews.rst')
-rw-r--r--docs/tutorials/wiki/definingviews.rst16
1 files changed, 16 insertions, 0 deletions
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/
<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
=====================