__VERSION__ = '1.0.8'


import pyramid.tweens


def includeme(config, module_name='opbeat_pyramid'):
    """ Extensibility function for using this module with any Pyramid app. """

    config.scan(module_name)

    config.add_tween(
        'opbeat_pyramid.subscribers.opbeat_tween_factory',
        over=[
            pyramid.tweens.EXCVIEW,
            # if pyramid_tm is in the pipeline we want to track errors caused
            # by commit/abort so we try to place ourselves over it
            'pyramid_tm.tm_tween_factory',
        ]
    )

__VERSION__ = '1.0.8'


def includeme(config, module_name='opbeat_pyramid'):
    """ Extensibility function for using this module with any Pyramid app. """

    config.scan(module_name)

    # TODO: Is there a decorator for this?
    config.add_tween(
        'opbeat_pyramid.subscribers.opbeat_tween_factory',
        over=[
            'pyramid.tweens.EXCVIEW',
            'pyramid_tm.tm_tween_factory',
        ]
    )

Use strings to allow setup.py to import this.
Use strings to allow setup.py to import this.

This should never import depencencies, or else setup.py will fail when
getting the version because the dependencies don't exist yet.
