forked from epfl-mobots/vpl-teacher-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_serve_via_http.py
39 lines (35 loc) · 971 Bytes
/
setup_serve_via_http.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
"""
This is a setup.py script generated by py2applet and modified for vpl3
Usage:
python setup.py py2app
"""
from setuptools import setup
APPNAME = "Serve File"
APP = ['serve_via_http.py']
OPTIONS = {
"argv_emulation": True,
"dist_dir": ".",
"plist": {
"CFBundleIdentifier": "ch.epfl.mobots.http-file-server",
"CFBundleVersion": "0.1",
"NSHumanReadableCopyright":
"2019, École polytechnique fédérale de Lausanne (EPFL). Author: Yves Piguet.",
"CFBundleDocumentTypes": [
{
"CFBundleTypeExtensions": ["html", "htm"],
"CFBundleTypeName": "HTML document",
"CFBundleTypeRole": "Viewer"
},
{
"CFBundleTypeExtensions": ["jpg"],
"CFBundleTypeRole": "Viewer"
},
],
}
}
setup(
name=APPNAME,
app=APP,
options={"py2app": OPTIONS},
setup_requires=["py2app"],
)