-
Notifications
You must be signed in to change notification settings - Fork 78
/
setup.py
81 lines (71 loc) · 2.41 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import os
here = os.path.abspath(os.path.dirname(__file__))
exec(compile(open(os.path.join(here, 'tg', 'release.py')).read(), 'release.py', 'exec'), globals(), locals())
from setuptools import find_packages, setup
import sys
py_version = sys.version_info[:2]
if py_version < (2, 7):
raise RuntimeError('TurboGears2 requires Python 2.7 or better')
if py_version[0] == 3 and py_version < (3, 4):
raise RuntimeError('When using Python3 TurboGears2 requires at least Python3.4')
test_requirements = ['pytest',
'zope.sqlalchemy >= 0.4',
'repoze.who',
'repoze.who.plugins.sa >= 1.0.1',
'Genshi >= 0.5.1',
'Mako',
'WebTest',
'backlash >= 0.3.0',
'raven',
'Beaker',
'sqlalchemy',
'jinja2',
'typing;python_version<"3.5"',
'ming >= 0.8.0',
'Kajiki >= 0.4.4']
if py_version[0] == 3 and py_version < (3, 6):
test_requirements.extend(["formencode<2.0"])
else:
test_requirements.extend(['formencode>=1.3.0a1'])
if py_version[0] == 2:
test_requirements.extend(['TurboKid >= 1.0.4',
'tgming',
'tw.forms'])
install_requires=[
'WebOb >= 1.8.0, < 1.10.0',
'crank >= 0.8.0, < 0.9.0',
'repoze.lru',
'MarkupSafe'
]
setup(
name='TurboGears2',
version=version,
description=description,
long_description=long_description,
classifiers=[
'Intended Audience :: Developers',
'Environment :: Web Environment',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: WSGI',
],
keywords='turbogears',
author=author,
author_email=email,
url=url,
license=license,
packages=find_packages(exclude=('ez_setup', 'examples', 'tests', 'tests.*')),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'testing':test_requirements,
},
entry_points='''
'''
)