Skip to content
Newer
Older
100644 105 lines (88 sloc) 3.68 KB
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
1 #-------Main Package Settings-----------#
1b1b4cb Only use entry_points if we're on Windows; hopefully this corrects kb…
R. Tyler Ballance authored
2 import sys
3
8bd3bc2 Correct the name of the package for setup-tools to use
R. Tyler Ballance authored
4 name = 'Cheetah'
832a7c7 Rename the root package to "cheetah" instead of "src" to follow more …
R. Tyler Ballance authored
5 from cheetah.Version import Version as version
c480b09 Update SetupConfig.py for submission of Cheetah Community Edition to …
R. Tyler Ballance authored
6 maintainer = "R. Tyler Ballance"
a7c4db3 updated descriptions
tavis_rudd authored
7 author = "Tavis Rudd"
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
8 author_email = "cheetahtemplate-discuss@lists.sf.net"
56c8db9 Update references to communitycheetah.org -> cheetahtemplate.org
R. Tyler Ballance authored
9 url = "http://www.cheetahtemplate.org/"
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
10 packages = ['Cheetah',
404c70c added new Cheetah.Macros package
tavis_rudd authored
11 'Cheetah.Macros',
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
12 'Cheetah.Templates',
13 'Cheetah.Tests',
14 'Cheetah.Tools',
922cd59 New package Cheetah.Utils.
hierro authored
15 'Cheetah.Utils',
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
16 ]
dda3a9b added classifiers
tavis_rudd authored
17 classifiers = [line.strip() for line in '''\
e2bd128 classifiers
tavis_rudd authored
18 #Development Status :: 4 - Beta
19 Development Status :: 5 - Production/Stable
dda3a9b added classifiers
tavis_rudd authored
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
32 del line
dda3a9b added classifiers
tavis_rudd authored
33
832a7c7 Rename the root package to "cheetah" instead of "src" to follow more …
R. Tyler Ballance authored
34 package_dir = {'Cheetah':'cheetah'}
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
35
36 import os
96121cb fixed path problem for NT compilation
tavis_rudd authored
37 import os.path
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
38 from distutils.core import Extension
96121cb fixed path problem for NT compilation
tavis_rudd authored
39
a853936 Minor tweak to SetupConfig format
R. Tyler Ballance authored
40 ext_modules=[
41 Extension("Cheetah._namemapper",
f902efc @rtyler Move src/c/ to cheetah/c/ and update SetupConfig.py appropraitely
rtyler authored
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
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
49 ]
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
50
51 ## Data Files and Scripts
0fca88e @rtyler Add the cheetah-analyze script to the mix
rtyler authored
52 scripts = ('bin/cheetah-compile',
01300fd implemented the 'cheetah' wrapper script and refactored
tavis_rudd authored
53 'bin/cheetah',
0fca88e @rtyler Add the cheetah-analyze script to the mix
rtyler authored
54 'bin/cheetah-analyze',
55 )
988f6da @rtyler Merge branch 'next' into performance
rtyler authored
56
8bb8f0f @rtyler Fix SetupConfig to reflect the rename of the package directory
rtyler authored
57 data_files = ['recursive: cheetah *.tmpl *.txt LICENSE README TODO CHANGES',]
988f6da @rtyler Merge branch 'next' into performance
rtyler authored
58
56f550b Provide a means of bypassing setuptools when installing Cheetah
R. Tyler Ballance authored
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
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
73 }
56f550b Provide a means of bypassing setuptools when installing Cheetah
R. Tyler Ballance authored
74 except ImportError:
0b8c21f @rtyler Refactor raw print statements in accordance with 2to3
rtyler authored
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
76
77
a7c4db3 updated descriptions
tavis_rudd authored
78 description = "Cheetah is a template engine and code generation tool."
c7d48b5 further merges of the DEVEL_BRANCH code
tavis_rudd authored
79
a7c4db3 updated descriptions
tavis_rudd authored
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
89 at http://www.cheetahtemplate.org/learn.html
a7c4db3 updated descriptions
tavis_rudd authored
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
98 http://www.cheetahtemplate.org/credits.html
a7c4db3 updated descriptions
tavis_rudd authored
99
100 Recent Changes
101 ================================================================================
56c8db9 Update references to communitycheetah.org -> cheetahtemplate.org
R. Tyler Ballance authored
102 See http://www.cheetahtemplate.org/CHANGES.txt for full details
a7c4db3 updated descriptions
tavis_rudd authored
103
104 '''
Something went wrong with that request. Please try again.