setup.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. #!/usr/bin/env python
  2. """
  3. Sentry
  4. ======
  5. Sentry is a realtime event logging and aggregation platform. It specializes
  6. in monitoring errors and extracting all the information needed to do a proper
  7. post-mortem without any of the hassle of the standard user feedback loop.
  8. Sentry is a Server
  9. ------------------
  10. The Sentry package, at its core, is just a simple server and web UI. It will
  11. handle authentication clients (such as `Raven <https://github.com/getsentry/raven-python>`_)
  12. and all of the logic behind storage and aggregation.
  13. That said, Sentry is not limited to Python. The primary implementation is in
  14. Python, but it contains a full API for sending events from any language, in
  15. any application.
  16. :copyright: (c) 2011-2012 by the Sentry Team, see AUTHORS for more details.
  17. :license: BSD, see LICENSE for more details.
  18. """
  19. from setuptools import setup, find_packages
  20. # Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error
  21. # in multiprocessing/util.py _exit_function when running `python
  22. # setup.py test` (see
  23. # http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
  24. for m in ('multiprocessing', 'billiard'):
  25. try:
  26. __import__(m)
  27. except ImportError:
  28. pass
  29. dev_requires = [
  30. 'flake8>=1.7.0,<2.0',
  31. 'pytest-cov>=1.4',
  32. ]
  33. tests_require = [
  34. 'exam>=0.5.1',
  35. 'eventlet',
  36. 'pytest',
  37. 'pytest-django',
  38. 'nydus',
  39. 'mock>=0.8.0',
  40. 'mock-django>=0.6.4',
  41. 'redis',
  42. 'unittest2',
  43. ]
  44. install_requires = [
  45. 'cssutils>=0.9.9,<0.9.10',
  46. 'BeautifulSoup>=3.2.1,<3.3.0',
  47. 'django-celery>=3.0.11,<3.1.0',
  48. 'celery>=3.0.15,<3.1.0',
  49. 'django-crispy-forms>=1.2.3,<1.3.0',
  50. 'Django>=1.4.5,<1.5',
  51. 'django-indexer>=0.3.0,<0.4.0',
  52. 'django-paging>=0.2.4,<0.3.0',
  53. 'django-picklefield>=0.3.0,<0.4.0',
  54. 'django-static-compiler>=0.3.0,<0.4.0',
  55. 'django-templatetag-sugar>=0.1.0,<0.2.0',
  56. 'gunicorn>=0.17.2,<0.18.0',
  57. 'logan>=0.5.5,<0.6.0',
  58. 'nydus>=0.10.0,<0.11.0',
  59. 'Pygments>=1.6.0,<1.7.0',
  60. 'pynliner>=0.4.0,<0.5.0',
  61. 'python-dateutil>=1.5.0,<2.0.0',
  62. 'raven>=3.1.17',
  63. 'redis>2.7.0,<2.8.0',
  64. 'simplejson>=3.1.0,<3.2.0',
  65. 'South>=0.7.6,<0.8.0',
  66. 'httpagentparser>=1.2.1,<1.3.0',
  67. 'django-social-auth>=0.7.1,<0.8.0',
  68. 'django-social-auth-trello>=1.0.3,<1.1.0',
  69. 'setproctitle>=1.1.7,<1.2.0',
  70. ]
  71. postgres_requires = [
  72. 'psycopg2>=2.4.0,<2.5.0',
  73. ]
  74. mysql_requires = [
  75. 'MySQL-python>=1.2.0,<1.3.0',
  76. ]
  77. setup(
  78. name='sentry',
  79. version='5.5.0-DEV',
  80. author='David Cramer',
  81. author_email='dcramer@gmail.com',
  82. url='http://www.getsentry.com',
  83. description='A realtime logging and aggregation server.',
  84. long_description=open('README.rst').read(),
  85. package_dir={'': 'src'},
  86. packages=find_packages('src'),
  87. zip_safe=False,
  88. install_requires=install_requires,
  89. extras_require={
  90. 'tests': tests_require,
  91. 'dev': dev_requires,
  92. 'postgres': install_requires + postgres_requires,
  93. 'mysql': install_requires + mysql_requires,
  94. },
  95. test_suite='runtests.runtests',
  96. license='BSD',
  97. include_package_data=True,
  98. entry_points={
  99. 'console_scripts': [
  100. 'sentry = sentry.utils.runner:main',
  101. ],
  102. },
  103. classifiers=[
  104. 'Framework :: Django',
  105. 'Intended Audience :: Developers',
  106. 'Intended Audience :: System Administrators',
  107. 'Operating System :: OS Independent',
  108. 'Topic :: Software Development'
  109. ],
  110. )