blob: 631bdb2bf5f7f9380b0dd02f22e6365483373d1a [file] [log] [blame]
Armin Ronacherde478f62007-02-28 22:35:04 +01001# -*- coding: utf-8 -*-
Armin Ronacherae16fd02007-03-27 21:31:24 +02002import jinja
Armin Ronacher0830e252007-03-22 23:45:30 +01003import os
4import ez_setup
5ez_setup.use_setuptools()
Armin Ronacherde478f62007-02-28 22:35:04 +01006from setuptools import setup
Armin Ronacherae16fd02007-03-27 21:31:24 +02007from inspect import getdoc
Armin Ronacherde478f62007-02-28 22:35:04 +01008
Armin Ronacher0830e252007-03-22 23:45:30 +01009
Armin Ronachere21ced22007-03-22 23:57:10 +010010def 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
Armin Ronacherde478f62007-02-28 22:35:04 +010019setup(
20 name = 'Jinja',
Armin Ronacher8ebf1f92007-03-03 11:22:18 +010021 version = '1.0',
22 url = 'http://jinja.pocoo.org/',
Armin Ronacherde478f62007-02-28 22:35:04 +010023 license = 'BSD',
24 author = 'Armin Ronacher',
25 author_email = '[email protected]',
Armin Ronacher2b765132007-03-13 16:48:10 +010026 description = 'A small but fast and easy to use stand-alone template '
27 'engine written in pure python.',
Armin Ronacherae16fd02007-03-27 21:31:24 +020028 long_description = getdoc(jinja),
Armin Ronachere21ced22007-03-22 23:57:10 +010029 # 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,
Armin Ronacherde478f62007-02-28 22:35:04 +010032 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',
Armin Ronacher8ebf1f92007-03-03 11:22:18 +010039 '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'],
Armin Ronacher2b765132007-03-13 16:48:10 +010044 packages = ['jinja', 'jinja.translators'],
Armin Ronacher0830e252007-03-22 23:45:30 +010045 data_files = [
Armin Ronacher72bb2572007-03-23 17:24:48 +010046 ('docs', list(list_files('docs/build'))),
47 ('docs/txt', list(list_files('docs/src')))
Armin Ronacher0830e252007-03-22 23:45:30 +010048 ],
49 platforms = 'any',
50 extras_require = {'plugin': ['setuptools>=0.6a2']}
Armin Ronacherde478f62007-02-28 22:35:04 +010051)