-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
229 lines (183 loc) · 5.97 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
[tool.poetry]
name = "chatsky"
version = "0.9.0"
description = "Chatsky is a free and open-source software stack for creating chatbots, released under the terms of Apache License 2.0."
license = "Apache-2.0"
authors = [
"Denis Kuznetsov <[email protected]>",
"Roman Zlobin <[email protected]>",
"Aleksandr Sergeev <[email protected]>",
"Daniil Ignatiev <[email protected]>",
]
readme = "README.md"
homepage = "https://github.com/deeppavlov/chatsky"
documentation = "https://deeppavlov.github.io/chatsky/"
keywords = ["chatbots"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
]
include = [
{ path = "CONTRIBUTING.md" },
{ path = "chatsky/" },
]
exclude = [
{ path = "tests" },
{ path = "scripts" },
]
[tool.poetry.urls]
"Project Template" = "https://github.com/deeppavlov/chatsky-template"
[tool.poetry.dependencies]
python = "^3.8.1,!=3.9.7" # `streamlit` package does not support python 3.9.7, `flake8` package does not support python 3.8.0
pydantic = ">=2.0" # `pydantic` version more than 2 required
nest-asyncio = "*"
typing-extensions = "*"
eval_type_backport = "*"
wrapt = "*"
colorama = "*"
ydb = { version = "*", optional = true }
six = { version = "*", optional = true }
tqdm = { version = "*", optional = true }
motor = { version = "*", optional = true }
redis = { version = "*", optional = true }
pandas = { version = "*", optional = true }
altair = { version = "*", optional = true }
asyncmy = { version = "*", optional = true }
asyncpg = { version = "*", optional = true }
pympler = { version = "*", optional = true }
aiofiles = { version = "*", optional = true }
humanize = { version = "*", optional = true }
aiosqlite = { version = "*", optional = true }
omegaconf = { version = "*", optional = true }
cryptography = { version = "*", optional = true }
requests = { version = "*", optional = true }
python-telegram-bot = { version = "~=21.3", extras = ["all"], optional = true }
opentelemetry-instrumentation = { version = "*", optional = true }
sqlalchemy = { version = "*", extras = ["asyncio"], optional = true }
opentelemetry-exporter-otlp = { version = ">=1.20.0", optional = true } # log body serialization is required
pyyaml = { version = "*", optional = true }
[tool.poetry.extras]
json = ["aiofiles"]
pickle = ["aiofiles"]
sqlite = ["sqlalchemy", "aiosqlite"]
redis = ["redis"]
mongodb = ["motor"]
mysql = ["sqlalchemy", "asyncmy", "cryptography"]
postgresql = ["sqlalchemy", "asyncpg"]
ydb = ["ydb", "six"]
telegram = ["python-telegram-bot"]
stats = ["opentelemetry-exporter-otlp", "opentelemetry-instrumentation", "requests", "tqdm", "omegaconf"]
benchmark = ["pympler", "humanize", "pandas", "altair", "tqdm"]
yaml = ["pyyaml"]
[tool.poetry.group.lint]
optional = true
[tool.poetry.group.lint.dependencies]
flake8 = "*"
isort = "*"
black = "*"
mypy = "*"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
requests = "*"
idna = "*"
pytest = "*"
pytest-cov = "*"
coverage = { version = "!=7.3.3", extras = ["toml"] }
# Coverage 7.3.3 breaks pragma: no cover -- https://github.com/nedbat/coveragepy/issues/1713
pytest-asyncio = "*"
pytest-virtualenv = "*"
sniffio = "*"
h11 = "*"
aiochclient = "*"
httpx = "*"
sqlparse = "*"
jsonschema = "*"
[tool.poetry.group.devel]
optional = false
[tool.poetry.group.devel.dependencies]
urllib3 = "<2.0" # ensure chatsky doesn't update urllib which breaks poetry
python-on-whales = "*"
python-dotenv = "*"
poethepoet = { version = "*", extras = ["poetry_plugin"] }
[tool.poetry.group.tutorials]
optional = true
[tool.poetry.group.tutorials.dependencies]
flask = { version = "*", extras = ["async"] }
psutil = "*"
telethon = "*"
fastapi = "*"
uvicorn = "*"
websockets = "*"
locust = "*"
streamlit = "*"
streamlit-chat = "*"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "*"
nbsphinx = "*"
sphinx-favicon = "*"
sphinx-gallery = "*"
sphinx-copybutton = "*"
sphinxcontrib-katex = "*"
pydata-sphinx-theme = "*"
sphinxcontrib-apidoc = "*"
sphinxcontrib-httpdomain = "*"
sphinx-autodoc-typehints = "*"
jupytext = "*"
jupyter = "*"
[tool.poetry.scripts]
"chatsky.stats" = { callable = "chatsky.stats.__main__:main", extras = ["stats"] }
[tool.poe]
default_task_type = "script"
[tool.poe.tasks]
info = "scripts.misc:info"
flake = "scripts.codestyle:_run_flake"
black = "scripts.codestyle:_run_black(modify=False)"
lint.sequence = ["flake", "black"]
lint.ignore_fail = "return_non_zero"
format = "scripts.codestyle:_run_black(modify=True)"
clean_docs = "scripts.clean:clean_docs"
clean = "scripts.clean:clean"
quick_test = "scripts.test:quick_test"
quick_test_coverage = "scripts.test:quick_test_coverage"
test_no_cov = "scripts.test:test_no_cov"
test_no_deps = "scripts.test:test_no_deps"
test_all = "scripts.test:test_all"
docs = "scripts.doc:docs"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
addopts = "--strict-markers"
markers = [
"docker: marks tests as requiring docker containers to work",
"slow: marks tests as slow (taking more than a minute to complete)",
"no_coverage: tests that either cannot run inside the `coverage` workflow or do not affect coverage stats",
"all: reserved by allow-skip",
"none: reserved by allow-skip",
]
asyncio_mode = "auto"
[tool.coverage.run]
concurrency = [
"thread",
"greenlet",
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
"if TYPE_CHECKING:",
"raise NotImplementedError",
]