setup.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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
  10. from setuptools.command.install import install
  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
  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/ask/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. )