1 | #-------Main Package Settings-----------# |
---|
2 | import sys |
---|
3 | |
---|
4 | name = 'Cheetah' |
---|
5 | from cheetah.Version import Version as version |
---|
6 | maintainer = "R. Tyler Ballance" |
---|
7 | author = "Tavis Rudd" |
---|
8 | author_email = "cheetahtemplate-discuss@lists.sf.net" |
---|
9 | url = "http://www.cheetahtemplate.org/" |
---|
10 | packages = ['Cheetah', |
---|
11 | 'Cheetah.Macros', |
---|
12 | 'Cheetah.Templates', |
---|
13 | 'Cheetah.Tests', |
---|
14 | 'Cheetah.Tools', |
---|
15 | 'Cheetah.Utils', |
---|
16 | ] |
---|
17 | classifiers = [line.strip() for line in '''\ |
---|
18 | #Development Status :: 4 - Beta |
---|
19 | Development Status :: 5 - Production/Stable |
---|
20 | Intended Audience :: Developers |
---|
21 | Intended Audience :: System Administrators |
---|
22 | License :: OSI Approved :: MIT License |
---|
23 | Operating System :: OS Independent |
---|
24 | Programming Language :: Python |
---|
25 | Topic :: Internet :: WWW/HTTP |
---|
26 | Topic :: Internet :: WWW/HTTP :: Dynamic Content |
---|
27 | Topic :: Internet :: WWW/HTTP :: Site Management |
---|
28 | Topic :: Software Development :: Code Generators |
---|
29 | Topic :: Software Development :: Libraries :: Python Modules |
---|
30 | Topic :: Software Development :: User Interfaces |
---|
31 | Topic :: Text Processing'''.splitlines() if not line.strip().startswith('#')] |
---|
32 | del line |
---|
33 | |
---|
34 | package_dir = {'Cheetah':'cheetah'} |
---|
35 | |
---|
36 | import os |
---|
37 | import os.path |
---|
38 | from distutils.core import Extension |
---|
39 | |
---|
40 | ext_modules=[ |
---|
41 | Extension("Cheetah._namemapper", |
---|
42 | [os.path.join('cheetah', 'c', '_namemapper.c')]), |
---|
43 | # Extension("Cheetah._verifytype", |
---|
44 | # [os.path.join('cheetah', 'c', '_verifytype.c')]), |
---|
45 | # Extension("Cheetah._filters", |
---|
46 | # [os.path.join('cheetah', 'c', '_filters.c')]), |
---|
47 | # Extension('Cheetah._template', |
---|
48 | # [os.path.join('cheetah', 'c', '_template.c')]), |
---|
49 | ] |
---|
50 | |
---|
51 | ## Data Files and Scripts |
---|
52 | scripts = ['bin/cheetah-compile', |
---|
53 | 'bin/cheetah', |
---|
54 | ] |
---|
55 | |
---|
56 | data_files = ['recursive: cheetah *.tmpl *.txt LICENSE README TODO CHANGES',] |
---|
57 | |
---|
58 | if not os.getenv('CHEETAH_INSTALL_WITHOUT_SETUPTOOLS'): |
---|
59 | try: |
---|
60 | from setuptools import setup |
---|
61 | # install_requires = [ |
---|
62 | # "Markdown >= 2.0.1", |
---|
63 | # ] |
---|
64 | if sys.platform == 'win32': |
---|
65 | # use 'entry_points' instead of 'scripts' |
---|
66 | del scripts |
---|
67 | entry_points = { |
---|
68 | 'console_scripts': [ |
---|
69 | 'cheetah = Cheetah.CheetahWrapper:_cheetah', |
---|
70 | 'cheetah-compile = Cheetah.CheetahWrapper:_cheetah_compile', |
---|
71 | ] |
---|
72 | } |
---|
73 | except ImportError: |
---|
74 | print 'Not using setuptools, so we cannot install the Markdown dependency' |
---|
75 | |
---|
76 | |
---|
77 | description = "Cheetah is a template engine and code generation tool." |
---|
78 | |
---|
79 | long_description = '''Cheetah is an open source template engine and code generation tool. |
---|
80 | |
---|
81 | It can be used standalone or combined with other tools and frameworks. Web |
---|
82 | development is its principle use, but Cheetah is very flexible and is also being |
---|
83 | used to generate C++ game code, Java, sql, form emails and even Python code. |
---|
84 | |
---|
85 | Documentation |
---|
86 | ================================================================================ |
---|
87 | For a high-level introduction to Cheetah please refer to the User\'s Guide |
---|
88 | at http://www.cheetahtemplate.org/learn.html |
---|
89 | |
---|
90 | Mailing list |
---|
91 | ================================================================================ |
---|
92 | cheetahtemplate-discuss@lists.sourceforge.net |
---|
93 | Subscribe at http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss |
---|
94 | |
---|
95 | Credits |
---|
96 | ================================================================================ |
---|
97 | http://www.cheetahtemplate.org/credits.html |
---|
98 | |
---|
99 | Recent Changes |
---|
100 | ================================================================================ |
---|
101 | See http://www.cheetahtemplate.org/CHANGES.txt for full details |
---|
102 | |
---|
103 | ''' |
---|