setup.py 3.0 KB

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