setup.py 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. from setuptools import setup, find_packages
  2. import os
  3. import re
  4. import sys
  5. extra = {}
  6. if sys.version_info >= (3, 0):
  7. extra.update(
  8. use_2to3=True,
  9. )
  10. v = open(os.path.join(os.path.dirname(__file__), 'mako', '__init__.py'))
  11. VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
  12. v.close()
  13. setup(name='Mako',
  14. version=VERSION,
  15. description="A super-fast templating language that borrows the \
  16. best ideas from the existing templating languages.",
  17. long_description="""\
  18. Mako is a template library written in Python. It provides a familiar, non-XML
  19. syntax which compiles into Python modules for maximum performance. Mako's
  20. syntax and API borrows from the best ideas of many others, including Django
  21. templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
  22. Python (i.e. Python Server Page) language, which refines the familiar ideas
  23. of componentized layout and inheritance to produce one of the most
  24. straightforward and flexible models available, while also maintaining close
  25. ties to Python calling and scoping semantics.
  26. """,
  27. classifiers=[
  28. 'Development Status :: 5 - Production/Stable',
  29. 'Environment :: Web Environment',
  30. 'Intended Audience :: Developers',
  31. 'Programming Language :: Python',
  32. 'Programming Language :: Python :: 3',
  33. 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
  34. ],
  35. keywords='wsgi myghty mako',
  36. author='Mike Bayer',
  37. author_email='mike@zzzcomputing.com',
  38. url='http://www.makotemplates.org/',
  39. license='MIT',
  40. packages=find_packages('.', exclude=['examples*', 'test*']),
  41. scripts=['scripts/mako-render'],
  42. tests_require = ['nose >= 0.11'],
  43. test_suite = "nose.collector",
  44. zip_safe=False,
  45. install_requires=[
  46. 'Beaker>=1.1',
  47. 'MarkupSafe>=0.9.2',
  48. ],
  49. entry_points="""
  50. [python.templating.engines]
  51. mako = mako.ext.turbogears:TGPlugin
  52. [pygments.lexers]
  53. mako = mako.ext.pygmentplugin:MakoLexer
  54. html+mako = mako.ext.pygmentplugin:MakoHtmlLexer
  55. xml+mako = mako.ext.pygmentplugin:MakoXmlLexer
  56. js+mako = mako.ext.pygmentplugin:MakoJavascriptLexer
  57. css+mako = mako.ext.pygmentplugin:MakoCssLexer
  58. [babel.extractors]
  59. mako = mako.ext.babelplugin:extract
  60. """,
  61. )