setup.py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. readme = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
  14. setup(name='Mako',
  15. version=VERSION,
  16. description="A super-fast templating language that borrows the \
  17. best ideas from the existing templating languages.",
  18. long_description=readme,
  19. classifiers=[
  20. 'Development Status :: 5 - Production/Stable',
  21. 'Environment :: Web Environment',
  22. 'Intended Audience :: Developers',
  23. 'Programming Language :: Python',
  24. 'Programming Language :: Python :: 3',
  25. "Programming Language :: Python :: Implementation :: CPython",
  26. "Programming Language :: Python :: Implementation :: PyPy",
  27. 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
  28. ],
  29. keywords='templates',
  30. author='Mike Bayer',
  31. author_email='mike@zzzcomputing.com',
  32. url='http://www.makotemplates.org/',
  33. license='MIT',
  34. packages=find_packages('.', exclude=['examples*', 'test*']),
  35. scripts=['scripts/mako-render'],
  36. tests_require = ['nose >= 0.11'],
  37. test_suite = "nose.collector",
  38. zip_safe=False,
  39. install_requires=[
  40. 'MarkupSafe>=0.9.2',
  41. ],
  42. extras_require = {'beaker':['Beaker>=1.1']},
  43. entry_points="""
  44. [python.templating.engines]
  45. mako = mako.ext.turbogears:TGPlugin
  46. [pygments.lexers]
  47. mako = mako.ext.pygmentplugin:MakoLexer
  48. html+mako = mako.ext.pygmentplugin:MakoHtmlLexer
  49. xml+mako = mako.ext.pygmentplugin:MakoXmlLexer
  50. js+mako = mako.ext.pygmentplugin:MakoJavascriptLexer
  51. css+mako = mako.ext.pygmentplugin:MakoCssLexer
  52. [babel.extractors]
  53. mako = mako.ext.babelplugin:extract
  54. """,
  55. **extra
  56. )