-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (54 loc) · 1.98 KB
/
pyproject.toml
File metadata and controls
66 lines (54 loc) · 1.98 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "aTrain"
description = "aTrain is a tool for automatically transcribing speech recordings utilizing state-of-the-art machine learning models without uploading any data."
authors = [
{ name = "Armin Haberl", email = "armin.haberl@uni-graz.at" },
{ name = "Jürgen Fleiß", email = "juergen.fleiss@uni-graz.at" },
{ name = "Dominik Kowald", email = "dkowald@know-center.at" },
{ name = "Stefan Thalmann", email = "stefan.thalmann@uni-graz.at" },
]
dynamic = ["version"]
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.11"
dependencies = [
"aTrain_core@git+https://github.com/JuergenFleiss/atrain_core.git@develop",
"wakepy==0.7.2",
"show-in-file-manager==1.1.4",
"typer==0.16.0",
"nicegui==2.21.1",
"pywebview==6.1",
"pywebview[GTK]; sys_platform == 'linux'",
"dask; sys_platform == 'linux'",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["aTrain*"]
[project.scripts]
aTrain = "aTrain.app:cli"
[tool.setuptools.dynamic]
version = { attr = "aTrain.version.__version__" }
[tool.uv]
# torch+cu128 wheels live only on download.pytorch.org; PyPI rejects
# local-version tags (+...), so cross-index name collision is impossible.
index-strategy = "unsafe-best-match"
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
[tool.uv.sources]
torch = [{ index = "pytorch-cu128", marker = "sys_platform == 'linux'" }]
torchaudio = [{ index = "pytorch-cu128", marker = "sys_platform == 'linux'" }]
torchvision = [{ index = "pytorch-cu128", marker = "sys_platform == 'linux'" }]
[dependency-groups]
dev = [
"ruff>=0.15.0",
"bandit[toml]>=1.9.0",
"pip-audit>=2.10.0",
]
[tool.bandit]
# Only the aTrain package is scanned (CI runs `bandit -r aTrain`); these
# excludes keep ad-hoc local runs from descending into build/venv/model dirs.
exclude_dirs = [".venv", "build", "dist", "aTrain.egg-info", "aTrain/required_models"]