setup.py 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ##############################################################################
  2. #
  3. # Copyright (c) 2006-2013 Agendaless Consulting and Contributors.
  4. # All Rights Reserved.
  5. #
  6. # This software is subject to the provisions of the BSD-like license at
  7. # http://www.repoze.org/LICENSE.txt. A copy of the license should accompany
  8. # this distribution. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL
  9. # EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO,
  10. # THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND
  11. # FITNESS FOR A PARTICULAR PURPOSE
  12. #
  13. ##############################################################################
  14. import os
  15. import sys
  16. py_version = sys.version_info[:2]
  17. if py_version < (2, 6):
  18. raise RuntimeError('On Python 2, Supervisor requires Python 2.6 or later')
  19. elif (3, 0) < py_version < (3, 2):
  20. raise RuntimeError('On Python 3, Supervisor requires Python 3.2 or later')
  21. requires = ['meld3 >= 1.0.0']
  22. tests_require = []
  23. if sys.version_info[:2] < (3, 3):
  24. tests_require.append('mock')
  25. testing_extras = tests_require + [
  26. 'nose',
  27. 'coverage',
  28. ]
  29. from setuptools import setup, find_packages
  30. here = os.path.abspath(os.path.dirname(__file__))
  31. try:
  32. README = open(os.path.join(here, 'README.rst')).read()
  33. CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
  34. except:
  35. README = """\
  36. Supervisor is a client/server system that allows its users to
  37. control a number of processes on UNIX-like operating systems. """
  38. CHANGES = ''
  39. CLASSIFIERS = [
  40. 'Development Status :: 5 - Production/Stable',
  41. 'Environment :: No Input/Output (Daemon)',
  42. 'Intended Audience :: System Administrators',
  43. 'Natural Language :: English',
  44. 'Operating System :: POSIX',
  45. 'Topic :: System :: Boot',
  46. 'Topic :: System :: Monitoring',
  47. 'Topic :: System :: Systems Administration',
  48. ]
  49. version_txt = os.path.join(here, 'supervisor/version.txt')
  50. supervisor_version = open(version_txt).read().strip()
  51. dist = setup(
  52. name='supervisor',
  53. version=supervisor_version,
  54. license='BSD-derived (http://www.repoze.org/LICENSE.txt)',
  55. url='http://supervisord.org/',
  56. description="A system for controlling process state under UNIX",
  57. long_description=README + '\n\n' + CHANGES,
  58. classifiers=CLASSIFIERS,
  59. author="Chris McDonough",
  60. author_email="chrism@plope.com",
  61. maintainer="Chris McDonough",
  62. maintainer_email="chrism@plope.com",
  63. packages=find_packages(),
  64. install_requires=requires,
  65. extras_require={
  66. 'iterparse':['cElementTree >= 1.0.2'],
  67. 'testing':testing_extras,
  68. },
  69. tests_require=tests_require,
  70. include_package_data=True,
  71. zip_safe=False,
  72. test_suite="supervisor.tests",
  73. entry_points={
  74. 'console_scripts': [
  75. 'supervisord = supervisor.supervisord:main',
  76. 'supervisorctl = supervisor.supervisorctl:main',
  77. 'echo_supervisord_conf = supervisor.confecho:main',
  78. 'pidproxy = supervisor.pidproxy:main',
  79. ],
  80. },
  81. )