Skip to content
Myr

[svn] moved www out of jinja trunk and updated setup.py file

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 6947912 · Browse files · 18 files+39 added−696 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

18 files+39 added−696 removed

  • other:+39 added−696 removed

18 files+39 added−696 removed

deleted:www/documentation/item.tmpl-11 removed
1<% extends 'layout/base.tmpl' %>2<% set title = page_title + " | Documentation" %>3<% set active_page = 'documentation' %>4<% block content %>5 <h1><%= page_title %></h1>6 <% if page_toc %>7 <h2 class="toc">Table Of Contents</h2>8 <ul><%= page_toc %></ul>9 <% endif %>10 <%= page_body %>11<% endblock %>
deleted:www/layout/base.tmpl-37 removed
1<% set navigation = [2 ('index.html', 'index', 'Index'),3 ('faq.html', 'faq', 'FAQ'),4 ('documentation/index.html', 'documentation', 'Documentation'),5 ('download.html', 'download', 'Download'),6 ('contribute.html', 'contribute', 'Contribute')7] %>8<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Frameset//EN"9 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">10<html xmlns="http://www.w3.org/1999/xhtml">11 <head>12 <title><%= title or 'Untitled' %> | Jinja Template Engine</title>13 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />14 <link rel="stylesheet" href="<%= root %>static/style.css" type="text/css" />15 <link rel="stylesheet" href="<%= root %>static/print.css" type="text/css" media="print" />16 <link rel="stylesheet" href="<%= root %>static/pygments.css" type="text/css" />17 </head>18 <body>19 <div id="header">20 <h1><span>Jinja</span></h1>21 </div>22 <ul id="navigation">23 <% for href, id, caption in navigation %>24 <li<% if id == active_page %> class="active"<% endif25 %>><a href="<%= (root + href)|escape %>"><%= caption|escape %></a></li>26 <% endfor %>27 </ul>28 <div id="content">29 <div id="contentwrapper">30 <% block content %><% endblock %>31 </div>32 </div>33 <div id="footer">34 &copy; Copyright 2007 by the <a href="http://www.pocoo.org/">Pocoo</a> Team.35 </div>36 </body>37</html>
deleted:www/static/headerbg.pngbinary

A binary file, deleted.

deleted:www/static/jinjabanner.pngbinary

A binary file, deleted.

deleted:www/static/jinjalogo.pngbinary

A binary file, deleted.

deleted:www/static/print.css-17 removed
deleted:www/static/pygments.css-58 removed
deleted:www/static/style.css-229 removed
1/**2 * Jinja Webpage Design3 */45body {6 background-color: #222;7 margin: 0;8 padding: 0;9 font-family: 'Georgia', serif;10 font-size: 15px;11 color: #111;12}1314p, li, dd, dt, blockquote {15 color: #333;16}1718p {19 line-height: 150%;20 margin-bottom: 0;21 margin-top: 10px;22 text-align: justify;23}2425hr {26 border-top: 1px solid #ccc;27 border-bottom: 0;28 border-right: 0;29 border-left: 0;30 margin-bottom: 10px;31 margin-top: 20px;32}3334a {35 color: #b41717;36}3738a:hover {39 color: #444;40}4142pre {43 background-color: #f8f8f8;44 color: #000;45 border-top: 1px solid #ccc;46 border-bottom: 1px solid #ccc;47 padding: 5px;48 font-size: 13px;49 font-family: 'Bitstream Vera Sans Mono', 'Monaco', monospace;50}5152table.docutils {53 border-collapse: collapse;54 border: 2px solid #aaa;55 margin: 0.5em 1.5em 0.5em 1.5em;56}5758table.docutils td {59 padding: 2px;60 border: 1px solid #ddd;61}6263dl {64 margin-left: 10px;65}6667li, dt {68 margin-top: 5px;69}7071dt {72 font-weight: bold;73}7475th {76 text-align: left;77 padding: 3px;78 background-color: #f2f2f2;79}8081tt {82 font-size: 13px;83 font-family: 'Bitstream Vera Sans Mono', 'Monaco', monospace;84 color: black;85 padding: 1px 2px 1px 2px;86 background-color: #f0f0f0;87}8889cite {90 /* abusing <cite>, it's generated by ReST for `x` */91 font-size: 13px;92 font-family: 'Bitstream Vera Sans Mono', 'Monaco', monospace;93 font-weight: bold;94 font-style: normal;95}9697div.admonition {98 margin: 10px 0 10px 0;99 padding: 10px;100 border: 1px solid #ccc;101 background-color: #f8f8f8;102}103104div.admonition p.admonition-title {105 margin: -3px 0 5px 0;106 font-weight: bold;107 color: #b41717;108 font-size: 16px;109}110111div.admonition p {112 margin: 0 0 0 40px;113}114115#content {116 background-color: white;117 background-image: url(watermark.png);118 padding: 10px;119}120121#footer {122 color: #fff;123 text-align: center;124 font-size: 14px;125 padding: 10px 20px 10px 20px;126}127128#footer a {129 color: #fff;130}131132#contentwrapper {133 max-width: 700px;134 padding: 0 10px 20px 20px;135}136137#header {138 padding: 10px;139 border-top: 6px solid #d20000;140 background-color: #888;141 background-image: url(headerbg.png);142 background-position: top left;143}144145#header h1 {146 margin: 0;147 padding: 0;148 height: 80px;149 background-image: url(jinjabanner.png);150 background-repeat: no-repeat;151}152153#header h1 span {154 display: none;155}156157#navigation {158 border: 1px solid #ccc;159 background-color: #555;160 font-family: 'Trebuchet MS', 'Arial', sans-serif;161 margin: -60px 29px 10px 10px;162 padding: 0;163 float: right;164 list-style: none;165 font-weight: bold;166}167168#navigation li {169 float: left;170 margin: 0;171 padding: 0;172}173174#navigation li a {175 display: block;176 text-decoration: none;177 padding: 5px 10px 5px 10px;178 color: #eee;179}180181#navigation li a:hover {182 color: #fff;183 background-color: #444;184}185186#navigation li.active {187 background-color: #b41717;188}189190#navigation li.active a {191 color: #fff;192}193194#navigation li a:focus {195 outline: none;196 background-color: #222;197 color: #fff;198}199200#contentwrapper h1,201#contentwrapper h2,202#contentwrapper h3,203#contentwrapper h4 {204 font-family: 'Trebuchet MS', 'Arial', sans-serif;205}206207#contentwrapper h2 a,208#contentwrapper h3 a,209#contentwrapper h4 a {210 color: #333;211}212213#contentwrapper h1 {214 color: #b41717;215 font-size: 28px;216 margin: 20px 0 0 -8px;217}218219#contentwrapper h2 {220 color: #444;221 font-size: 22px;222 margin: 20px 0 0 0;223}224225#contentwrapper h2.toc {226 color: #222;227 font-size: 16px;228 margin: 20px 0 0 0;229}
deleted:www/static/watermark.pngbinary

A binary file, deleted.

deleted:www/contribute.tmpl-33 removed
1<% extends 'layout/base.tmpl' %>2<% set title = 'Contribute' %>3<% set active_page = 'contribute' %>4<% block content %>5 <h1>Contribute</h1>6 <p>7 Because Jinja is an open source project we're always open towards8 suggestions and patches. If you want to participate in the Jinja9 development python knowlege is required of corse since the project is10 implemented completely in python.11 </p>12 <p>13 Development takes place on <a href="http://trac.pocoo.org/">trac.pocoo.org</a>,14 where the Subversion repository, tickets and development Wiki pages15 can be viewed.16 </p>17 <h2>Ways to contact the authors</h2>18 <p>19 Our primary communication instrument is the IRC channel <em>#pocoo</em>20 on the Freenode network. To join it, let your IRC client connect to21 <tt>irc.freenode.net</tt> and do <tt>/join #pocoo</tt>.22 </p>23 <p>24 If you found a bug, just open a ticket in the trac tracker. Be sure to25 add your e-mail address under "CC" to be notified when the issue is fixed.26 </p>27 <h2>The Authors</h2>28 <p>29 Jinja is maintained by <strong>Armin Ronacher</strong> (nickname30 <em>mitsuhiko</em>), e-mail address <em>armin.ronacher (guess what)31 active-4.com</em>.32 </p>33<% endblock %>
deleted:www/download.tmpl-25 removed
1<% extends 'layout/base.tmpl' %>2<% set title = 'Download' %>3<% set active_page = 'download' %>4<% block content %>5 <h1>Download</h1>6 <p>7 If you want to install the release with8 <a href="http://peak.telecommunity.com/DevCenter/EasyInstall">easy_install</a>,9 you can do it using this command:10 </p>11 <pre>easy_install Jinja</pre>12 <p>13 You can also get the development source from subversion using this command:14 </p>15 <pre>svn co http://trac.pocoo.org/repos/jinja/trunk jinja</pre>16 <p>17 Installing the current subversion trunk as a Python egg is done with:18 </p>19 <pre>easy_install Jinja==dev</pre>20 <p>21 Development takes place at the <a href="http://trac.pocoo.org/">Pocoo trac</a>,22 you can browse the source online23 <a href="http://trac.pocoo.org/browser/jinja/trunk">here</a>.24 </p>25<% endblock %>
deleted:www/error.tmpl-11 removed
1<% extends 'layout/base.tmpl' %>2<% set title = 'Page Not Found' %>3<% block content %>4 <h1>Page Not Found</h1>5 <p>6 Sorry, but the pge you requested was not found on this server.7 </p>8 <p>9 Click <a href="index.html">here</a> to return to the index.10 </ul>11<% endblock %>
deleted:www/faq.tmpl-104 removed
1<% extends 'layout/base.tmpl' %>2<% set title = 'FAQ' %>3<% set active_page = 'faq' %>4<% block content %>5 <h1>Frequently Asked Questions</h1>6 <p>7 Here a list of frequently asked questions.8 </p>9 <h2>Why the Name?</h2>10 <p>11 The name Jinja was chosen because it's the name of a Japanese temple and12 temple and template share a similar pronunciation.13 </p>14 <h2>How fast is it?</h2>15 <p>16 I really hate benchmarks especially since they don't reflect much. The17 performance of a template depends on many factors and you would have to18 benchmark different engines in differen situations. However Jinja isn't19 slow. The benchmarks from the testsuite show that Jinja is about twice20 as fast as Django templates and about three times as slow as21 <a href="http://www.makotemplates.org/">mako</a>. That's not bad for a22 sandboxed template engine that has to sanitize template input on the fly.23 If you really need the best performance of a template engine consider24 using mako.25 </p>26 <h2>What happened to Jinja &lt; 1?</h2>27 <p>28 Before Jinja 1 there was a template engine too with the same name. Beside29 the name and the same maintainer those two projects don't share a single30 line of code. If you have an application using Jinja &lt; 1 you should try31 to make it Jinja 1 compatible. If that's not possible, the old project is32 still available as 33 <a href="http://trac.pocoo.org/repos/jinja/branches/0.9-maint/">0.9-maint</a>34 in the Jinja subversion repository.35 </p>36 <h2>Why should I use Jinja?</h2>37 <p>38 There are dozens of template engines for Python, many of them try to39 achieve different things. If you are looking for a XML based template40 engine have a look at <a href="http://genshi.edgewall.org/">genshi</a>,41 if you want a bleezing fast template engine with the full range of42 python constructs have a look at mako. If you want sandboxed templates43 you probably want to check out Jinja.44 </p>45 <h2>Differences to Django</h2>46 <p>47 While the Jinja default syntax looks pretty much like Django the rest of48 the template engine works completely different. Jinja was designed to be49 used without Django and to support Python expressions.50 </p>51 <p>Features that Jinja has in common with Django</p>52 <ul>53 <li>filter functions</li>54 <li>block based template inheritance</li>55 <li>the <tt>{% cycle %}</tt> and <tt>{% filter %}</tt> tag</li>56 <li>being sandboxed</li>57 <li>similar default syntax</li>58 </ul>59 <p>Differences to Django</p>60 <ul>61 <li>advanced lexer that allows escaping of tags</li>62 <li>generation of bytecode for faster template execution</li>63 <li>definition of macros (often recurring tasks like rendering64 dialog boxes, form elements etc.)</li>65 <li>raw blocks</li>66 <li>uncoupled internationalization support</li>67 <li>expression support in any tag</li>68 <li>abbility of modifying the context from the template69 by using the <tt>{% set %}</tt> tag.</li>70 <li>support for function calling with arguments</li>71 <li>filters can be called with a variable argument count</li>72 <li>full unicode support</li>73 <li>deferred objects (objects that are resolved on first74 access, not on context instanciation)</li>75 <li>Missing support for <tt>{{ block.super }}</tt></li>76 <li>Support for recursing by using recursing for loops77 or self calling macros.</li>78 <li>If blocks have support for multiple elif statements</li>79 <li>for loops have an optional else block executed if80 there was no iteration.</li>81 <li>test functions like <tt>is even</tt> etc.</li>82 <li>block delimiters are exchangeable.</il>83 <li>no implicit function calling</li>84 <li><tt>{% endblock %}</tt> doesn't support the optional name argument</li>85 <li><tt>{% ifchanged %}</tt> is not implemented because of performance86 reasons. If there's enough interest an implementation might be added</li>87 <li><tt>{% templatetag %}</tt> is not implemented because Jinja supports88 escaping via <tt>{% raw %}</tt> or the variable syntax</li>89 <li><tt>{% comment %}</tt> is not implemented, rather use90 <tt>{# ... #}</tt> for commenting out stuff.</li>91 <li><tt>{% now %}</tt> is not implemented because Jinja doesn't handle92 l10n. Datetime specific stuff should be provided by the application.</li>93 <li><tt>{% load %}</tt>, loading components for Jinja works from the94 application side. Template designers don't have to import stuff on95 their own.</li>96 <li><tt>{% debug %}</tt> is not implemented. You can use the global97 function <tt>debug()</tt>.</li>98 <li>custom tags are not supported. Most of the stuff that is99 possible with django template tags is possible with either functions,100 filters, tests or a combination of them.</li>101 <li>using keywords like <tt>endfor</tt> as identifer raises an102 exception.</li>103 </ul>104<% endblock %>
deleted:www/generate.py-87 removed
1#!/usr/bin/env python2"""3 jinja webpage generator4 ~~~~~~~~~~~~~~~~~~~~~~~5"""6import os7import sys8import re9from codecs import open10from jinja import Environment, FileSystemLoader11from jinja.filters import stringfilter12from pygments import highlight13from pygments.lexers import get_lexer_by_name14from pygments.formatters import HtmlFormatter151617_data_re = re.compile(18 r'<!-- TITLE -->(?P<page_title>.*?)<!-- ENDTITLE -->.*?'19 r'<!-- TOC -->(?P<page_toc>.*?)<!-- ENDTOC -->.*?'20 r'<!-- BODY -->(?P<page_body>.*?)<!-- ENDBODY -->(?sm)'21)2223formatter = HtmlFormatter(cssclass='syntax', encoding=None, style='pastie')2425env = Environment('<%', '%>', '<%=', '%>', loader=FileSystemLoader('.',26 cache_folder='/tmp'), trim_blocks=True)27env.filters['pygmentize'] = stringfilter(lambda v, l:28 highlight(v.strip(), get_lexer_by_name(l), formatter))293031def get_files(folder):32 for fn in os.listdir(folder):33 fn = os.path.join(folder, fn)34 if os.path.isdir(fn):35 for item in get_files(fn):36 yield item37 elif fn.endswith('.tmpl'):38 yield fn394041# generate static stuff42for filename in get_files('.'):43 root = './' + ''.join(['../' for _ in os.path.dirname(filename).44 split(os.path.sep)[1:]])4546 t = env.get_template(filename)47 f = open(filename[:-5] + '.html', 'w', 'utf-8')48 f.write(t.render(49 root=root50 ))51 f.close()52 print filename5354# generate pygments stylesheet55f = file('static/pygments.css', 'w')56f.write(formatter.get_style_defs('.syntax'))57f.close()5859# generate documentation60os.system(sys.executable + ' ../docs/generate.py documentation true')6162# render documentation with documentation template63tmpl = env.get_template('documentation/item.tmpl')6465for filename in os.listdir('documentation'):66 if not filename.endswith('.html'):67 continue68 filename = 'documentation/' + filename69 f = open(filename, 'r', 'utf-8')70 try:71 data = f.read()72 finally:73 f.close()74 match = _data_re.search(data)75 if match is None:76 continue77 data = match.groupdict()78 data['page_toc'] = data['page_toc'].strip()79 if data['page_toc'].count('</li') < 2:80 data['page_toc'] = ''81 f = open(filename, 'w', 'utf-8')82 f.write(tmpl.render(83 root='./../',84 **data85 ))86 f.close()87 print 'postprocessed', filename
deleted:www/index.tmpl-68 removed
1<% extends 'layout/base.tmpl' %>2<% set title = 'Index' %>3<% set active_page = 'index' %>4<% block content %>5 <h1>Jinja Templates</h1>6 <p>7 Jinja is a8 <a href="http://en.wikipedia.org/wiki/Sandbox_%28computer_security%29">sandboxed</a>9 template engine written in pure <a href="http://www.python.org/">Python</a>. It10 provides a <a href="http://www.djangoproject.com/">Django</a>-like non-XML syntax11 and compiles templates into executable python code. It's basically a combination12 of Django templates and python code.13 </p>14 <h2>Nutshell</h2>15 <% filter pygmentize('html+jinja') %>16{% extends 'base.html' %}17{% block title %}Memberlist{% endblock %}18{% block content %}19 <ul>20 {% for user in users %}21 <li><a href="{{ user.url|e }}">{{ user.username|e }}</a></li>22 {% endfor %}23 </ul>24{% endblock %}25<% endfilter %>26 <h2>Philosophy</h2>27 <p>28 Application logic is for the controller but don't try to make the life for the29 template designer too hard by giving him too few functionality.30 </p>31 <h2>Features</h2>32 <ul>33 <li><strong>Simple API</strong>. For basic usage just one function is needed:34<% filter pygmentize('python') %>35from jinja import from_string36print from_string('Hello {{ data }}!').render(data='World')37<% endfilter %></li>38 <li><strong>Sandboxed</strong>. The whole engine is completely sandboxed. A39 template designer won't be able to modify application data or execute40 dangerous code.</li>41 <li><strong>Python expressions</strong>. You can use nearly every python42 expression. Not supported are the binary operators and list comprehensions /43 generator expressions.</li>44 <li><strong>Inheritance</strong>. Jinja uses the same concept for inheritance45 Django uses. It's very powerful and easy to understand.</li>46 <li><strong>Macros</strong>. Jinja provides so called macros that allow you to47 put often used template snippets into callable blocks:48<% filter pygmentize('html+jinja') %>49{% macro dialog title, text %}50 <div class="dialog">51 <h2 class="title">{{ title }}</h2>52 <div class="text">{{ text }}</div>53 </div>54{% endmacro %}55<% endfilter %>You can then use this block by calling it:56<% filter pygmentize('html+jinja') %>57{{ dialog('Notification', 'Here the text for the macro.') }}58<% endfilter %></li>59 <li><strong>Designer friendly</strong>. Jinja simplifies many things for a60 template designer. Loops can be used in a recursive way, filters are61 available to format values, loops know about their iteration etc.</li>62 <li><strong>Dynamic Syntax</strong>. You don't like the Django block syntax?63 You can override the syntax elements on environment initialisation. It's64 no problem to use ASP/PHP/Ruby syntax, html comments for blocks etc.</li>65 <li><strong>extremely lightweight</strong>. According to sloccount the number66 of source lines is below 3000. The tarfile is less than 200KB in size.</li>67 </ul>68<% endblock %>
modified:ez_setup.py+23 added-10 removed
12 unmodified lines
1314This file can also be run as a script to install or upgrade setuptools.15"""16import sys17DEFAULT_VERSION = "0.6b3"17DEFAULT_VERSION = "0.6c5"18DEFAULT_URL = "http://cheeseshop.python.org/packages/%s/s/setuptools/" % sys.version[:3]1920md5_data = {21 'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca',
1 unmodified line
23 'setuptools-0.6b2-py2.3.egg': '5657759d8a6d8fc44070a9d07272d99b',24 'setuptools-0.6b2-py2.4.egg': '4996a8d169d2be661fa32a6e52e4f82a',25 'setuptools-0.6b3-py2.3.egg': 'bb31c0fc7399a63579975cad9f5a0618',26 'setuptools-0.6b3-py2.4.egg': '38a8c6b3d6ecd22247f179f7da669fac',27 'setuptools-0.6b3dev_r46791-py2.3.egg': 'e765a29566575ffac5d81cdf0c6f8db9',28 'setuptools-0.6b3dev_r46791-py2.4.egg': 'd249c022ed029ad60d134bd998adc880',27 'setuptools-0.6b4-py2.3.egg': '62045a24ed4e1ebc77fe039aa4e6f7e5',28 'setuptools-0.6b4-py2.4.egg': '4cb2a185d228dacffb2d17f103b3b1c4',29 'setuptools-0.6c1-py2.3.egg': 'b3f2b5539d65cb7f74ad79127f1a908c',30 'setuptools-0.6c1-py2.4.egg': 'b45adeda0667d2d2ffe14009364f2a4b',31 'setuptools-0.6c2-py2.3.egg': 'f0064bf6aa2b7d0f3ba0b43f20817c27',32 'setuptools-0.6c2-py2.4.egg': '616192eec35f47e8ea16cd6a122b7277',33 'setuptools-0.6c3-py2.3.egg': 'f181fa125dfe85a259c9cd6f1d7b78fa',34 'setuptools-0.6c3-py2.4.egg': 'e0ed74682c998bfb73bf803a50e7b71e',35 'setuptools-0.6c3-py2.5.egg': 'abef16fdd61955514841c7c6bd98965e',36 'setuptools-0.6c4-py2.3.egg': 'b0b9131acab32022bfac7f44c5d7971f',37 'setuptools-0.6c4-py2.4.egg': '2a1f9656d4fbf3c97bf946c0a124e6e2',38 'setuptools-0.6c4-py2.5.egg': '8f5a052e32cdb9c72bcf4b5526f28afc',39 'setuptools-0.6c5-py2.3.egg': 'ee9fd80965da04f2f3e6b3576e9d8167',40 'setuptools-0.6c5-py2.4.egg': 'afe2adf1c01701ee841761f5bcd8aa64',41 'setuptools-0.6c5-py2.5.egg': 'a8d3f61494ccaa8714dfed37bccd3d5d',42}4344import sys, os45
41 unmodified lines
87 import pkg_resources88 try:89 pkg_resources.require("setuptools>="+version)9078 except pkg_resources.VersionConflict:91 except pkg_resources.VersionConflict, e:92 # XXX could we install in a subprocess here?93 print >>sys.stderr, (94 "The required version of setuptools (>=%s) is not available, and\n"95 "can't be installed while this script is running. Please install\n"83 " a more recent version first."84 ) % version96 " a more recent version first.\n\n(Currently using %r)"97 ) % (version, e.args[0])98 sys.exit(2)99100def download_setuptools(101 version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir,
47 unmodified lines
149150 try:151 import setuptools152 except ImportError:140 import tempfile, shutil141 tmpdir = tempfile.mkdtemp(prefix="easy_install-")153 egg = None154 try:143 egg = download_setuptools(version, to_dir=tmpdir, delay=0)155 egg = download_setuptools(version, delay=0)156 sys.path.insert(0,egg)157 from setuptools.command.easy_install import main158 return main(list(argv)+[egg]) # we're done here159 finally:148 shutil.rmtree(tmpdir)160 if egg and os.path.exists(egg):161 os.unlink(egg)162 else:163 if setuptools.__version__ == '0.0.1':164 # tell the user to uninstall obsolete version165 use_setuptools(version)
63 unmodified lines
added:setup.cfg+6 added
1[egg_info]2tag_build = dev3tag_svn_revision = true45[aliases]6release = egg_info -RDb ''
modified:setup.py+10 added-6 removed
44 unmodified lines
45.. _Django: http://www.djangoproject.com/46.. _jinja webpage: http://jinja.pocoo.org/47.. _documentation: http://jinja.pocoo.org/documentation/index.html48"""49try:50 import ez_setup51 ez_setup.use_setuptools()52except ImportError:53 pass49import os50import ez_setup51ez_setup.use_setuptools()52from setuptools import setup535455setup(56 name = 'Jinja',57 version = '1.0',58 url = 'http://jinja.pocoo.org/',
16 unmodified lines
75 'Topic :: Text Processing :: Markup :: HTML'76 ],77 keywords = ['python.templating.engines'],78 packages = ['jinja', 'jinja.translators'],79 data_files = [80 ('docs', os.listdir('docs/build')),81 ('docs/txt', os.listdir('docs/src'))82 ],83 platforms = 'any',80 extras_require = {'plugin': ['setuptools>=0.6a2']},84 extras_require = {'plugin': ['setuptools>=0.6a2']}85)