setup.py 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #!/usr/bin/env python
  2. # Copyright (c) 2008, Donovan Preston
  3. #
  4. # Permission is hereby granted, free of charge, to any person obtaining a copy
  5. # of this software and associated documentation files (the "Software"), to deal
  6. # in the Software without restriction, including without limitation the rights
  7. # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. # copies of the Software, and to permit persons to whom the Software is
  9. # furnished to do so, subject to the following conditions:
  10. # The above copyright notice and this permission notice shall be included in
  11. # all copies or substantial portions of the Software.
  12. #
  13. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19. # THE SOFTWARE.
  20. import sys
  21. # Insert src/ into our path so we can pull the version and include it
  22. sys.path.insert(0, 'src')
  23. from spawning import __version__
  24. from os import path
  25. from setuptools import find_packages, setup
  26. install_requires = ['eventlet >= 0.9.12',]
  27. try:
  28. import json
  29. except ImportError:
  30. install_requires.append('simplejson')
  31. setup(
  32. name='Spawning',
  33. description='Spawning is a wsgi server which supports multiple processes, multiple threads, green threads, non-blocking HTTP io, and automatic graceful upgrading of code.',
  34. long_description=file(
  35. path.join(
  36. path.dirname(__file__),
  37. 'README.rst'
  38. )
  39. ).read(),
  40. author='Donovan Preston',
  41. author_email='dsposx@mac.com',
  42. maintainer='R. Tyler Croy',
  43. maintainer_email='tyler@monkeypox.org',
  44. include_package_data = True,
  45. packages = find_packages('src'),
  46. package_dir = {'': 'src'},
  47. version=__version__,
  48. install_requires=install_requires,
  49. entry_points={
  50. 'console_scripts': [],
  51. 'paste.server_factory': [
  52. 'main=spawning.paste_factory:server_factory'
  53. ]
  54. },
  55. classifiers=[
  56. "License :: OSI Approved :: MIT License",
  57. "Programming Language :: Python",
  58. "Operating System :: MacOS :: MacOS X",
  59. "Operating System :: POSIX",
  60. "Topic :: Internet",
  61. "Topic :: Software Development :: Libraries :: Python Modules",
  62. "Intended Audience :: Developers",
  63. "Development Status :: 4 - Beta"
  64. ]
  65. )