setup.py
This file
Path
setup.py
102 lines · 3.0 KiB · Python
Last changed by
update setup.py so that setup.py develop worksArmin Ronacherbefore adoption4a3038d
History of this fileTake it
The walk stopped after 200 commits: lines older than fe0ce52 point at it.
[svn] some api changes in the loader system regarding subclassing.Armin Ronacherbefore adoptionfe0ce52
line 1why, one step back1# -*- coding: utf-8 -*-Automated merge with ssh://team@pocoo.org/jinja-mainArmin Ronacherbefore adoption4cc239a
lines 2–54why, one step back2"""3jinja4~~~~~56Jinja is a `sandboxed`_ template engine written in pure Python. It7provides a `Django`_ like non-XML syntax and compiles templates into8executable python code. It's basically a combination of Django templates9and python code.1011Nutshell12--------1314Here a small example of a Jinja template::1516 {% 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 %}2526Philosophy27----------2829Application logic is for the controller but don't try to make the life30for the template designer too hard by giving him too few functionality.3132For more informations visit the new `jinja webpage`_ and `documentation`_.3334Note35----3637This is the Jinja 1.0 release which is completely incompatible with the38old "pre 1.0" branch. The old branch will still receive security updates39and bugfixes but the 1.0 branch will be the only version that receives40support.4142If you have an application that uses Jinja 0.9 and won't be updated in43the near future the best idea is to ship a Jinja 0.9 checkout together44with the application.4546The `Jinja tip`_ is installable via `easy_install` with ``easy_install47Jinja==dev``.4849.. _sandboxed: http://en.wikipedia.org/wiki/Sandbox_(computer_security)50.. _Django: http://www.djangoproject.com/51.. _jinja webpage: http://jinja.pocoo.org/52.. _documentation: http://jinja.pocoo.org/documentation/index.html53.. _Jinja tip: http://dev.pocoo.org/hg/jinja-main/archive/tip.tar.gz#egg=Jinja-dev54"""[svn] moved www out of jinja trunk and updated setup.py fileArmin Ronacherbefore adoption0830e25
line 55why, one step back55import os[svn] updated Jinja setup.py for (hopefully for) win32 compatibilityArmin Ronacherbefore adoptiond15a4dc
line 56why, one step back56import sys[svn] moved www out of jinja trunk and updated setup.py fileArmin Ronacherbefore adoption0830e25
lines 57–58why, one step back57import ez_setup58ez_setup.use_setuptools()[svn] added c implementation of the jinja context class.Armin Ronacherbefore adoptionee2c18e
line 59why, one step back59update setup.py so that setup.py develop worksArmin Ronacherbefore adoption4a3038d
line 60why, one step back60from setuptools import setup[svn] some api changes in the loader system regarding subclassing.Armin Ronacherbefore adoptionfe0ce52
line 61why, one step back61[svn] moved www out of jinja trunk and updated setup.py fileArmin Ronacherbefore adoption0830e25
line 62why, one step back62[svn] again jinja setup.py update. works nowArmin Ronacherbefore adoptione21ced2
lines 63–71why, one step back63def list_files(path):64 for fn in os.listdir(path):65 if fn.startswith('.'):66 continue67 fn = os.path.join(path, fn)68 if os.path.isfile(fn):69 yield fn7071[svn] some api changes in the loader system regarding subclassing.Armin Ronacherbefore adoptionfe0ce52
line 72why, one step back72setup(update setup.py so that setup.py develop worksArmin Ronacherbefore adoption4a3038d
lines 73–74why, one step back73 name='Jinja 2',74 version='2.0dev',some documentation changesArmin Ronacherbefore adoption015b0c9
lines 75–80why, one step back75 url='http://jinja.pocoo.org/',76 license='BSD',77 author='Armin Ronacher',78 author_email='armin.ronacher@active-4.com',79 description='A small but fast and easy to use stand-alone template '80 'engine written in pure python.',Automated merge with ssh://team@pocoo.org/jinja-mainArmin Ronacherbefore adoption4cc239a
line 81why, one step back81 long_description = __doc__,[svn] again jinja setup.py update. works nowArmin Ronacherbefore adoptione21ced2
lines 82–83why, one step back82 # jinja is egg safe. But because we distribute the documentation83 # in form of html and txt files it's a better idea to extract the filessome documentation changesArmin Ronacherbefore adoption015b0c9
lines 84–85why, one step back84 zip_safe=False,85 classifiers=[update setup.py so that setup.py develop worksArmin Ronacherbefore adoption4a3038d
line 86why, one step back86 'Development Status :: 1 - Alpha',[svn] some api changes in the loader system regarding subclassing.Armin Ronacherbefore adoptionfe0ce52
lines 87–95why, one step back87 'Environment :: Web Environment',88 'Intended Audience :: Developers',89 'License :: OSI Approved :: BSD License',90 'Operating System :: OS Independent',91 'Programming Language :: Python',92 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',93 'Topic :: Software Development :: Libraries :: Python Modules',94 'Topic :: Text Processing :: Markup :: HTML'95 ],update setup.py so that setup.py develop worksArmin Ronacherbefore adoption4a3038d
line 96why, one step back96 packages=['jinja2'],some documentation changesArmin Ronacherbefore adoption015b0c9
line 97why, one step back97 data_files=[some more small release changesArmin Ronacherbefore adoption99e5baa
line 98why, one step back98 ('docs/html', list(list_files('docs/html'))),[svn] added doc notes to the installation instructionsArmin Ronacherbefore adoption72bb257
line 99why, one step back99 ('docs/txt', list(list_files('docs/src')))[svn] moved www out of jinja trunk and updated setup.py fileArmin Ronacherbefore adoption0830e25
line 100why, one step back100 ],update setup.py so that setup.py develop worksArmin Ronacherbefore adoption4a3038d
line 101why, one step back101 extras_require={'plugin': ['setuptools>=0.6a2']}[svn] some api changes in the loader system regarding subclassing.Armin Ronacherbefore adoptionfe0ce52
line 102why, one step back102)