"Fossies" - the Fresh Open Source Software Archive

Member "cheetah3-3.2.6.post2/SetupConfig.py" (20 Apr 2021, 4663 Bytes) of package /linux/www/cheetah3-3.2.6.post2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "SetupConfig.py" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 3-3.2.6.post1_vs_3-3.2.6.post2.

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