-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·80 lines (67 loc) · 2.07 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
#!/usr/bin/env python
#
# Copyright (c) 2006-2012 Thomas Lotze
# See also LICENSE.txt
# This should be only one line. If it must be multi-line, indent the second
# line onwards to keep the PKG-INFO file format intact.
"""Ophelia builds a web site from TAL templates with zero code repetition.
"""
from setuptools import setup, find_packages
import glob
import os.path
import sys
def project_path(*names):
return os.path.join(os.path.dirname(__file__), *names)
longdesc = "\n\n".join((open(project_path("README.txt")).read(),
open(project_path("ABOUT.txt")).read()))
entry_points = """\
[console_scripts]
ophelia-wsgiref = ophelia.wsgi:wsgiref_server
[paste.app_factory]
main = ophelia.wsgi:Application.paste_app_factory
"""
install_requires = [
"xsendfile",
"zope.interface",
"zope.tales",
"zope.pagetemplate",
"zope.exceptions",
]
extras_require = {
"test": [
'distribute',
'webtest',
],
}
# BBB Python 2.6 compatibility
if sys.version_info < (2, 7):
extras_require['test'].append('unittest2')
classifiers = """\
Environment :: Web Environment
License :: OSI Approved :: Zope Public License
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 2 :: Only
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: Dynamic Content
"""[:-1].split('\n')
setup(name="ophelia",
version='0.5.dev0',
description=__doc__.strip(),
long_description=longdesc,
keywords="web template xhtml tal wsgi python",
classifiers=classifiers,
author="Thomas Lotze",
author_email="[email protected]",
url="http://thomas-lotze.de/en/software/ophelia/",
license="ZPL 2.1",
packages=find_packages(),
entry_points=entry_points,
install_requires=install_requires,
extras_require=extras_require,
include_package_data=True,
data_files=[('', glob.glob(project_path('*.txt')))],
zip_safe=False,
)