Skip to content
Newer
Older
100644 105 lines (88 sloc) 3.68 KB
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored Oct 10, 2001
1 #-------Main Package Settings-----------#
1b1b4cb Only use entry_points if we're on Windows; hopefully this corrects kb…
R. Tyler Ballance authored Sep 1, 2009
2 import sys
3
8bd3bc2 Correct the name of the package for setup-tools to use
R. Tyler Ballance authored May 15, 2009
4 name = 'Cheetah'
832a7c7 Rename the root package to "cheetah" instead of "src" to follow more …
R. Tyler Ballance authored Jul 16, 2009
5 from cheetah.Version import Version as version
c480b09 Update SetupConfig.py for submission of Cheetah Community Edition to …
R. Tyler Ballance authored Apr 3, 2009
6 maintainer = "R. Tyler Ballance"
a7c4db3 updated descriptions
tavis_rudd authored Jan 15, 2006
7 author = "Tavis Rudd"
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored Oct 10, 2001
8 author_email = "cheetahtemplate-discuss@lists.sf.net"
56c8db9 Update references to communitycheetah.org -> cheetahtemplate.org
R. Tyler Ballance authored Jun 1, 2009
9 url = "http://www.cheetahtemplate.org/"
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored Oct 10, 2001
10 packages = ['Cheetah',
404c70c added new Cheetah.Macros package
tavis_rudd authored Jan 31, 2006
11 'Cheetah.Macros',
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored Oct 10, 2001
12 'Cheetah.Templates',
13 'Cheetah.Tests',
14 'Cheetah.Tools',
922cd59 New package Cheetah.Utils.
hierro authored Nov 8, 2001
15 'Cheetah.Utils',
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored Oct 10, 2001
16 ]
dda3a9b added classifiers
tavis_rudd authored Jan 1, 2006
17 classifiers = [line.strip() for line in '''\
e2bd128 classifiers
tavis_rudd authored Feb 3, 2006
18 #Development Status :: 4 - Beta
19 Development Status :: 5 - Production/Stable
dda3a9b added classifiers
tavis_rudd authored Jan 1, 2006
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('#')]
e9b2d30 @rtyler Avoid setuptools warning
rtyler authored Dec 12, 2010
32 del line
dda3a9b added classifiers
tavis_rudd authored Jan 1, 2006
33
832a7c7 Rename the root package to "cheetah" instead of "src" to follow more …
R. Tyler Ballance authored Jul 16, 2009
34 package_dir = {'Cheetah':'cheetah'}
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored Oct 10, 2001
35
36 import os
96121cb fixed path problem for NT compilation
tavis_rudd authored Feb 25, 2002
37 import os.path
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored Oct 10, 2001
38 from distutils.core import Extension
96121cb fixed path problem for NT compilation
tavis_rudd authored Feb 25, 2002
39
a853936 Minor tweak to SetupConfig format
R. Tyler Ballance authored Jun 28, 2009
40 ext_modules=[
41 Extension("Cheetah._namemapper",
f902efc @rtyler Move src/c/ to cheetah/c/ and update SetupConfig.py appropraitely
rtyler authored Aug 14, 2009
42 [os.path.join('cheetah', 'c', '_namemapper.c')]),
f08b044 Disable these C modules since they're of marginal utility to be honest
R. Tyler Ballance authored Sep 14, 2009
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')]),
8bee5af Build all C-extensions by default, win32 be damned! (abbeyj@'s helpin…
R. Tyler Ballance authored Jun 27, 2009
49 ]
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored Oct 10, 2001
50
51 ## Data Files and Scripts
0fca88e @rtyler Add the cheetah-analyze script to the mix
rtyler authored Nov 18, 2009
52 scripts = ('bin/cheetah-compile',
01300fd implemented the 'cheetah' wrapper script and refactored
tavis_rudd authored Mar 7, 2002
53 'bin/cheetah',
0fca88e @rtyler Add the cheetah-analyze script to the mix
rtyler authored Nov 19, 2009
54 'bin/cheetah-analyze',
55 )
988f6da @rtyler Merge branch 'next' into performance
rtyler authored Aug 14, 2009
56
8bb8f0f @rtyler Fix SetupConfig to reflect the rename of the package directory
rtyler authored Sep 1, 2009
57 data_files = ['recursive: cheetah *.tmpl *.txt LICENSE README TODO CHANGES',]
988f6da @rtyler Merge branch 'next' into performance
rtyler authored Aug 14, 2009
58
56f550b Provide a means of bypassing setuptools when installing Cheetah
R. Tyler Ballance authored Jun 15, 2009
59 if not os.getenv('CHEETAH_INSTALL_WITHOUT_SETUPTOOLS'):
60 try:
61 from setuptools import setup
62 install_requires = [
63 "Markdown >= 2.0.1",
64 ]
1b1b4cb Only use entry_points if we're on Windows; hopefully this corrects kb…
R. Tyler Ballance authored Sep 1, 2009
65 if sys.platform == 'win32':
66 # use 'entry_points' instead of 'scripts'
67 del scripts
68 entry_points = {
69 'console_scripts': [
70 'cheetah = Cheetah.CheetahWrapper:_cheetah',
71 'cheetah-compile = Cheetah.CheetahWrapper:_cheetah_compile',
72 ]
e658b4b @abbeyj Have setuptools generate .exe wrappers for scripts on Windows
abbeyj authored Aug 4, 2009
73 }
56f550b Provide a means of bypassing setuptools when installing Cheetah
R. Tyler Ballance authored Jun 16, 2009
74 except ImportError:
0b8c21f @rtyler Refactor raw print statements in accordance with 2to3
rtyler authored Nov 8, 2009
75 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 Jun 9, 2009
76
77
a7c4db3 updated descriptions
tavis_rudd authored Jan 15, 2006
78 description = "Cheetah is a template engine and code generation tool."
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored Oct 10, 2001
79
a7c4db3 updated descriptions
tavis_rudd authored Jan 15, 2006
80 long_description = '''Cheetah is an open source template engine and code generation tool.
81
82 It can be used standalone or combined with other tools and frameworks. Web
83 development is its principle use, but Cheetah is very flexible and is also being
84 used to generate C++ game code, Java, sql, form emails and even Python code.
85
86 Documentation
87 ================================================================================
88 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 Jun 2, 2009
89 at http://www.cheetahtemplate.org/learn.html
a7c4db3 updated descriptions
tavis_rudd authored Jan 15, 2006
90
91 Mailing list
92 ================================================================================
93 cheetahtemplate-discuss@lists.sourceforge.net
94 Subscribe at http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
95
96 Credits
97 ================================================================================
56c8db9 Update references to communitycheetah.org -> cheetahtemplate.org
R. Tyler Ballance authored Jun 2, 2009
98 http://www.cheetahtemplate.org/credits.html
a7c4db3 updated descriptions
tavis_rudd authored Jan 15, 2006
99
100 Recent Changes
101 ================================================================================
56c8db9 Update references to communitycheetah.org -> cheetahtemplate.org
R. Tyler Ballance authored Jun 2, 2009
102 See http://www.cheetahtemplate.org/CHANGES.txt for full details
a7c4db3 updated descriptions
tavis_rudd authored Jan 15, 2006
103
104 '''
Something went wrong with that request. Please try again.