PageRenderTime 58ms CodeModel.GetById 48ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/examples/plugin/setup.py

https://bitbucket.org/jpellerin/nose/
Python | 27 lines | 20 code | 3 blank | 4 comment | 0 complexity | 84d698c25fb44e66d6d77f805c3417f2 MD5 | raw file
 1"""
 2An example of how to create a simple nose plugin.
 3
 4"""
 5try:
 6    import ez_setup
 7    ez_setup.use_setuptools()
 8except ImportError:
 9    pass
10
11from setuptools import setup
12
13setup(
14    name='Example plugin',
15    version='0.1',
16    author='Jason Pellerin',
17    author_email = 'jpellerin+nose@gmail.com',
18    description = 'Example nose plugin',
19    license = 'GNU LGPL',
20    py_modules = ['plug'],
21    entry_points = {
22        'nose.plugins.0.10': [
23            'example = plug:ExamplePlugin'
24            ]
25        }
26
27    )