setup.py

19 months ago

author
mitsuhiko
date
Tue Jul 06 12:00:33 2010 +0200
branch
trunk
changeset 822
978e52f40de3
parent 816
ef12ade53675
child 826
e9502cf0c096
permissions
-rw-r--r--

Added anothe test

     1 # -*- coding: utf-8 -*-
     2 """
     3 Jinja2
     4 ~~~~~~
     6 Jinja2 is a template engine written in pure Python.  It provides a
     7 `Django`_ inspired non-XML syntax but supports inline expressions and
     8 an optional `sandboxed`_ environment.
    10 Nutshell
    11 --------
    13 Here a small example of a Jinja template::
    15     {% 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 %}
    25 Philosophy
    26 ----------
    28 Application logic is for the controller but don't try to make the life
    29 for the template designer too hard by giving him too few functionality.
    31 For more informations visit the new `Jinja2 webpage`_ and `documentation`_.
    33 The `Jinja2 tip`_ is installable via `easy_install` with ``easy_install
    34 Jinja2==dev``.
    36 .. _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-dev
    41 """
    42 import os
    43 import sys
    45 from setuptools import setup, Extension, Feature
    47 # tell distribute to use 2to3 with our own fixers.
    48 extra = {}
    49 if sys.version_info >= (3, 0):
    50     extra.update(
    51         use_2to3=True,
    52         use_2to3_fixers=['custom_fixers']
    53     )
    56 setup(
    57     name='Jinja2',
    58     version='2.5.1',
    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 eggs
    67     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     **extra
    97 )

mercurial