Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 104 lines (87 sloc) 3.734 kb
c7d48b5b »
2001-10-10 further merges of the DEVEL_BRANCH code
1 #-------Main Package Settings-----------#
1b1b4cb0 »
2009-09-01 Only use entry_points if we're on Windows; hopefully this corrects kb…
2 import sys
3
8bd3bc25 »
2009-05-15 Correct the name of the package for setup-tools to use
4 name = 'Cheetah'
832a7c76 »
2009-07-16 Rename the root package to "cheetah" instead of "src" to follow more …
5 from cheetah.Version import Version as version
c480b09f »
2009-04-03 Update SetupConfig.py for submission of Cheetah Community Edition to …
6 maintainer = "R. Tyler Ballance"
a7c4db37 »
2006-01-15 updated descriptions
7 author = "Tavis Rudd"
c7d48b5b »
2001-10-10 further merges of the DEVEL_BRANCH code
8 author_email = "cheetahtemplate-discuss@lists.sf.net"
56c8db9b »
2009-06-01 Update references to communitycheetah.org -> cheetahtemplate.org
9 url = "http://www.cheetahtemplate.org/"
c7d48b5b »
2001-10-10 further merges of the DEVEL_BRANCH code
10 packages = ['Cheetah',
404c70c8 »
2006-01-31 added new Cheetah.Macros package
11 'Cheetah.Macros',
c7d48b5b »
2001-10-10 further merges of the DEVEL_BRANCH code
12 'Cheetah.Templates',
13 'Cheetah.Tests',
14 'Cheetah.Tools',
922cd593 »
2001-11-08 New package Cheetah.Utils.
15 'Cheetah.Utils',
c7d48b5b »
2001-10-10 further merges of the DEVEL_BRANCH code
16 ]
dda3a9ba »
2006-01-01 added classifiers
17 classifiers = [line.strip() for line in '''\
e2bd128d »
2006-02-03 classifiers
18 #Development Status :: 4 - Beta
19 Development Status :: 5 - Production/Stable
dda3a9ba »
2006-01-01 added classifiers
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
832a7c76 »
2009-07-16 Rename the root package to "cheetah" instead of "src" to follow more …
34 package_dir = {'Cheetah':'cheetah'}
c7d48b5b »
2001-10-10 further merges of the DEVEL_BRANCH code
35
36 import os
96121cb6 »
2002-02-25 fixed path problem for NT compilation
37 import os.path
c7d48b5b »
2001-10-10 further merges of the DEVEL_BRANCH code
38 from distutils.core import Extension
96121cb6 »
2002-02-25 fixed path problem for NT compilation
39
a8539369 »
2009-06-28 Minor tweak to SetupConfig format
40 ext_modules=[
41 Extension("Cheetah._namemapper",
f902efca »
2009-08-14 Move src/c/ to cheetah/c/ and update SetupConfig.py appropraitely
42 [os.path.join('cheetah', 'c', '_namemapper.c')]),
f08b0449 »
2009-09-14 Disable these C modules since they're of marginal utility to be honest
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')]),
8bee5af2 »
2009-06-27 Build all C-extensions by default, win32 be damned! (abbeyj@'s helpin…
49 ]
c7d48b5b »
2001-10-10 further merges of the DEVEL_BRANCH code
50
51 ## Data Files and Scripts
52 scripts = ['bin/cheetah-compile',
01300fd4 »
2002-03-07 implemented the 'cheetah' wrapper script and refactored
53 'bin/cheetah',
c7d48b5b »
2001-10-10 further merges of the DEVEL_BRANCH code
54 ]
988f6da0 »
2009-08-14 Merge branch 'next' into performance
55
8bb8f0f2 »
2009-09-01 Fix SetupConfig to reflect the rename of the package directory
56 data_files = ['recursive: cheetah *.tmpl *.txt LICENSE README TODO CHANGES',]
988f6da0 »
2009-08-14 Merge branch 'next' into performance
57
56f550b7 »
2009-06-15 Provide a means of bypassing setuptools when installing Cheetah
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 ]
1b1b4cb0 »
2009-09-01 Only use entry_points if we're on Windows; hopefully this corrects kb…
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 ]
e658b4ba »
2009-08-04 Have setuptools generate .exe wrappers for scripts on Windows
72 }
56f550b7 »
2009-06-15 Provide a means of bypassing setuptools when installing Cheetah
73 except ImportError:
0b8c21f8 »
2009-11-08 Refactor raw print statements in accordance with 2to3
74 print('Not using setuptools, so we cannot install the Markdown dependency')
5aa67355 »
2009-06-09 Remove the contributed markdown module, rely on setuptools to install…
75
76
a7c4db37 »
2006-01-15 updated descriptions
77 description = "Cheetah is a template engine and code generation tool."
c7d48b5b »
2001-10-10 further merges of the DEVEL_BRANCH code
78
a7c4db37 »
2006-01-15 updated descriptions
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
56c8db9b »
2009-06-01 Update references to communitycheetah.org -> cheetahtemplate.org
88 at http://www.cheetahtemplate.org/learn.html
a7c4db37 »
2006-01-15 updated descriptions
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 ================================================================================
56c8db9b »
2009-06-01 Update references to communitycheetah.org -> cheetahtemplate.org
97 http://www.cheetahtemplate.org/credits.html
a7c4db37 »
2006-01-15 updated descriptions
98
99 Recent Changes
100 ================================================================================
56c8db9b »
2009-06-01 Update references to communitycheetah.org -> cheetahtemplate.org
101 See http://www.cheetahtemplate.org/CHANGES.txt for full details
a7c4db37 »
2006-01-15 updated descriptions
102
103 '''
Something went wrong with that request. Please try again.