Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 101 lines (85 sloc) 3.651 kB
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
1 #-------Main Package Settings-----------#
8bd3bc2 Correct the name of the package for setup-tools to use
R. Tyler Ballance authored
2 name = 'Cheetah'
832a7c7 Rename the root package to "cheetah" instead of "src" to follow more …
R. Tyler Ballance authored
3 from cheetah.Version import Version as version
c480b09 Update SetupConfig.py for submission of Cheetah Community Edition to …
R. Tyler Ballance authored
4 maintainer = "R. Tyler Ballance"
a7c4db3 updated descriptions
tavis_rudd authored
5 author = "Tavis Rudd"
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
6 author_email = "cheetahtemplate-discuss@lists.sf.net"
56c8db9 Update references to communitycheetah.org -> cheetahtemplate.org
R. Tyler Ballance authored
7 url = "http://www.cheetahtemplate.org/"
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
8 packages = ['Cheetah',
404c70c added new Cheetah.Macros package
tavis_rudd authored
9 'Cheetah.Macros',
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
10 'Cheetah.Templates',
11 'Cheetah.Tests',
12 'Cheetah.Tools',
922cd59 New package Cheetah.Utils.
hierro authored
13 'Cheetah.Utils',
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
14 ]
dda3a9b added classifiers
tavis_rudd authored
15 classifiers = [line.strip() for line in '''\
e2bd128 classifiers
tavis_rudd authored
16 #Development Status :: 4 - Beta
17 Development Status :: 5 - Production/Stable
dda3a9b added classifiers
tavis_rudd authored
18 Intended Audience :: Developers
19 Intended Audience :: System Administrators
20 License :: OSI Approved :: MIT License
21 Operating System :: OS Independent
22 Programming Language :: Python
23 Topic :: Internet :: WWW/HTTP
24 Topic :: Internet :: WWW/HTTP :: Dynamic Content
25 Topic :: Internet :: WWW/HTTP :: Site Management
26 Topic :: Software Development :: Code Generators
27 Topic :: Software Development :: Libraries :: Python Modules
28 Topic :: Software Development :: User Interfaces
29 Topic :: Text Processing'''.splitlines() if not line.strip().startswith('#')]
30 del line
31
832a7c7 Rename the root package to "cheetah" instead of "src" to follow more …
R. Tyler Ballance authored
32 package_dir = {'Cheetah':'cheetah'}
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
33
34 import os
96121cb fixed path problem for NT compilation
tavis_rudd authored
35 import os.path
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
36 from distutils.core import Extension
96121cb fixed path problem for NT compilation
tavis_rudd authored
37
a853936 Minor tweak to SetupConfig format
R. Tyler Ballance authored
38 ext_modules=[
39 Extension("Cheetah._namemapper",
f902efc @rtyler Move src/c/ to cheetah/c/ and update SetupConfig.py appropraitely
rtyler authored
40 [os.path.join('cheetah', 'c', '_namemapper.c')]),
8bee5af Build all C-extensions by default, win32 be damned! (abbeyj@'s helpin…
R. Tyler Ballance authored
41 Extension("Cheetah._verifytype",
f902efc @rtyler Move src/c/ to cheetah/c/ and update SetupConfig.py appropraitely
rtyler authored
42 [os.path.join('cheetah', 'c', '_verifytype.c')]),
8bee5af Build all C-extensions by default, win32 be damned! (abbeyj@'s helpin…
R. Tyler Ballance authored
43 Extension("Cheetah._filters",
f902efc @rtyler Move src/c/ to cheetah/c/ and update SetupConfig.py appropraitely
rtyler authored
44 [os.path.join('cheetah', 'c', '_filters.c')]),
a853936 Minor tweak to SetupConfig format
R. Tyler Ballance authored
45 Extension('Cheetah._template',
f902efc @rtyler Move src/c/ to cheetah/c/ and update SetupConfig.py appropraitely
rtyler authored
46 [os.path.join('cheetah', 'c', '_template.c')]),
8bee5af Build all C-extensions by default, win32 be damned! (abbeyj@'s helpin…
R. Tyler Ballance authored
47 ]
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
48
49 ## Data Files and Scripts
50 scripts = ['bin/cheetah-compile',
01300fd implemented the 'cheetah' wrapper script and refactored
tavis_rudd authored
51 'bin/cheetah',
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
52 ]
988f6da @rtyler Merge branch 'next' into performance
rtyler authored
53
8bb8f0f @rtyler Fix SetupConfig to reflect the rename of the package directory
rtyler authored
54 data_files = ['recursive: cheetah *.tmpl *.txt LICENSE README TODO CHANGES',]
988f6da @rtyler Merge branch 'next' into performance
rtyler authored
55
56f550b Provide a means of bypassing setuptools when installing Cheetah
R. Tyler Ballance authored
56 if not os.getenv('CHEETAH_INSTALL_WITHOUT_SETUPTOOLS'):
57 try:
58 from setuptools import setup
59 install_requires = [
60 "Markdown >= 2.0.1",
61 ]
e658b4b @abbeyj Have setuptools generate .exe wrappers for scripts on Windows
abbeyj authored
62 # use 'entry_points' instead of 'scripts'
63 del scripts
64 entry_points = {
65 'console_scripts': [
66 'cheetah = Cheetah.CheetahWrapper:_cheetah',
67 'cheetah-compile = Cheetah.CheetahWrapper:_cheetah_compile',
68 ]
69 }
56f550b Provide a means of bypassing setuptools when installing Cheetah
R. Tyler Ballance authored
70 except ImportError:
71 print 'Not using setuptools, so we cannot install the Markdown dependency'
5aa6735 Remove the contributed markdown module, rely on setuptools to install…
R. Tyler Ballance authored
72
73
a7c4db3 updated descriptions
tavis_rudd authored
74 description = "Cheetah is a template engine and code generation tool."
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
75
a7c4db3 updated descriptions
tavis_rudd authored
76 long_description = '''Cheetah is an open source template engine and code generation tool.
77
78 It can be used standalone or combined with other tools and frameworks. Web
79 development is its principle use, but Cheetah is very flexible and is also being
80 used to generate C++ game code, Java, sql, form emails and even Python code.
81
82 Documentation
83 ================================================================================
84 For a high-level introduction to Cheetah please refer to the User\'s Guide
56c8db9 Update references to communitycheetah.org -> cheetahtemplate.org
R. Tyler Ballance authored
85 at http://www.cheetahtemplate.org/learn.html
a7c4db3 updated descriptions
tavis_rudd authored
86
87 Mailing list
88 ================================================================================
89 cheetahtemplate-discuss@lists.sourceforge.net
90 Subscribe at http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
91
92 Credits
93 ================================================================================
56c8db9 Update references to communitycheetah.org -> cheetahtemplate.org
R. Tyler Ballance authored
94 http://www.cheetahtemplate.org/credits.html
a7c4db3 updated descriptions
tavis_rudd authored
95
96 Recent Changes
97 ================================================================================
56c8db9 Update references to communitycheetah.org -> cheetahtemplate.org
R. Tyler Ballance authored
98 See http://www.cheetahtemplate.org/CHANGES.txt for full details
a7c4db3 updated descriptions
tavis_rudd authored
99
100 '''
Something went wrong with that request. Please try again.