Debian Codegraph @

SetupConfig.py

raw symbols SCIP
1 # -------Main Package Settings-----------#
2 from setuptools import Extension
3 import os
4 import os.path
5 import sys
6
7 from Cheetah.Version import Version as version
8 from Cheetah.compat import PY2
9
10 # Cheetah3 has already been taken at PyPI,
11 # CheetahTemplate3 seems to be too long.
12 # CT3 is just right!
13 name = 'CT3'
14 description = "Cheetah is a template engine and code generation tool"
15 license = "MIT"
16 author = "Tavis Rudd"
17 author_email = "[email protected]"
18 maintainer = "Oleg Broytman"
19 maintainer_email = "[email protected]"
20 url = "https://cheetahtemplate.org/"
21 dev_tag = ""
22 download_url = "https://pypi.org/project/%s/%s%s" \
23 % (name, version, dev_tag)
24 project_urls = {
25 'Homepage': 'https://cheetahtemplate.org/',
26 'Documentation': 'https://cheetahtemplate.org/users_guide/index.html',
27 'Download': 'https://pypi.org/project/%s/%s%s/'
28 % (name, version, dev_tag),
29 'Github repo': 'https://github.com/CheetahTemplate3',
30 'Issue tracker': 'https://github.com/CheetahTemplate3/cheetah3/issues',
31 'Wikipedia': 'https://en.wikipedia.org/wiki/CheetahTemplate',
32 }
33 del dev_tag
34 keywords = ["template"]
35 platforms = "Any"
36 packages = ['Cheetah',
37 'Cheetah.Macros',
38 'Cheetah.Templates',
39 'Cheetah.Tests',
40 'Cheetah.Tools',
41 'Cheetah.Utils',
42 ]
43 classifiers = [line.strip() for line in '''\
44 Development Status :: 5 - Production/Stable
45 Intended Audience :: Developers
46 Intended Audience :: System Administrators
47 License :: OSI Approved :: MIT License
48 Operating System :: OS Independent
49 Programming Language :: Python :: Implementation :: CPython
50 Programming Language :: Python :: Implementation :: PyPy
51 Programming Language :: Python
52 Programming Language :: Python :: 2
53 Programming Language :: Python :: 2.7
54 Programming Language :: Python :: 3
55 Programming Language :: Python :: 3.4
56 Programming Language :: Python :: 3.5
57 Programming Language :: Python :: 3.6
58 Programming Language :: Python :: 3.7
59 Programming Language :: Python :: 3.8
60 Programming Language :: Python :: 3.9
61 Programming Language :: Python :: 3.10
62 Programming Language :: Python :: 3.11
63 Programming Language :: Python :: 3.12
64 Programming Language :: Python :: 3.13
65 Topic :: Internet :: WWW/HTTP
66 Topic :: Internet :: WWW/HTTP :: Dynamic Content
67 Topic :: Internet :: WWW/HTTP :: Site Management
68 Topic :: Software Development :: Code Generators
69 Topic :: Software Development :: Libraries :: Python Modules
70 Topic :: Software Development :: User Interfaces
71 Topic :: Text Processing'''.splitlines() if not line.strip().startswith('#')]
72
73 if PY2:
74 del line
75 del PY2 # Hide it from setup()
76
77 ext_modules = [
78 Extension("Cheetah._namemapper",
79 [os.path.join('Cheetah', 'c', '_namemapper.c')]),
80 # Extension("Cheetah._verifytype",
81 # [os.path.join('Cheetah', 'c', '_verifytype.c')]),
82 # Extension("Cheetah._filters",
83 # [os.path.join('Cheetah', 'c', '_filters.c')]),
84 # Extension('Cheetah._template',
85 # [os.path.join('Cheetah', 'c', '_template.c')]),
86 ]
87
88 # Data Files and Scripts
89 scripts = ('bin/cheetah-compile',
90 'bin/cheetah',
91 'bin/cheetah-analyze',
92 )
93
94 data_files = ['recursive: Cheetah *.tmpl *.txt *.rst LICENSE README.rst TODO']
95
96 try:
97 if sys.platform == 'win32':
98 # use 'entry_points' instead of 'scripts'
99 del scripts
100 entry_points = {
101 'console_scripts': [
102 'cheetah = Cheetah.CheetahWrapper:_cheetah',
103 'cheetah-compile = '
104 'Cheetah.CheetahWrapper:_cheetah_compile',
105 ]
106 }
107 except ImportError:
108 pass
109
110 long_description = '''\
111 Cheetah3 is a free and open source template engine and code generation tool.
112
113 It can be used standalone or combined with other tools and frameworks. Web
114 development is its principle use, but Cheetah is very flexible and
115 is also being used to generate C++ game code, Java, sql, form emails
116 and even Python code.
117
118 It's a fork of the original CheetahTemplate library.
119
120 Documentation
121 ================================================================================
122 For a high-level introduction to Cheetah please refer to the User\'s Guide
123 at https://cheetahtemplate.org/users_guide/index.html
124
125 Credits
126 ================================================================================
127 https://cheetahtemplate.org/authors.html
128
129 https://github.com/CheetahTemplate3/cheetah3/blob/master/LICENSE
130
131 Recent Changes
132 ================================================================================
133 See https://cheetahtemplate.org/news.html for full details
134
135 '''
136
137 long_description_content_type = "text/x-rst"
138
139 python_requires = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
140
141 extras_require = {
142 'filters': ['markdown'],
143 'markdown': ['markdown'],
144 }