diff options
Diffstat (limited to 'SetupConfig.py')
-rw-r--r-- | SetupConfig.py | 64 |
1 files changed, 38 insertions, 26 deletions
diff --git a/SetupConfig.py b/SetupConfig.py index 3410fb3..157ad11 100644 --- a/SetupConfig.py +++ b/SetupConfig.py @@ -1,5 +1,5 @@ # -------Main Package Settings-----------# -from distutils.core import Extension +from setuptools import Extension import os import os.path import sys @@ -18,8 +18,17 @@ maintainer = "Oleg Broytman" maintainer_email = "phd@phdru.name" url = "http://cheetahtemplate.org/" dev_tag = "" -download_url = "https://pypi.python.org/pypi/%s/%s%s" \ +download_url = "https://pypi.org/project/%s/%s%s" \ % (name, version, dev_tag) +project_urls = { + 'Homepage': 'http://cheetahtemplate.org/', + 'Documentation': 'http://cheetahtemplate.org/users_guide/index.html', + 'Download': 'https://pypi.org/project/%s/%s%s/' + % (name, version, dev_tag), + 'Github repo': 'https://github.com/CheetahTemplate3', + 'Issue tracker': 'https://github.com/CheetahTemplate3/cheetah3/issues', + 'Wikipedia': 'https://en.wikipedia.org/wiki/CheetahTemplate', +} del dev_tag keywords = ["template"] platforms = "Any" @@ -42,10 +51,10 @@ classifiers = [line.strip() for line in '''\ Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 - Programming Language :: Python :: 3.3 Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 Topic :: Internet :: WWW/HTTP Topic :: Internet :: WWW/HTTP :: Dynamic Content Topic :: Internet :: WWW/HTTP :: Site Management @@ -59,15 +68,15 @@ if PY2: del PY2 # Hide it from setup() ext_modules = [ - Extension("Cheetah._namemapper", - [os.path.join('Cheetah', 'c', '_namemapper.c')]), - # Extension("Cheetah._verifytype", - # [os.path.join('Cheetah', 'c', '_verifytype.c')]), - # Extension("Cheetah._filters", - # [os.path.join('Cheetah', 'c', '_filters.c')]), - # Extension('Cheetah._template', - # [os.path.join('Cheetah', 'c', '_template.c')]), - ] + Extension("Cheetah._namemapper", + [os.path.join('Cheetah', 'c', '_namemapper.c')]), + # Extension("Cheetah._verifytype", + # [os.path.join('Cheetah', 'c', '_verifytype.c')]), + # Extension("Cheetah._filters", + # [os.path.join('Cheetah', 'c', '_filters.c')]), + # Extension('Cheetah._template', + # [os.path.join('Cheetah', 'c', '_template.c')]), +] # Data Files and Scripts scripts = ('bin/cheetah-compile', @@ -77,20 +86,19 @@ scripts = ('bin/cheetah-compile', data_files = ['recursive: Cheetah *.tmpl *.txt *.rst LICENSE README.rst TODO'] -if not os.getenv('CHEETAH_INSTALL_WITHOUT_SETUPTOOLS'): - try: - if sys.platform == 'win32': - # use 'entry_points' instead of 'scripts' - del scripts - entry_points = { - 'console_scripts': [ - 'cheetah = Cheetah.CheetahWrapper:_cheetah', - 'cheetah-compile = ' - 'Cheetah.CheetahWrapper:_cheetah_compile', - ] - } - except ImportError: - pass +try: + if sys.platform == 'win32': + # use 'entry_points' instead of 'scripts' + del scripts + entry_points = { + 'console_scripts': [ + 'cheetah = Cheetah.CheetahWrapper:_cheetah', + 'cheetah-compile = ' + 'Cheetah.CheetahWrapper:_cheetah_compile', + ] + } +except ImportError: + pass long_description = '''\ Cheetah3 is a free (BSD-style) and open source template engine and code @@ -119,3 +127,7 @@ Recent Changes See http://cheetahtemplate.org/news.html for full details ''' + +long_description_content_type = "text/x-rst" + +python_requires = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*' |