setup.py 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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):
  17. msg = ("Supervisor requires Python 2.5 or later. You are using version %s. "
  18. "Please install using a supported version." % sys.version)
  19. sys.stderr.write(msg)
  20. sys.exit(1)
  21. requires = ['meld3 >= 0.6.5']
  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 = "Mike Naberezny",
  58. maintainer_email = "mike@naberezny.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. )