setup.py 3.3 KB

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