setup.py 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. from setuptools import setup, find_packages
  26. here = os.path.abspath(os.path.dirname(__file__))
  27. try:
  28. README = open(os.path.join(here, 'README.rst')).read()
  29. CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
  30. except:
  31. README = """\
  32. Supervisor is a client/server system that allows its users to
  33. control a number of processes on UNIX-like operating systems. """
  34. CHANGES = ''
  35. CLASSIFIERS = [
  36. 'Development Status :: 5 - Production/Stable',
  37. 'Environment :: No Input/Output (Daemon)',
  38. 'Intended Audience :: System Administrators',
  39. 'Natural Language :: English',
  40. 'Operating System :: POSIX',
  41. 'Topic :: System :: Boot',
  42. 'Topic :: System :: Monitoring',
  43. 'Topic :: System :: Systems Administration',
  44. ]
  45. version_txt = os.path.join(here, 'supervisor/version.txt')
  46. supervisor_version = open(version_txt).read().strip()
  47. dist = setup(
  48. name='supervisor',
  49. version=supervisor_version,
  50. license='BSD-derived (http://www.repoze.org/LICENSE.txt)',
  51. url='http://supervisord.org/',
  52. description="A system for controlling process state under UNIX",
  53. long_description=README + '\n\n' + CHANGES,
  54. classifiers=CLASSIFIERS,
  55. author="Chris McDonough",
  56. author_email="chrism@plope.com",
  57. maintainer="Chris McDonough",
  58. maintainer_email="chrism@plope.com",
  59. packages=find_packages(),
  60. install_requires=requires,
  61. extras_require={'iterparse':['cElementTree >= 1.0.2']},
  62. tests_require=tests_require,
  63. include_package_data=True,
  64. zip_safe=False,
  65. test_suite="supervisor.tests",
  66. entry_points={
  67. 'console_scripts': [
  68. 'supervisord = supervisor.supervisord:main',
  69. 'supervisorctl = supervisor.supervisorctl:main',
  70. 'echo_supervisord_conf = supervisor.confecho:main',
  71. 'pidproxy = supervisor.pidproxy:main',
  72. ],
  73. },
  74. )