-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
213 lines (194 loc) · 6.75 KB
/
Copy pathpyproject.toml
File metadata and controls
213 lines (194 loc) · 6.75 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "ableton-hub"
version = "1.0.11"
description = "Cross-platform desktop application for organizing Ableton projects"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.11"
authors = [
{name = "Tom Carlile", email = "carlile.tom@gmail.com"}
]
keywords = ["ableton", "music", "production", "project-management", "pyqt6"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Multimedia :: Sound/Audio",
]
dependencies = [
"PyQt6>=6.10.0",
"SQLAlchemy>=2.0.0",
"watchdog>=6.0.0",
"zeroconf>=0.148.0",
"qasync>=0.28.0",
"aiosqlite>=0.22.0",
"Pillow>=12.0.0",
"rapidfuzz>=3.14.0",
# Enhanced XML Parsing (for deeper ALS analysis) - Optional, falls back to stdlib
"lxml>=6.0.0",
# ML/AI Features - Lazy loaded at runtime with graceful fallback
"scikit-learn>=1.8.0",
"numpy>=2.0.0",
"pandas>=3.0.0",
"librosa>=0.11.0",
"soundfile>=0.13.0",
# Timeline Marker Extraction (Ableton Live .als marker extraction)
"dawtool @ git+https://github.com/EazyTom/dawtool",
# Markdown rendering for FTUE / User Guide
"markdown>=3.5.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-qt>=4.2.0",
"pytest-asyncio>=0.21.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.5.0",
]
[project.scripts]
ableton-hub = "src.main:main"
[project.gui-scripts]
ableton-hub-gui = "src.main:main"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["src", "src.*"]
[tool.setuptools.package-data]
"*" = ["*.png", "*.ico", "*.json", "*.md", "*.mp3", "*.ogg"]
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "C4"]
ignore = [
"E402", # Module level import not at top of file (deferred imports are intentional)
"E712", # Avoid equality comparisons to True (SQLAlchemy filters need == True)
"E501", # Line too long (we'll fix critical ones, but allow some long lines)
"E711", # Comparison to None should be `cond is None` (SQLAlchemy uses == None)
"F401", # Unused imports (some are for availability checks)
"F841", # Local variable assigned but never used (some intentional)
"N806", # Variable should be lowercase (ML code uses X, X_scaled convention)
"N803", # Argument name should be lowercase (ML code uses X_scaled convention)
"N802", # Function name should be lowercase (PyQt method names like showEvent, closeEvent)
"UP022", # Prefer capture_output (legacy subprocess calls)
"C401", # Unnecessary generator (set comprehensions with queries are clearer)
"I001", # Import block is un-sorted (auto-fixable, but not critical)
"W293", # Blank line contains whitespace (auto-fixable)
"W291", # Trailing whitespace (auto-fixable)
]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
# SQLAlchemy plugin helps with Column type inference
plugins = ["sqlalchemy.ext.mypy.plugin"]
# Show error codes for easier suppression
show_error_codes = true
# Per-module overrides for known false positives
[[tool.mypy.overrides]]
module = [
"src.database.*",
"src.ui.widgets.*",
"src.ui.dialogs.*",
"src.services.watcher",
"src.services.scanner",
"src.services.archive_service",
"src.services.smart_collections",
"src.services.duplicate_detector",
"src.services.audio_preview",
"src.services.export_tracker",
"src.services.remote_sync",
"src.ui.controllers.*",
"src.ui.workers.*",
]
# Suppress SQLAlchemy Column type false positives
# These are runtime-correct but mypy can't infer properly
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"src.services.ml_feature_extractor", # librosa (external library, lazy-loaded)
"src.services.link_scanner", # zeroconf (external library)
"src.services.health_calculator", # SQLAlchemy Mapped types
"src.services.live_launcher", # External library types
]
# Suppress false positives from external libraries without type stubs
ignore_errors = true
[tool.pyright]
pythonVersion = "3.11"
reportMissingImports = "none"
reportMissingTypeStubs = "none"
# ============================================================
# Briefcase Configuration (Native Installer Packaging)
# Build Windows .msi: briefcase package windows -p msi
# Build macOS .dmg: briefcase package macos -p dmg
# ============================================================
[tool.briefcase]
project_name = "Ableton Hub"
bundle = "com.abletonhub"
version = "1.0.11"
url = "https://github.com/EazyTom/ableton-hub"
license.file = "LICENSE"
author = "Tom Carlile"
author_email = "carlile.tom@gmail.com"
[tool.briefcase.app.src]
formal_name = "Ableton Hub"
description = "Cross-platform desktop application for organizing Ableton projects"
long_description = """Ableton Hub helps you organize, manage, and discover your \
Ableton Live projects across multiple locations. Search, sort, tag, collect, \
and preview your projects with advanced similarity analysis."""
icon = "src/resources/icons/hub-icon"
sources = ["src"]
requires = [
"PyQt6>=6.10.0",
"SQLAlchemy>=2.0.0",
"watchdog>=6.0.0",
"zeroconf>=0.148.0",
"qasync>=0.28.0",
"aiosqlite>=0.22.0",
"Pillow>=12.0.0",
"rapidfuzz>=3.14.0",
# Enhanced XML Parsing
"lxml>=6.0.0",
# Markdown rendering for FTUE / User Guide
"markdown>=3.5.0",
]
[tool.briefcase.app.src.macOS]
# Target macOS 12.0+ (Monterey, 2021) so pip accepts macosx_12_0_arm64 wheels.
# Without this, Briefcase defaults to macOS 11.0 and scikit-learn wheels are rejected.
min_os_version = "12.0"
# ARM64-only build: numba/llvmlite (librosa transitive deps) lack x86_64 wheels.
# All Macs since late 2020 are Apple Silicon. Intel Macs can use pip install.
universal_build = false
requires = [
"dawtool @ git+https://github.com/EazyTom/dawtool",
"scikit-learn>=1.8.0",
"numpy>=2.0.0",
"pandas>=3.0.0",
"librosa>=0.11.0",
"soundfile>=0.13.0",
]
[tool.briefcase.app.src.windows]
# Windows has compatible wheels for everything, so include all optional features:
# - dawtool for timeline marker extraction
# - ML/AI features (scikit-learn, etc.)
requires = [
"dawtool @ git+https://github.com/EazyTom/dawtool",
"scikit-learn>=1.8.0",
"numpy>=2.0.0",
"pandas>=3.0.0",
"librosa>=0.11.0",
"soundfile>=0.13.0",
]