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
The walk stopped after 200 commits: lines older than 9a0078d point at it.
Removed a few stdlib dependencies. This is the first step for IronPython support, the second one being a new lexer.Armin Ronacherbefore adoption9a0078d
lines 1–46why, 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 sys4445from setuptools import setup, Extension, Feature46Propably 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 )Removed a few stdlib dependencies. This is the first step for IronPython support, the second one being a new lexer.Armin Ronacherbefore adoption9a0078d
line 54why, one step back54experimental Python 3 support.Armin Ronacherbefore adoption0319c66
line 55why, one step back55Removed a few stdlib dependencies. This is the first step for IronPython support, the second one being a new lexer.Armin Ronacherbefore adoption9a0078d
lines 56–57why, one step back56setup(57 name='Jinja2',tip iis 2.5Armin Ronacherbefore adoption2ec1d2c
line 58why, one step back58 version='2.5',Removed a few stdlib dependencies. This is the first step for IronPython support, the second one being a new lexer.Armin Ronacherbefore adoption9a0078d
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 eggsRemoved a few stdlib dependencies. This is the first step for IronPython support, the second one being a new lexer.Armin Ronacherbefore adoption9a0078d
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',Removed a few stdlib dependencies. This is the first step for IronPython support, the second one being a new lexer.Armin Ronacherbefore adoption9a0078d
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 ],Added the security tests.Armin Ronacherbefore adoption644a281
line 80why, one step back80 packages=['jinja2', 'jinja2.testsuite', 'jinja2.testsuite.res'],Removed a few stdlib dependencies. This is the first step for IronPython support, the second one being a new lexer.Armin Ronacherbefore adoption9a0078d
lines 81–82why, one step back81 features={82 'speedups': Feature("optional C speed-enhancements",Disabled speedups by default.Armin Ronacherbefore adoption9ebc457
line 83why, one step back83 standard=False,Removed a few stdlib dependencies. This is the first step for IronPython support, the second one being a new lexer.Armin Ronacherbefore adoption9a0078d
lines 84–89why, one step back84 ext_modules=[85 Extension('jinja2._speedups', ['jinja2/_speedups.c'])86 ]87 )88 },89 extras_require={'i18n': ['Babel>=0.8']},Started working on unittest powered testsuite.Armin Ronacherbefore adoption7af781c
line 90why, one step back90 test_suite='jinja2.testsuite.suite',Approaching python3 compatibilityArmin Ronacherbefore adoption790b8a8
line 91why, one step back91 include_package_data=True,Removed a few stdlib dependencies. This is the first step for IronPython support, the second one being a new lexer.Armin Ronacherbefore adoption9a0078d
lines 92–94why, one step back92 entry_points="""93 [babel.extractors]94 jinja2 = jinja2.ext:babel_extract[i18n]experimental Python 3 support.Armin Ronacherbefore adoption0319c66
line 95why, one step back95 """,Propably delaying release for better python 3 support. Started working onArmin Ronacherbefore adoption0faa861
line 96why, one step back96 **extraRemoved a few stdlib dependencies. This is the first step for IronPython support, the second one being a new lexer.Armin Ronacherbefore adoption9a0078d
line 97why, one step back97)