forked from googlearchive/simian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·95 lines (83 loc) · 2.68 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
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/usr/bin/env python
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# # Do NOT change the above sha-bang line unless if you know what you are doing.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# #
try:
from setuptools import setup, find_packages
except ImportError:
print 'required Python setuptools is missing.'
print 'install from http://pypi.python.org/pypi/setuptools'
raise SystemExit(1)
REQUIRE_BASE = [
'setuptools>=0.6c9', # fix bugs with old version on Leopard
'pyasn1==0.1.2',
'tlslite==0.3.8',
'pyyaml>=3.10',
]
REQUIRE_SETUP = REQUIRE_BASE + [
'google_apputils==0.4',
'python-dateutil>=1.4,<2', # because of google_apputils
]
REQUIRE_TEST = REQUIRE_SETUP + [
'django==1.6',
'icalendar==1.2',
'mox>=0.5.3',
'unittest2==0.5.1',
'webapp2',
'M2Crypto==0.21.1',
'WebOb==1.1.1',
]
REQUIRE_INSTALL = REQUIRE_BASE
SIMIAN_STUBS = [
('simianadmin', 'RunSimianAdmin'),
('simianauth', 'RunSimianAuth'),
]
SIMIAN_ENTRY_POINTS = ['%s = simian.stubs:%s' % s for s in SIMIAN_STUBS]
setup(
name = 'simian',
version = '2.3',
url = 'https://github.com/google/simian',
license = 'Apache 2.0',
description = 'An App Engine-based client & server component for Munki',
author = 'Google',
author_email = 'simian-eng@googlegroups.com',
packages = find_packages('src', exclude=['tests']),
package_dir = {'': 'src'},
package_data = {
'': ['*.zip'],
},
include_package_data = True,
entry_points = {
'console_scripts': SIMIAN_ENTRY_POINTS,
},
setup_requires = REQUIRE_SETUP,
install_requires = REQUIRE_INSTALL,
tests_require = REQUIRE_TEST,
google_test_dir = 'src/tests',
)