-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml.MAC
More file actions
170 lines (146 loc) · 4.96 KB
/
pyproject.toml.MAC
File metadata and controls
170 lines (146 loc) · 4.96 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
# macOS version — see INSTALL_MAC.md
# Copy this file to pyproject.toml before installing on macOS.
# Do NOT commit this file as pyproject.toml; the main pyproject.toml is the Linux/CUDA version.
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "stemforge"
version = "0.1.0"
description = "AI-powered stem separation, MIDI extraction, and music generation desktop application"
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = "==3.11.*"
authors = [
{ name = "StemForge Contributors" },
]
keywords = [
"audio",
"stem-separation",
"midi",
"music-generation",
"demucs",
"basicpitch",
"musicgen",
]
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: End Users/Desktop",
"Topic :: Multimedia :: Sound/Audio :: Analysis",
"Topic :: Multimedia :: Sound/Audio :: Editors",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
# ---------------------------------------------------------------------------
# Runtime dependencies — macOS / Apple Silicon
# ---------------------------------------------------------------------------
dependencies = [
# Core PyTorch stack — standard PyPI wheels (no CUDA index needed on macOS)
"torch>=2.1.0",
"torchaudio>=2.1.0",
# GitHub-pinned ML components
"demucs @ git+https://github.com/facebookresearch/demucs.git@v4.0.1",
# Demucs deps (mdx_extra_q / diffq excluded — diffq not available on macOS)
"dora-search==0.1.12",
"submitit==1.5.4",
"openunmix==1.3.0",
"julius==0.2.7",
"lameenc==1.8.1",
# BasicPitch deps (ai-edge-litert excluded — not available on macOS)
"pretty_midi==0.2.11",
"mir_eval==0.8.2",
"resampy>=0.4.0",
"setuptools==68.0.0",
# Audio I/O + DSP
"soundfile==0.13.1",
"numpy>=2.0.0",
"scipy==1.13.0",
"librosa==0.11.0",
"soxr==1.0.0",
"pydub==0.25.1",
# MIDI I/O
"mido==1.3.3",
# Vocal MIDI pipeline
"faster-whisper>=1.0.0",
# BS-Roformer separation
"bs-roformer>=0.3.2",
"pyyaml>=6.0.0",
# Stable Audio Open (via diffusers)
"diffusers>=0.30.0",
"torchsde>=0.2.6",
"transformers>=4.40.0",
"accelerate>=0.30.0",
"safetensors>=0.4.2",
"einops>=0.7.0",
"huggingface_hub>=0.23.0",
# MIDI cleanup, analysis, and sheet music (music21)
"music21>=9.1,<10",
# GUI
"dearpygui>=1.11.0",
"sounddevice>=0.5.0",
"pyfluidsynth>=1.3.4",
# Config (tomllib for Python 3.10)
"tomli>=2.0.0; python_version < '3.11'",
# .env loading
"python-dotenv>=1.0.0",
]
# ---------------------------------------------------------------------------
# Dependency groups (PEP 735) — uv dev tooling
# ---------------------------------------------------------------------------
[dependency-groups]
dev = ["pip"]
# ---------------------------------------------------------------------------
# Optional dependency groups (PEP 508 extras)
# ---------------------------------------------------------------------------
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"ruff>=0.4.0",
"mypy>=1.9.0",
"pre-commit>=3.7.0",
]
# ---------------------------------------------------------------------------
# Console scripts
# ---------------------------------------------------------------------------
[project.scripts]
stemforge = "gui.app:main"
# ---------------------------------------------------------------------------
# Hatchling build configuration
# ---------------------------------------------------------------------------
[tool.hatch.build.targets.wheel]
packages = ["gui", "pipelines", "models", "utils"]
include = ["config.py"]
[tool.hatch.metadata]
allow-direct-references = true
# ---------------------------------------------------------------------------
# Ruff – linter and formatter
# ---------------------------------------------------------------------------
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = ["E", "W", "F", "I", "UP", "B", "C4", "SIM"]
ignore = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["config", "gui", "pipelines", "models", "utils"]
# ---------------------------------------------------------------------------
# Mypy – static type checking
# ---------------------------------------------------------------------------
[tool.mypy]
python_version = "3.10"
strict = false
warn_unused_ignores = true
warn_return_any = true
disallow_untyped_defs = true
ignore_missing_imports = true
# ---------------------------------------------------------------------------
# Pytest
# ---------------------------------------------------------------------------
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--tb=short -q"