diff options
| author | Michael Merickel <michael@merickel.org> | 2013-09-04 22:47:37 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2013-09-04 23:13:51 -0500 |
| commit | ce138c89d9f9aff3f7d949b7f1b909c273e7f0ac (patch) | |
| tree | de3db03bf0dfc12dd4a2de79ec11d4a654a8be76 | |
| parent | 9ed074e28c256842b902dc7ded8edb1f696e225b (diff) | |
| download | pyramid-ce138c89d9f9aff3f7d949b7f1b909c273e7f0ac.tar.gz pyramid-ce138c89d9f9aff3f7d949b7f1b909c273e7f0ac.tar.bz2 pyramid-ce138c89d9f9aff3f7d949b7f1b909c273e7f0ac.zip | |
add install_requires example as well
| -rw-r--r-- | CHANGES.txt | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 46e6f7c8b..d8d606530 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -8,10 +8,20 @@ Major Backward Incompatibilities re-add support for these renderers into existing projects there are 3 steps: - Add `pyramid_mako` and/or `pyramid_chameleon` as dependencies by - adding them to the `install_requires` section of the package's `setup.py`. + adding them to the `install_requires` section of the package's `setup.py`:: + + setup( + #... + install_requires=[ + 'pyramid_mako', # new dependency + 'pyramid_chameleon', # new dependency + 'pyramid', + #... + ], + ) - Update instances of the ``pyramid.config.Configurator`` to include the - required addons: + required addons:: config.include('pyramid_chameleon') config.include('pyramid_mako') @@ -20,7 +30,7 @@ Major Backward Incompatibilities ``pyramid.renderers.render_to_response()`` with either Mako or Chameleon templates then the ``pyramid.config.Configurator`` instance at the root of the unit test should be also be updated to include the addons, as shown - above. For example: + above. For example:: config = pyramid.testing.setUp() config.include('pyramid_mako') |
