setup.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. try:
  4. from setuptools import setup
  5. from setuptools.command.install import install
  6. except ImportError:
  7. from ez_setup import use_setuptools
  8. use_setuptools()
  9. from setuptools import setup # noqa
  10. from setuptools.command.install import install # noqa
  11. import os
  12. import sys
  13. sys.path.insert(0, os.getcwd())
  14. sys.path.insert(0, os.path.join(os.getcwd(), os.pardir))
  15. import suite # noqa
  16. class no_install(install):
  17. def run(self, *args, **kwargs):
  18. import sys
  19. sys.stderr.write("""
  20. ------------------------------------------------------
  21. The Celery functional test suite cannot be installed.
  22. ------------------------------------------------------
  23. But you can execute the tests by running the command:
  24. $ python setup.py test
  25. """)
  26. setup(
  27. name='celery-funtests',
  28. version='DEV',
  29. description='Functional test suite for Celery',
  30. author='Ask Solem',
  31. author_email='ask@celeryproject.org',
  32. url='http://github.com/celery/celery',
  33. platforms=['any'],
  34. packages=[],
  35. data_files=[],
  36. zip_safe=False,
  37. cmdclass={'install': no_install},
  38. test_suite='nose.collector',
  39. tests_require=[
  40. 'unittest2>=0.4.0',
  41. 'simplejson',
  42. 'nose',
  43. 'redis',
  44. 'pymongo',
  45. ],
  46. classifiers=[
  47. 'Operating System :: OS Independent',
  48. 'Programming Language :: Python',
  49. 'License :: OSI Approved :: BSD License',
  50. 'Intended Audience :: Developers',
  51. ],
  52. long_description='Do not install this package',
  53. )