forked from whitphx/streamlit-webrtc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
70 lines (64 loc) · 2.45 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
[tool.poetry]
name = "streamlit-webrtc"
version = "0.47.1"
description = ""
authors = ["Yuichiro Tsuchiya <t.yic.yt@gmail.com>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/whitphx/streamlit-webrtc"
include = ["./streamlit_webrtc/frontend/build/**/*"]
exclude = ["./streamlit_webrtc/frontend/[!build]*"]
[tool.poetry.dependencies]
python = ">=3.8,<4,!=3.9.7" # 3.9.7 is excluded due to https://github.com/streamlit/streamlit/pull/5168
# For allow-same-origin, >=0.73.0 is required. See https://blog.streamlit.io/streamlit-components-security-and-a-five-month-quest-to-ship-a-single-line-of-code/
# 0.84.0 has an error at marshalling component values.
streamlit = ">=0.84.1"
aiortc = "^1.4.0" # aiortc<1.4.0 causes an error with cryptography>=39.0.0. See https://github.com/whitphx/streamlit-webrtc/issues/1164. The fix was introduced into aiortc in https://github.com/aiortc/aiortc/commit/08b0a7e9f5030a9f7e5617382e92560d4ae763a2 that 1.4.0 included.
typing_extensions = { version = ">=3.7.4,<5.0.0", python = "<3.8" }
packaging = ">=20.0"
[tool.poetry.group.dev.dependencies]
black = "^21.12b0"
click = ">=7.0,<8.0" # We must specify the click version because we install older versions of Streamlit in the CI process and their depending click version is different from the newer releases.
isort = "^5.10.1"
flake8 = "^5.0.4"
mypy = "^1.0.0"
pydub = "^0.25.1"
matplotlib = "^3.5.1"
deepspeech = { version = "^0.9.3", python = ">=3.5,<=3.9" } # DeepSpeech 0.9.3 supports Python version 3.5, 3.6, 3.7, 3.8 and 3.9; https://github.com/mozilla/DeepSpeech/releases/tag/v0.9.3
streamlit-server-state = "^0.17.1"
pytest = "^7.1.2"
opencv-python-headless = "^4.5.4.58"
# It is necessary to specify numpy and pandas versions for Poetry to resolve the package versions correctly and avoid errors.
numpy = "^1.21.0"
pandas = [
{version = "1.1.5", python = ">=3.7,<3.8"},
{version = "^1.4.0", python = ">=3.8,<3.11"},
]
streamlit = "^1.13.0"
twilio = "^8.1.0"
[tool.black]
line-length = 88
target-version = ['py38']
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| streamlit_webrtc/frontend
)
'''
[tool.isort]
# https://pycqa.github.io/isort/docs/configuration/black_compatibility/
profile = "black"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"