setup.py 1.6 KB

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