-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
71 lines (66 loc) · 1.81 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
from setuptools import setup, find_packages
import sys
# Base settings required for CLI and GUI setup
base_setup = dict(
name="daruma",
version="0.1",
setup_requires=[],
packages=find_packages(),
include_package_data=True,
install_requires=[
"PyNaCl==1.0.1",
"PyECLib==1.2.0",
"uuid==1.30",
"robustsecretsharing==0.1",
"requests==2.9.0",
"Flask==0.10.1",
"bson==0.4.2",
"colorama==0.2.5",
"dropbox==4.0",
"appdirs==1.4.0",
"google-api-python-client==1.5.0",
"futures==3.0.5",
"onedrivesdk==1.0.5",
"boxsdk==1.5.1",
"watchdog==0.8.3"
],
dependency_links=[
"git+https://github.com/michsoch/robust-secret-sharing.git@rss#egg=robustsecretsharing-0.1"
],
extras_require={
"gui": [
"flask>=0.10.1",
"wxPython==3.0.2.0",
"wxPython-common==3.0.2.0"
],
":sys_platform == 'darwin'": [
'pyobjc==3.0.4'
]
}
)
# General settings needed for app builds
build_setup = {}
# Platform-specific build setup
if sys.platform == "darwin":
base_setup["setup_requires"].extend([
"py2app==0.10"
])
build_setup.update(
app=["gui/daruma_gui.py"],
data_files=["gui/webview_server/templates", 'gui/webview_server/static'],
options={
"py2app": {
"iconfile": "gui/icons/daruma.icns",
"optimize": 2,
"packages": ['jinja2', 'flask', 'cffi', 'dropbox', 'pyeclib', 'onedrivesdk', 'apiclient', 'oauth2client', 'httplib2', 'requests'],
"plist": {
"LSUIElement": True,
}
}
}
)
# Combine it all
base_setup.update(build_setup)
setup(
**base_setup
)