-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
82 lines (80 loc) · 2.82 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
from setuptools import setup, find_packages
import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ASSETS_PATH = os.path.join(BASE_DIR, 'app', 'public', 'assets')
setup(
name="sentry-ai",
version="1.0.0",
packages=find_packages(),
install_requires=[
"opencv-python-headless>=4.8.0",
"mediapipe>=0.10.0",
"pyobjc-framework-Quartz>=9.0",
"rumps>=0.4.0",
],
extras_require={
"dev": [
"pytest>=7.4.0",
"black>=23.0.0",
"flake8>=6.1.0",
"py2app>=0.28.0",
]
},
python_requires=">=3.10",
app=['app/main.py'],
data_files=[
('app/public/assets', [
os.path.join(ASSETS_PATH, 'MenuBarIcon.icns'),
os.path.join(ASSETS_PATH, 'AppIcon.png')
])
],
options={
'py2app': {
'argv_emulation': False,
'packages': ['cv2', 'mediapipe', 'rumps'],
'includes': ['numpy', 'mediapipe', 'cv2', 'rumps'],
'excludes': [
'sitecustomize',
'usercustomize',
'site',
'pip',
'setuptools',
'typing_extensions',
'pkg_resources',
'_distutils_hack'
],
'resources': [
('app/public/assets', [
os.path.join(ASSETS_PATH, 'MenuBarIcon.icns'),
os.path.join(ASSETS_PATH, 'AppIcon.png')
])
],
'iconfile': os.path.join(ASSETS_PATH, 'AppIcon.png'),
'strip': False,
'optimize': 0,
'plist': {
'LSUIElement': True,
'CFBundleName': 'SentryAI',
'CFBundleDisplayName': 'SentryAI',
'CFBundleIdentifier': 'com.sentry.ai',
'CFBundleVersion': '1.0.0',
'CFBundleShortVersionString': '1.0.0',
'LSMinimumSystemVersion': '10.13',
'NSHighResolutionCapable': True,
'LSMultipleInstancesProhibited': True,
'NSAppleEventsUsageDescription': 'This app needs to control other applications.',
'NSSystemAdministrationUsageDescription': 'This app needs to manage startup items.',
'NSCameraUsageDescription': 'This app needs access to the camera for face detection.',
'CFBundleDocumentTypes': [],
'CFBundleTypeRole': 'None',
'LSBackgroundOnly': True,
'NSSupportsAutomaticTermination': True,
'NSDockTilePlugIn': False,
'com.apple.security.automation.apple-events': True,
'com.apple.security.temporary-exception.apple-events': [
'com.apple.systemevents'
]
}
}
}
)