-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (112 loc) · 3.53 KB
/
pyproject.toml
File metadata and controls
122 lines (112 loc) · 3.53 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "proc-tap"
dynamic = ["version"]
description = "Cross-platform process-level audio capture library"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [
{name = "m96-chan", email = "y_harada@technologies.moe"}
]
keywords = ["audio", "capture", "wasapi", "windows", "linux", "macos", "pulseaudio", "coreaudio", "process", "loopback"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: Microsoft :: Windows",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: Microsoft :: Windows :: Windows 11",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: C++",
"Topic :: Multimedia :: Sound/Audio :: Capture/Recording",
"Topic :: Software Development :: Libraries :: Python Modules",
]
# Platform-specific dependencies (automatically installed based on OS)
dependencies = [
"numpy>=1.20.0",
"scipy>=1.7.0",
"pulsectl>=23.5.0; sys_platform == 'linux'",
"pyobjc-core>=9.0; sys_platform == 'darwin'",
"pyobjc-framework-CoreAudio>=9.0; sys_platform == 'darwin'",
]
[project.urls]
Homepage = "https://github.com/m96-chan/ProcTap"
Repository = "https://github.com/m96-chan/ProcTap"
Issues = "https://github.com/m96-chan/ProcTap/issues"
[project.scripts]
proctap = "proctap.__main__:main"
[project.optional-dependencies]
dev = [
"pytest",
"mypy",
"types-setuptools",
"types-psutil",
"scipy-stubs",
]
docs = [
"mkdocs-material>=9.0.0",
"mkdocstrings[python]>=0.24.0",
]
linux = [
"pulsectl>=23.5.0",
]
# Contrib modules with optional dependencies
contrib = [
"faster-whisper>=1.0.0",
]
# High-quality resampling using libsamplerate (optional, scipy fallback available)
# Note: samplerate package may fail to build on Windows with Python 3.13+ due to
# C compiler compatibility issues (as of 2025-01). Non-Windows platforms and
# Python <3.13 should work fine. If installation fails, scipy's polyphase
# filtering provides excellent quality as a fallback (though 30-50% slower).
# This is an optional optimization - the converter works well without it.
hq-resample = [
"samplerate>=0.1.0; python_version < '3.13' or sys_platform != 'win32'",
]
[tool.setuptools.packages.find]
where = ["src"]
include = ["proctap*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = false
files = ["src"]
# Platform-specific and optional dependencies
[[tool.mypy.overrides]]
module = [
"pulsectl",
"pulsectl.*",
"discord",
"discord.*",
"faster_whisper",
"faster_whisper.*",
"samplerate",
"samplerate.*",
"Foundation",
"Foundation.*",
"CoreAudio",
"CoreAudio.*",
]
ignore_missing_imports = true
[tool.setuptools.dynamic]
version = {attr = "proctap._version.__version__"}