-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
78 lines (68 loc) · 2.06 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools >= 67.6.1", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "whisper2subs"
description = "Transcribes audio using Whisper and translates it using DeepL."
authors = [{name = "Daniel Luque", email = "[email protected]"}]
readme = "README.md"
license = {text = "MIT"}
keywords = ["whisper", "subs", "cli", "translate", "transcribe"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: GPU :: NVIDIA CUDA",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Multimedia :: Video",
"Topic :: Utilities",
"Typing :: Typed",
]
requires-python = ">=3.8,<3.12"
dependencies = [
"openai-whisper ==20231117",
"deepl ~=1.16.1",
"Click ~=8.1.7"
]
dynamic = ["version"]
[project.urls]
"Source Code" = "https://github.com/LuqueDaniel/whisper2subs"
"Issue Tracker" = "https://github.com/LuqueDaniel/whisper2subs/issues"
Documentation = "https://github.com/LuqueDaniel/whisper2subs/blob/main/README.md"
[project.optional-dependencies]
dev = [
"pre-commit ==3.5.0", # <= py38
"black >=23.12.1",
"isort >=5.13.2",
"ruff >=0.1.9",
"mypy >=1.8.0",
]
[project.scripts]
whisper2subs = "whisper2subs.cli:whisper2subs"
[tool.setuptools]
packages = ["whisper2subs"]
dynamic = {version = {attr = "whisper2subs.__version__"}}
[tool.black]
target-version = ["py38"]
[tool.isort]
profile = "black"
known_third_party = ["click", "whisper", "deepl"]
[tool.ruff]
target-version = "py38"
src = ["whisper2subs"]
fix = false
line-length = 88 # its default
select = ["F", "E", "W", "C", "B", "N"]
[tool.mypy]
strict = true
ignore_missing_imports = true
exclude = ["build"]
[[tool.mypy.overrides]]
module = ["deepl"]
follow_imports = "skip"