-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (46 loc) · 1.28 KB
/
setup.py
File metadata and controls
51 lines (46 loc) · 1.28 KB
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
from __future__ import annotations
from setuptools import setup
APP = ["applyrx_ui.py"]
DATA_FILES = [
"lyrics_state.py",
"applyrx_state.py",
"main.py",
"apple_music_ttml.py",
]
OPTIONS = {
"argv_emulation": False,
"iconfile": "assets/Applyrx.icns",
"packages": [
"AppKit", "Foundation", "objc",
"rich",
"requests",
"urllib3",
"certifi",
"charset_normalizer",
"idna",
"PIL",
],
"includes": [
"PyObjCTools.AppHelper",
"urllib.request", "urllib.parse",
"sqlite3", "json", "subprocess",
"plistlib", "shutil", "tempfile", "re", "time",
],
"plist": {
"CFBundleName": "Applyrx",
"CFBundleDisplayName": "Applyrx",
"CFBundleIdentifier": "local.applyrx.lyrics",
"CFBundleVersion": "0.1.0",
"CFBundleShortVersionString": "0.1.0",
"LSUIElement": True,
"NSAppleEventsUsageDescription": "Applyrx reads the current Apple Music track and playback position to synchronize lyrics.",
"NSLoginItemsUsageDescription": "Applyrx can launch at login to keep lyrics always available.",
},
}
setup(
app=APP,
name="Applyrx",
data_files=DATA_FILES,
options={"py2app": OPTIONS},
setup_requires=["py2app"],
)