[svn] reworked the jinja escaping system, removed getattr concatenating and documente...
[jinja2.git] / setup.py
1 # -*- coding: utf-8 -*-
2 import jinja
3 import os
4 import ez_setup
5 ez_setup.use_setuptools()
6 from setuptools import setup
7 from inspect import getdoc
8
9
10 def list_files(path):
11     for fn in os.listdir(path):
12         if fn.startswith('.'):
13             continue
14         fn = os.path.join(path, fn)
15         if os.path.isfile(fn):
16             yield fn
17
18
19 setup(
20     name = 'Jinja',
21     version = '1.0',
22     url = 'http://jinja.pocoo.org/',
23     license = 'BSD',
24     author = 'Armin Ronacher',
25     author_email = 'armin.ronacher@active-4.com',
26     description = 'A small but fast and easy to use stand-alone template '
27                   'engine written in pure python.',
28     long_description = getdoc(jinja),
29     # jinja is egg safe. But because we distribute the documentation
30     # in form of html and txt files it's a better idea to extract the files
31     zip_safe = False,
32     classifiers = [
33         'Development Status :: 5 - Production/Stable',
34         'Environment :: Web Environment',
35         'Intended Audience :: Developers',
36         'License :: OSI Approved :: BSD License',
37         'Operating System :: OS Independent',
38         'Programming Language :: Python',
39         'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
40         'Topic :: Software Development :: Libraries :: Python Modules',
41         'Topic :: Text Processing :: Markup :: HTML'
42     ],
43     keywords = ['python.templating.engines'],
44     packages = ['jinja', 'jinja.translators'],
45     data_files = [
46         ('docs', list(list_files('docs/build'))),
47         ('docs/txt', list(list_files('docs/src')))
48     ],
49     platforms = 'any',
50     extras_require = {'plugin': ['setuptools>=0.6a2']}
51 )