/examples/plugin/setup.py

https://bitbucket.org/jpellerin/nose/ · Python · 27 lines · 20 code · 3 blank · 4 comment · 2 complexity · 84d698c25fb44e66d6d77f805c3417f2 MD5 · raw file

  1. """
  2. An example of how to create a simple nose plugin.
  3. """
  4. try:
  5. import ez_setup
  6. ez_setup.use_setuptools()
  7. except ImportError:
  8. pass
  9. from setuptools import setup
  10. setup(
  11. name='Example plugin',
  12. version='0.1',
  13. author='Jason Pellerin',
  14. author_email = 'jpellerin+nose@gmail.com',
  15. description = 'Example nose plugin',
  16. license = 'GNU LGPL',
  17. py_modules = ['plug'],
  18. entry_points = {
  19. 'nose.plugins.0.10': [
  20. 'example = plug:ExamplePlugin'
  21. ]
  22. }
  23. )