setup.py 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Copyright (C) 2007 Edgewall Software
  5. # All rights reserved.
  6. #
  7. # This software is licensed as described in the file COPYING, which
  8. # you should have received as part of this distribution. The terms
  9. # are also available at http://babel.edgewall.org/wiki/License.
  10. #
  11. # This software consists of voluntary contributions made by many
  12. # individuals. For the exact contribution history, see the revision
  13. # history and logs, available at http://babel.edgewall.org/log/.
  14. from distutils.cmd import Command
  15. import doctest
  16. from glob import glob
  17. import os
  18. try:
  19. from setuptools import setup
  20. except ImportError:
  21. from distutils.core import setup
  22. import sys
  23. sys.path.append(os.path.join('doc', 'common'))
  24. try:
  25. from doctools import build_doc, test_doc
  26. except ImportError:
  27. build_doc = test_doc = None
  28. setup(
  29. name = 'Babel',
  30. version = '0.9.6',
  31. description = 'Internationalization utilities',
  32. long_description = \
  33. """A collection of tools for internationalizing Python applications.""",
  34. author = 'Edgewall Software',
  35. author_email = 'info@edgewall.org',
  36. license = 'BSD',
  37. url = 'http://babel.edgewall.org/',
  38. download_url = 'http://babel.edgewall.org/wiki/Download',
  39. zip_safe = False,
  40. classifiers = [
  41. 'Development Status :: 4 - Beta',
  42. 'Environment :: Web Environment',
  43. 'Intended Audience :: Developers',
  44. 'License :: OSI Approved :: BSD License',
  45. 'Operating System :: OS Independent',
  46. 'Programming Language :: Python',
  47. 'Topic :: Software Development :: Libraries :: Python Modules',
  48. ],
  49. packages = ['babel', 'babel.messages'],
  50. package_data = {'babel': ['global.dat', 'localedata/*.dat']},
  51. test_suite = 'babel.tests.suite',
  52. tests_require = ['pytz'],
  53. entry_points = """
  54. [console_scripts]
  55. pybabel = babel.messages.frontend:main
  56. [distutils.commands]
  57. compile_catalog = babel.messages.frontend:compile_catalog
  58. extract_messages = babel.messages.frontend:extract_messages
  59. init_catalog = babel.messages.frontend:init_catalog
  60. update_catalog = babel.messages.frontend:update_catalog
  61. [distutils.setup_keywords]
  62. message_extractors = babel.messages.frontend:check_message_extractors
  63. [babel.checkers]
  64. num_plurals = babel.messages.checkers:num_plurals
  65. python_format = babel.messages.checkers:python_format
  66. [babel.extractors]
  67. ignore = babel.messages.extract:extract_nothing
  68. python = babel.messages.extract:extract_python
  69. javascript = babel.messages.extract:extract_javascript
  70. """,
  71. cmdclass = {'build_doc': build_doc, 'test_doc': test_doc}
  72. )