setup.py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. keywords='celery integration tests',
  35. license='BSD',
  36. platforms=['any'],
  37. packages=[],
  38. data_files=[],
  39. zip_safe=False,
  40. cmdclass={'install': no_install},
  41. test_suite='nose.collector',
  42. tests_require=[
  43. 'unittest2>=0.4.0',
  44. 'simplejson',
  45. 'nose',
  46. 'redis',
  47. 'pymongo',
  48. ],
  49. classifiers=[
  50. 'Operating System :: OS Independent',
  51. 'Programming Language :: Python',
  52. 'License :: OSI Approved :: BSD License',
  53. 'Intended Audience :: Developers',
  54. 'Programming Language :: Python',
  55. 'Programming Language :: Python :: 2',
  56. 'Programming Language :: Python :: 2.7',
  57. 'Programming Language :: Python :: 3',
  58. 'Programming Language :: Python :: 3.4',
  59. 'Programming Language :: Python :: 3.5',
  60. 'Programming Language :: Python :: Implementation :: CPython',
  61. 'Programming Language :: Python :: Implementation :: PyPy',
  62. ],
  63. long_description=__doc__,
  64. )