Skip to content
Browse files

add install_requires example as well

  • Loading branch information...
1 parent 9ed074e commit ce138c89d9f9aff3f7d949b7f1b909c273e7f0ac @mmerickel mmerickel committed
Showing with 13 additions and 3 deletions.
  1. +13 −3 CHANGES.txt
View
16 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')

0 comments on commit ce138c8

Please sign in to comment.
Something went wrong with that request. Please try again.