forked from LuckLittleBoy/SenseVoice-OneApi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (80 loc) · 2.15 KB
/
Copy pathpyproject.toml
File metadata and controls
88 lines (80 loc) · 2.15 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sense-voice-openai-api"
version = "1.0.0rc0"
description = "Capability Recommendation Copilot"
authors = [
{ name = "Pengxuan Men", email = "menpx@asiainfo.com" },
]
license = { text = "Proprietary" }
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.11,<3.12"
dependencies = [
"torch==2.3.0+cpu; platform_machine != 'aarch64' and platform_machine != 'arm64'",
"torch==2.3.0; platform_machine == 'aarch64' or platform_machine == 'arm64'",
"torchaudio==2.3.0+cpu; platform_machine != 'aarch64' and platform_machine != 'arm64'",
"torchaudio==2.3.0; platform_machine == 'aarch64' or platform_machine == 'arm64'",
"funasr>=1.1.3",
"numpy<=1.26.4",
"fastapi>=0.111.1",
"uvicorn",
"python-multipart",
"ffmpeg-python",
]
[project.optional-dependencies]
lint = [
"flake8>=5.0.4,<6.0.0",
"pyproject-flake8>=5.0.4,<6.0.0",
"pre-commit>=3.6.0,<4.0.0",
"isort>=5.13.1,<6.0.0",
"black>=23.12.0,<24.0.0",
]
test = [
"pytest>=7.4.3,<8.0.0",
"coverage>=7.2.7,<8.0.0",
"pytest-cov>=4.1.0,<5.0.0",
]
package = [
"hatchling",
"pip",
"modelscope",
]
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.uv]
python-install-mirror = "https://mirrors.aliyun.com/python-release/"
index-url = "https://mirrors.aliyun.com/pypi/simple"
[[tool.uv.index]]
name = "pytorch"
url = "https://mirrors.nju.edu.cn/pytorch/whl/cpu"
explicit = true
[tool.uv.sources]
torch = { index = "pytorch" }
torchaudio = { index = "pytorch" }
[tool.flake8]
max-line-length = 300
ignore = ['E203', 'E231', 'E241', 'W291', 'W293', 'W503', 'E501']
per-file-ignores = [
'__init__.py:F401',
]
count = true
[tool.coverage.report]
exclude_also = [
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
"except Exception as e:",
]
omit = ["src/main.py", "src/chat.py"]