-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (67 loc) · 1.69 KB
/
pyproject.toml
File metadata and controls
78 lines (67 loc) · 1.69 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
[project]
name = "vggsound-pipeline"
version = "0.1.0"
description = "Filter VGGSound for sound effects with ML-based classification"
requires-python = ">=3.10"
dependencies = [
"transformers>=4.40",
"typer>=0.9",
"pydantic>=2.0",
"pydantic-settings>=2.0",
"orjson>=3.9",
"tqdm>=4.65",
"ffmpeg-python>=0.2",
"msclap>=1.0",
]
[project.optional-dependencies]
dev = ["ruff", "pytest", "pytest-cov"]
cpu = [
"torch>=2.6",
"torchaudio>=2.6",
"torchcodec>=0.1",
"accelerate>=0.27",
]
cuda = [
"torch>=2.6",
"torchaudio>=2.6",
"torchcodec>=0.1",
"accelerate>=0.27",
]
[project.scripts]
vggsound = "vggsound_pipeline.cli:app"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/vggsound_pipeline"]
[tool.uv]
environments = [
"sys_platform == 'darwin' and platform_machine == 'arm64'",
"sys_platform == 'linux'",
]
conflicts = [
[{ extra = "cpu" }, { extra = "cuda" }],
]
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", marker = "sys_platform == 'linux'", extra = "cpu" },
{ index = "pytorch-cu124", marker = "sys_platform == 'linux'", extra = "cuda" },
]
torchaudio = [
{ index = "pytorch-cpu", marker = "sys_platform == 'linux'", extra = "cpu" },
{ index = "pytorch-cu124", marker = "sys_platform == 'linux'", extra = "cuda" },
]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu124"
url = "https://download.pytorch.org/whl/cu124"
explicit = true
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
[tool.pytest.ini_options]
testpaths = ["tests"]