setup.py
This file
Path
setup.py
90 lines · 2.6 KiB · Python
Last changed by
MarkupSafe is now used for the Jinja2 speedupsArmin Ronacherbefore adoptionf9f5f26
History of this fileTake it
The walk stopped after 200 commits: lines older than 62ccd1b point at it.
Copyright switch to "The Jinja Team".Armin Ronacherbefore adoption62ccd1b
lines 1–44why, one step back1# -*- 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 sys44MarkupSafe is now used for the Jinja2 speedupsArmin Ronacherbefore adoptionf9f5f26
line 45why, one step back45from setuptools import setupCopyright switch to "The Jinja Team".Armin Ronacherbefore adoption62ccd1b
line 46why, one step back46Propably delaying release for better python 3 support. Started working onArmin Ronacherbefore adoption0faa861
lines 47–53why, one step back47# 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 )Copyright switch to "The Jinja Team".Armin Ronacherbefore adoption62ccd1b
line 54why, one step back54experimental Python 3 support.Armin Ronacherbefore adoption0319c66
line 55why, one step back55Copyright switch to "The Jinja Team".Armin Ronacherbefore adoption62ccd1b
lines 56–57why, one step back56setup(57 name='Jinja2',babel extraction can now properly extract newstyle gettext calls.Armin Ronacherbefore adoption4f77a30
line 58why, one step back58 version='2.5.1',Copyright switch to "The Jinja Team".Armin Ronacherbefore adoption62ccd1b
lines 59–65why, one step back59 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__,(codename Kong, released on September 12th 2009)Armin Ronacherbefore adoption86b5cb5
line 66why, one step back66 # jinja is egg safe. But we hate eggsCopyright switch to "The Jinja Team".Armin Ronacherbefore adoption62ccd1b
lines 67–74why, one step back67 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',Untagged and added python 3 category.Armin Ronacherbefore adoptiond9599c8
line 75why, one step back75 'Programming Language :: Python :: 3',Copyright switch to "The Jinja Team".Armin Ronacherbefore adoption62ccd1b
lines 76–79why, one step back76 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',77 'Topic :: Software Development :: Libraries :: Python Modules',78 'Topic :: Text Processing :: Markup :: HTML'79 ],MarkupSafe is now used for the Jinja2 speedupsArmin Ronacherbefore adoptionf9f5f26
lines 80–81why, one step back80 packages=['jinja2', 'jinja2.testsuite', 'jinja2.testsuite.res',81 'jinja2._markupsafe'],Copyright switch to "The Jinja Team".Armin Ronacherbefore adoption62ccd1b
line 82why, one step back82 extras_require={'i18n': ['Babel>=0.8']},Started working on unittest powered testsuite.Armin Ronacherbefore adoption7af781c
line 83why, one step back83 test_suite='jinja2.testsuite.suite',Approaching python3 compatibilityArmin Ronacherbefore adoption790b8a8
line 84why, one step back84 include_package_data=True,Copyright switch to "The Jinja Team".Armin Ronacherbefore adoption62ccd1b
lines 85–87why, one step back85 entry_points="""86 [babel.extractors]87 jinja2 = jinja2.ext:babel_extract[i18n]experimental Python 3 support.Armin Ronacherbefore adoption0319c66
line 88why, one step back88 """,Propably delaying release for better python 3 support. Started working onArmin Ronacherbefore adoption0faa861
line 89why, one step back89 **extraCopyright switch to "The Jinja Team".Armin Ronacherbefore adoption62ccd1b
line 90why, one step back90)