setup.py 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. if sys.version_info[:2] < (2, 5) or sys.version_info[0] > 2:
  17. msg = ("Supervisor requires Python 2.5 or later but does not work on "
  18. "any version of Python 3. You are using version %s. Please "
  19. "install using a supported version." % sys.version)
  20. sys.stderr.write(msg)
  21. sys.exit(1)
  22. requires = ['setuptools', 'meld3 >= 0.6.5']
  23. if sys.version_info[:2] < (2, 5):
  24. # for meld3 (it's a distutils package)
  25. requires.append('elementtree')
  26. from setuptools import setup, find_packages
  27. here = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
  28. try:
  29. here = os.path.abspath(os.path.dirname(__file__))
  30. README = open(os.path.join(here, 'README.rst')).read()
  31. CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
  32. except:
  33. README = """\
  34. Supervisor is a client/server system that allows its users to
  35. control a number of processes on UNIX-like operating systems. """
  36. CHANGES = ''
  37. CLASSIFIERS = [
  38. 'Development Status :: 5 - Production/Stable',
  39. 'Environment :: No Input/Output (Daemon)',
  40. 'Intended Audience :: System Administrators',
  41. 'Natural Language :: English',
  42. 'Operating System :: POSIX',
  43. 'Topic :: System :: Boot',
  44. 'Topic :: System :: Monitoring',
  45. 'Topic :: System :: Systems Administration',
  46. ]
  47. version_txt = os.path.join(here, 'supervisor/version.txt')
  48. supervisor_version = open(version_txt).read().strip()
  49. dist = setup(
  50. name = 'supervisor',
  51. version = supervisor_version,
  52. license = 'BSD-derived (http://www.repoze.org/LICENSE.txt)',
  53. url = 'http://supervisord.org/',
  54. description = "A system for controlling process state under UNIX",
  55. long_description=README + '\n\n' + CHANGES,
  56. classifiers = CLASSIFIERS,
  57. author = "Chris McDonough",
  58. author_email = "chrism@plope.com",
  59. maintainer = "Mike Naberezny",
  60. maintainer_email = "mike@naberezny.com",
  61. packages = find_packages(),
  62. install_requires = requires,
  63. extras_require = {'iterparse':['cElementTree >= 1.0.2']},
  64. tests_require = ['mock >= 0.5.0'],
  65. include_package_data = True,
  66. zip_safe = False,
  67. namespace_packages = ['supervisor'],
  68. test_suite = "supervisor.tests",
  69. entry_points = {
  70. 'console_scripts': [
  71. 'supervisord = supervisor.supervisord:main',
  72. 'supervisorctl = supervisor.supervisorctl:main',
  73. 'echo_supervisord_conf = supervisor.confecho:main',
  74. 'pidproxy = supervisor.pidproxy:main',
  75. ],
  76. },
  77. )