setup.py 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. ],
  48. entry_points="""
  49. [python.templating.engines]
  50. mako = mako.ext.turbogears:TGPlugin
  51. [pygments.lexers]
  52. mako = mako.ext.pygmentplugin:MakoLexer
  53. html+mako = mako.ext.pygmentplugin:MakoHtmlLexer
  54. xml+mako = mako.ext.pygmentplugin:MakoXmlLexer
  55. js+mako = mako.ext.pygmentplugin:MakoJavascriptLexer
  56. css+mako = mako.ext.pygmentplugin:MakoCssLexer
  57. [babel.extractors]
  58. mako = mako.ext.babelplugin:extract
  59. """,
  60. )