-
Notifications
You must be signed in to change notification settings - Fork 309
/
Copy pathpyproject.toml
126 lines (109 loc) · 3.55 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
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
123
124
125
126
[build-system]
requires = [
"hatchling",
"hatch-requirements-txt",
"hatch-fancy-pypi-readme>=22.5.0",
]
build-backend = "hatchling.build"
[project]
name = "fastrtc"
version = "0.0.22.rc2"
description = "The realtime communication library for Python"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.10"
authors = [{ name = "Freddy Boulton", email = "[email protected]" }]
keywords = [
"streaming",
"webrtc",
"realtime",
"machine learning",
"computer vision",
"audio",
"video",
"image",
"audio processing",
"video processing",
"gradio-custom-component",
]
dependencies = [
"gradio>=4.0,<6.0",
"aiortc",
"aioice>=0.10.1",
"audioop-lts;python_version>='3.13'",
"librosa",
"numpy>=2.0.2", # because of librosa
"numba>=0.60.0",
"standard-aifc;python_version>='3.13'",
"standard-sunau;python_version>='3.13'",
] # Add dependencies here
classifiers = [
'Development Status :: 3 - Alpha',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Internet',
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Visualization',
]
# The repository and space URLs are optional, but recommended.
# Adding a repository URL will create a badge in the auto-generated README that links to the repository.
# Adding a space URL will create a badge in the auto-generated README that links to the space.
# This will make it easy for people to find your deployed demo or source code when they
# encounter your project in the wild.
[project.urls]
repository = "https://github.com/gradio-app/fastrtc"
issues = "https://github.com/gradio-app/fastrtc/issues"
Documentation = "https://fastrtc.org/"
[project.optional-dependencies]
dev = ["build", "twine", "httpx", "pytest"]
vad = ["onnxruntime>=1.20.1"]
tts = ["kokoro-onnx"]
stopword = ["fastrtc-moonshine-onnx", "onnxruntime>=1.20.1"]
stt = ["fastrtc-moonshine-onnx", "onnxruntime>=1.20.1"]
[tool.hatch.build]
artifacts = ["/backend/fastrtc/templates", "*.pyi"]
[tool.hatch.build.targets.wheel]
packages = ["/backend/fastrtc"]
[tool.pytest.ini_options]
testpaths = ["test/"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
src = ["demo", "backend/fastrtc", "test"]
target-version = "py310"
extend-exclude = ["demo/phonic_chat", "demo/nextjs_voice_chat"]
[tool.ruff.format]
exclude = ["*.pyi"]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
select = ["E", "F", "W", "Q", "I", "UP"]
# These can be turned on when the framework is more mature (Too many errors right now)
exclude = ["D"]
# Avoid enforcing line-length violations (`E501`)
ignore = ["E501"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
"demo/talk_to_smolagents/app.py" = ["W291"]
[tool.pyright]
include = ["backend/fastrtc"]
exclude = ["**/__pycache__", "**/*.pyi"]
reportMissingImports = false
reportMissingTypeStubs = false
pythonVersion = "3.10"
pythonPlatform = "Linux"