setup.py
This file
Path
setup.py
97 lines · 2.8 KiB · Python
Last changed by
tip iis 2.5Armin Ronacherbefore adoption2ec1d2c
History of this fileTake it
1# -*- coding: utf-8 -*-2"""3Jinja24~~~~~~56Jinja2 is a template engine written in pure Python. It provides a7`Django`_ inspired non-XML syntax but supports inline expressions and8an optional `sandboxed`_ environment.910Nutshell11--------1213Here a small example of a Jinja template::1415 {% extends 'base.html' %}16 {% block title %}Memberlist{% endblock %}17 {% block content %}18 <ul>19 {% for user in users %}20 <li><a href="{{ user.url }}">{{ user.username }}</a></li>21 {% endfor %}22 </ul>23 {% endblock %}2425Philosophy26----------2728Application logic is for the controller but don't try to make the life29for the template designer too hard by giving him too few functionality.3031For more informations visit the new `Jinja2 webpage`_ and `documentation`_.3233The `Jinja2 tip`_ is installable via `easy_install` with ``easy_install34Jinja2==dev``.3536.. _sandboxed: http://en.wikipedia.org/wiki/Sandbox_(computer_security)37.. _Django: http://www.djangoproject.com/38.. _Jinja2 webpage: http://jinja.pocoo.org/39.. _documentation: http://jinja.pocoo.org/2/documentation/40.. _Jinja2 tip: http://dev.pocoo.org/hg/jinja2-main/archive/tip.tar.gz#egg=Jinja2-dev41"""42import os43import sys4445from setuptools import setup, Extension, Feature4647# tell distribute to use 2to3 with our own fixers.48extra = {}49if sys.version_info >= (3, 0):50 extra.update(51 use_2to3=True,52 use_2to3_fixers=['custom_fixers']53 )545556setup(57 name='Jinja2',58 version='2.5',59 url='http://jinja.pocoo.org/',60 license='BSD',61 author='Armin Ronacher',62 author_email='armin.ronacher@active-4.com',63 description='A small but fast and easy to use stand-alone template '64 'engine written in pure python.',65 long_description=__doc__,66 # jinja is egg safe. But we hate eggs67 zip_safe=False,68 classifiers=[69 'Development Status :: 5 - Production/Stable',70 'Environment :: Web Environment',71 'Intended Audience :: Developers',72 'License :: OSI Approved :: BSD License',73 'Operating System :: OS Independent',74 'Programming Language :: Python',75 'Programming Language :: Python :: 3',76 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',77 'Topic :: Software Development :: Libraries :: Python Modules',78 'Topic :: Text Processing :: Markup :: HTML'79 ],80 packages=['jinja2', 'jinja2.testsuite', 'jinja2.testsuite.res'],81 features={82 'speedups': Feature("optional C speed-enhancements",83 standard=False,84 ext_modules=[85 Extension('jinja2._speedups', ['jinja2/_speedups.c'])86 ]87 )88 },89 extras_require={'i18n': ['Babel>=0.8']},90 test_suite='jinja2.testsuite.suite',91 include_package_data=True,92 entry_points="""93 [babel.extractors]94 jinja2 = jinja2.ext:babel_extract[i18n]95 """,96 **extra97)