-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
104 lines (97 loc) · 3.89 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
[tool.poetry]
name = "smart-app-framework"
version = "0.0.0"
description = "Python-фреймворк, который позволяет создавать смартапы для виртуальных ассистентов Салют."
authors = ["Salute Developers <developer@sberdevices.ru>"]
readme = "README.md"
packages = [
{include = "core"},
{include = "scenarios"},
{include = "smart_kit"},
{include = "nlpf_statemachine"},
]
classifiers = [
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux"
]
[tool.poetry.dependencies]
python = ">=3.8.1,<3.12"
aiohttp = "3.10.5"
boto = "2.49.0"
cachetools = "5.3.0"
croniter = "1.3.7"
dill = "0.3.6"
ics = "0.6"
Jinja2 = "3.0.3"
keras = {version = "2.12.0", optional = true}
nltk = "3.9.1"
numpy = "1.23.5"
objgraph = "3.4.1"
prometheus-client = "0.11.0"
psutil = "5.9.4"
pyignite = "0.6.1"
pymorphy2 = "0.8"
pymorphy2_dicts = "2.4.393442.3710985"
python-dateutil = "2.7.3"
python-json-logger = "0.1.11"
PyYAML = "6.0.1"
requests = "2.31.0"
rusenttokenize = "0.0.5"
scikit-learn = [
{version = "1.1.2", python = "<3.11", optional = true},
{version = "1.2.0", python = "3.11.*", optional = true},
]
setuptools = "75.2.0"
tabulate = "0.9.0"
tensorflow = [
{version = "2.12.0", markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'", optional = true},
{version = "2.12.0", markers = "sys_platform == 'linux' and platform_machine == 'x86_64'", optional = true},
]
tensorflow-macos = {version = "2.12.0", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'", optional = true}
tensorflow-aarch64 = {version = "2.12.0", markers = "sys_platform == 'linux' and platform_machine == 'aarch64'", optional = true}
timeout-decorator = "0.4.1"
tqdm = "4.64.1"
freezegun = "1.1.0"
protobuf = "3.20.3"
lxml = "4.9.2"
twisted = "24.11.0"
urllib3 = "1.26.18"
certifi = "2023.07.22"
aiokafka = "0.8.1"
TatSu = "5.8.3"
python-decouple = "3.4"
lazy = "1.5"
kafka-python = "2.0.2"
[tool.poetry.extras]
ml = ["keras", "scikit-learn", "tensorflow", "tensorflow-macos", "tensorflow-aarch64"]
[tool.poetry.group.dev.dependencies]
flake8 = "6.0.0"
taskipy = "1.10.3"
black = "22.12.0"
pydantic = "2.10.3"
[tool.taskipy.tasks]
lint = "flake8 . --max-line-length=120 --ignore W504,W605,F401 --exclude=smart_kit/utils/SmartAppToMessage_pb2.py"
unit_test = "python -m unittest discover -b -v -s tests/pure_framework && python -m unittest discover -b -v -s tests/nlpf_statemachine_tests"
runapp_http_test = """python -m smart_kit create_app http_test_app &&
cd http_test_app &&
PYTHONPATH=".." timeout 10 python manage.py run_app || code=$?;
if [ $code -ne 124 ] && [ $code -ne 0 ]; then exit $code; fi"""
runapp_kafka_test = """docker compose -f .github/docker-compose.yml up -d &&
python -m smart_kit create_app kafka_test_app &&
cp .github/kafka_config.yml kafka_test_app/static/configs/kafka_config.yml &&
cp .github/logging_config.yml kafka_test_app/static/configs/logging_config.yml &&
cd kafka_test_app &&
echo 'from smart_kit.start_points.main_loop_kafka import MainLoop' >> app_config.py &&
echo 'MAIN_LOOP = MainLoop' >> app_config.py &&
sleep 5 &&
docker compose -f ../.github/docker-compose.yml exec -T kafka kafka-topics.sh --create --bootstrap-server localhost:9092 --partitions 3 --topic toTestApp &&
sleep 5 &&
PYTHONPATH=".." timeout 60 python manage.py run_app || code=$?;
if [ $code -ne 124 ] && [ $code -ne 0 ]; then exit $code; fi"""
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"