-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
78 lines (68 loc) · 1.91 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
from setuptools import setup, Command, find_packages
version = '0.1'
#
# integration with py.test for `python setup.py test`
#
tests_require = [
"pytest"
]
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import py
py.cmdline.pytest(py.std.sys.argv[2:])
#
# determine requirements
#
requirements = [
"WebOb >= 1.0.0",
"WebCore >= 1.0.0",
"simplegeneric >= 0.7",
"Mako >= 0.4.0",
"Paste >= 1.7.5.1",
"PasteScript >= 1.7.3",
"formencode >= 1.2.2",
"WebTest >= 1.2.2"
]
try:
import json
except:
try:
import simplejson
except:
requirements.append("simplejson >= 2.1.1")
#
# call setup
#
setup(
name = 'pecan',
version = version,
description = "A WSGI object-dispatching web framework, in the spirit of TurboGears, only much much smaller, with many fewer dependencies.",
long_description = None,
classifiers = [],
keywords = '',
author = 'Jonathan LaCour',
author_email = '[email protected]',
url = 'http://github.com/cleverdevil/pecan',
license = 'BSD',
packages = find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data = True,
scripts = ['bin/pecan'],
zip_safe = False,
cmdclass = {'test': PyTest},
install_requires = requirements,
entry_points = """
[paste.paster_command]
pecan-serve = pecan.commands:ServeCommand
pecan-shell = pecan.commands:ShellCommand
pecan-create = pecan.commands:CreateCommand
[paste.paster_create_template]
pecan-base = pecan.templates:BaseTemplate
[console_scripts]
pecan = pecan.commands:CommandRunner.handle_command_line
""",
)