-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
95 lines (90 loc) · 3.01 KB
/
setup.py
File metadata and controls
95 lines (90 loc) · 3.01 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
89
90
91
92
93
94
95
#!/usr/bin/env python3
"""
Professional setup script for Text Converter macOS app
"""
from setuptools import setup, find_packages
import os
# App configuration
APP_NAME = "TextConverter Pro"
APP = ['textconverter_launcher.py']
DATA_FILES = []
# Find all source files
def find_data_files():
data_files = []
for root, dirs, files in os.walk('src'):
if '__pycache__' in root:
continue
py_files = [os.path.join(root, f) for f in files if f.endswith('.py')]
if py_files:
data_files.append((root, py_files))
return data_files
OPTIONS = {
'argv_emulation': True,
'iconfile': None,
'plist': {
'CFBundleName': APP_NAME,
'CFBundleDisplayName': APP_NAME,
'CFBundleIdentifier': 'com.textconverter.app',
'CFBundleVersion': '1.0.0',
'CFBundleShortVersionString': '1.0.0',
'LSUIElement': True, # Background app (no dock icon)
'NSHighResolutionCapable': True,
'LSMinimumSystemVersion': '10.12.0',
'NSAppleEventsUsageDescription': 'Text Converter needs access to control other applications for text conversion.',
'NSSystemAdministrationUsageDescription': 'Text Converter needs accessibility permissions to monitor keyboard shortcuts.'
},
'packages': ['src', 'src.core', 'src.ui', 'src.utils'],
'includes': [
'src.core.converter',
'src.core.hotkeys',
'src.core.autopaste',
'src.ui.menubar_app',
'src.ui.notification_manager',
'src.ui.feedback_dialog',
'src.utils.settings',
'src.utils.logger',
'src.utils.error_handler',
'src.utils.feedback_system',
'src.utils.exceptions',
'src.utils.github_updater',
'pynput',
'pynput.keyboard',
'pynput.keyboard._darwin',
'pynput.mouse',
'pynput.mouse._darwin',
'pynput._util',
'pynput._util.darwin'
],
'site_packages': True,
'optimize': 0, # No optimization to avoid import issues
'excludes': ['tkinter', 'unittest', 'test', 'pytest'],
}
setup(
name=APP_NAME,
app=APP,
data_files=find_data_files(),
options={'py2app': OPTIONS},
setup_requires=['py2app'],
packages=find_packages(),
install_requires=[
'rumps>=0.4.0',
'pyperclip>=1.8.2',
'pynput>=1.7.6'
],
python_requires='>=3.8',
author='Simone Mattioli',
description='Professional text conversion tool for macOS',
long_description='A professional macOS application for instant text case conversion with global hotkeys.',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Operating System :: MacOS :: MacOS X',
],
)