forked from toscawidgets/tw2.forms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
82 lines (74 loc) · 2.32 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
82
import sys
from setuptools import setup, find_packages
try:
import multiprocessing
import logging
except:
pass
# Requirements to install buffet plugins and engines
_extra_genshi = ["Genshi >= 0.3.5"]
_extra_mako = ["Mako >= 0.1.1"]
_extra_jinja = ["Jinja2"]
_extra_kajiki = ["Kajiki >= 0.5.5"]
requires = [
"tw2.core>=2.1.4",
"six",
]
tests_require = [
#'BeautifulSoup',
'nose',
'sieve',
'coverage',
] + _extra_genshi + _extra_mako + _extra_jinja + _extra_kajiki
if sys.version_info[0] == 2 and sys.version_info[1] <= 5:
requires.append('WebOb<=1.1.1')
tests_require.append('WebTest<2.0')
else:
tests_require.append('WebTest')
if sys.version_info[0] < 3:
tests_require.append('FormEncode')
setup(
name='tw2.forms',
version='2.2.5',
description='The basic form widgets for ToscaWidgets 2, a web widget toolkit.',
long_description=open('README.rst').read().split('\n\n', 1)[1],
author='Paul Johnston, Christopher Perkins, Alberto Valverde Gonzalez & contributors',
author_email='[email protected]',
url="http://toscawidgets.org/",
download_url="https://pypi.python.org/pypi/tw2.forms/",
license='MIT',
install_requires=requires,
packages=find_packages(exclude=['ez_setup', 'tests']),
namespace_packages=['tw2'],
zip_safe=False,
include_package_data=True,
test_suite='nose.collector',
entry_points="""
[tw2.widgets]
# Register your widgets so they can be listed in the WidgetBrowser
tw2.forms = tw2.forms
""",
keywords=[
'toscawidgets.widgets',
],
tests_require=tests_require,
extras_require={
'genshi': _extra_genshi,
'mako': _extra_mako,
'jinja': _extra_jinja,
'kajiki': _extra_kajiki,
'test': tests_require,
'tests': tests_require,
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Environment :: Web Environment :: ToscaWidgets',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Widget Sets',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'License :: OSI Approved :: MIT License',
],
)