setup.py 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # -*- coding: utf-8 -*-
  2. #quickstarted Options:
  3. #
  4. # sqlalchemy: True
  5. # auth: sqlalchemy
  6. # mako: True
  7. #
  8. #
  9. #This is just a work-around for a Python2.7 issue causing
  10. #interpreter crash at exit when trying to log an info message.
  11. try:
  12. import logging
  13. import multiprocessing
  14. except:
  15. pass
  16. import sys
  17. py_version = sys.version_info[:2]
  18. try:
  19. from setuptools import setup, find_packages
  20. except ImportError:
  21. from ez_setup import use_setuptools
  22. use_setuptools()
  23. from setuptools import setup, find_packages
  24. testpkgs=['WebTest >= 1.2.3',
  25. 'nose',
  26. 'coverage',
  27. 'gearbox'
  28. ]
  29. install_requires=[
  30. "TurboGears2 >= 2.3.1",
  31. "Genshi",
  32. "Mako",
  33. "zope.sqlalchemy >= 0.4",
  34. "sqlalchemy",
  35. "alembic",
  36. "repoze.who",
  37. ]
  38. setup(
  39. name='pod',
  40. version='0.1',
  41. description='Pod is collaborative software designed to allow people to work on and share various data and document types.',
  42. author='The POD team',
  43. author_email='damien.accorsi@free.fr',
  44. url='https://bitbucket.org/lebouquetin/pod',
  45. packages=find_packages(exclude=['ez_setup']),
  46. install_requires=install_requires,
  47. include_package_data=True,
  48. test_suite='nose.collector',
  49. tests_require=testpkgs,
  50. package_data={'pod': ['i18n/*/LC_MESSAGES/*.mo',
  51. 'templates/*/*',
  52. 'public/*/*']},
  53. message_extractors={'pod': [
  54. ('**.py', 'python', None),
  55. ('templates/**.mak', 'mako', {'input_encoding': 'utf-8'}),
  56. ('public/**', 'ignore', None)]},
  57. entry_points={
  58. 'paste.app_factory': [
  59. 'main = pod.config.middleware:make_app'
  60. ],
  61. 'gearbox.plugins': [
  62. 'turbogears-devtools = tg.devtools'
  63. ]
  64. },
  65. dependency_links=[
  66. "http://tg.gy/230"
  67. ],
  68. zip_safe=False
  69. )