setup.py 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. ##############################################################################
  2. #
  3. # Copyright (c) 2006-2010 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 urllib
  15. import urllib2
  16. if not hasattr(urllib2, 'splituser'):
  17. # setuptools wants to import this from urllib2 but it's not
  18. # in there in Python 2.3.3, so we just alias it.
  19. urllib2.splituser = urllib.splituser
  20. import os
  21. import sys
  22. if sys.version_info[:2] < (2, 3):
  23. msg = ("supervisor requires Python 2.3 or better, you are attempting to "
  24. "install it using version %s. Please install with a "
  25. "supported version" % sys.version)
  26. sys.stderr.write(msg)
  27. sys.exit(1)
  28. requires = ['meld3 >= 0.6.5']
  29. if sys.version_info[:2] < (2, 5):
  30. # for meld3 (it's a distutils package)
  31. requires.append('elementtree')
  32. from setuptools import setup, find_packages
  33. here = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
  34. DESC = """\
  35. Supervisor is a client/server system that allows its users to
  36. control a number of processes on UNIX-like operating systems. """
  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, 'src/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= DESC,
  56. classifiers = CLASSIFIERS,
  57. author = "Chris McDonough",
  58. author_email = "chrism@plope.com",
  59. maintainer = "Chris McDonough",
  60. maintainer_email = "chrism@plope.com",
  61. package_dir = {'':'src'},
  62. packages = find_packages(os.path.join(here, 'src')),
  63. # put data files in egg 'doc' dir
  64. data_files=[ ('doc', [
  65. 'README.txt',
  66. 'CHANGES.txt',
  67. 'TODO.txt',
  68. 'LICENSES.txt',
  69. 'COPYRIGHT.txt'
  70. ]
  71. )],
  72. install_requires = requires,
  73. extras_require = {'iterparse':['cElementTree >= 1.0.2']},
  74. tests_require = requires + ['mock >= 0.5.0'],
  75. include_package_data = True,
  76. zip_safe = False,
  77. namespace_packages = ['supervisor'],
  78. test_suite = "supervisor.tests",
  79. entry_points = {
  80. 'supervisor_rpc':['main = supervisor.rpcinterface:make_main_rpcinterface'],
  81. 'console_scripts': [
  82. 'supervisord = supervisor.supervisord:main',
  83. 'supervisorctl = supervisor.supervisorctl:main',
  84. 'echo_supervisord_conf = supervisor.confecho:main',
  85. 'pidproxy = supervisor.pidproxy:main',
  86. ],
  87. },
  88. )