-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
88 lines (84 loc) · 2.43 KB
/
Copy pathsetup.py
File metadata and controls
88 lines (84 loc) · 2.43 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
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
"""
py2app build configuration for Doc → MD Converter.
Run: python setup.py py2app
"""
from setuptools import setup
APP = ["app.py"]
OPTIONS = {
"argv_emulation": False, # Disable to avoid crashes on newer macOS
"semi_standalone": False,
"site_packages": True,
"packages": [
"customtkinter",
"tkinterdnd2",
"mammoth",
"markdownify",
"openpyxl",
"pptx",
"pdfplumber",
"pdfminer",
"docx",
"reportlab",
"PIL",
"bs4",
"lxml",
"six",
"et_xmlfile",
"packaging",
],
"includes": [
"converter",
"md_export",
"tkinter",
"tkinter.filedialog",
"tkinter.messagebox",
"threading",
"pathlib",
"re",
"os",
],
"excludes": ["matplotlib", "scipy", "numpy", "pandas", "jupyter"],
"plist": {
"CFBundleName": "Doc to MD",
"CFBundleDisplayName": "Doc to MD",
"CFBundleIdentifier": "com.doctomd.converter",
"CFBundleVersion": "1.0.0",
"CFBundleShortVersionString": "1.0",
"NSHighResolutionCapable": True,
"LSMinimumSystemVersion": "10.14",
"NSHumanReadableCopyright": "© 2025 Doc to MD",
"CFBundleDocumentTypes": [
{
"CFBundleTypeName": "Word Document",
"CFBundleTypeExtensions": ["docx", "doc"],
"CFBundleTypeRole": "Viewer",
},
{
"CFBundleTypeName": "Excel Spreadsheet",
"CFBundleTypeExtensions": ["xlsx", "xls"],
"CFBundleTypeRole": "Viewer",
},
{
"CFBundleTypeName": "PowerPoint Presentation",
"CFBundleTypeExtensions": ["pptx", "ppt"],
"CFBundleTypeRole": "Viewer",
},
{
"CFBundleTypeName": "PDF Document",
"CFBundleTypeExtensions": ["pdf"],
"CFBundleTypeRole": "Viewer",
},
{
"CFBundleTypeName": "Markdown Document",
"CFBundleTypeExtensions": ["md", "markdown"],
"CFBundleTypeRole": "Viewer",
},
],
},
}
setup(
name="Doc to MD",
app=APP,
options={"py2app": OPTIONS},
setup_requires=["py2app"],
)