forked from SeldonIO/MLServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
164 lines (146 loc) · 4.09 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
[tool.poetry]
name = "mlserver"
version = "1.6.0.dev2"
description = "MLServer"
authors = ["Seldon Technologies Ltd. <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
classifiers = [
"Operating System :: POSIX",
"Operating System :: MacOS"
]
include = ["mlserver/rest/openapi/*.json"]
[tool.poetry.scripts]
mlserver = 'mlserver.cli:main'
[tool.black]
exclude = '''
(
mlserver\.egg-info
| \.mypy_cache
| \.git
| \.tox
| dist
| venv
)
'''
[tool.mypy]
ignore_missing_imports = true
plugins = "pydantic.mypy"
exclude = [
'mlserver\.egg-info',
'\.mypy_cache',
'\.git',
'\.tox',
'dist',
'venv',
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = "--import-mode=importlib"
[tool.poetry.dependencies]
python = ">=3.9,<3.12"
click = "*"
fastapi = ">=0.88.0,!=0.89.0,<=0.115.2"
python-dotenv = "*"
grpcio = "*"
numpy = "*"
pandas = "*"
protobuf = "*"
uvicorn = "*"
starlette-exporter = "*"
py-grpc-prometheus = "*"
aiokafka = "*"
# add a min version to tritonclient due to https://github.com/triton-inference-server/server/issues/6246
tritonclient = {version = ">=2.42", extras = ["http"]}
geventhttpclient = "*"
gevent = "*"
aiofiles = "*"
orjson = "*"
uvloop = {version = "*", markers = "sys_platform != 'win32' and (sys_platform != 'cygwin' and platform_python_implementation != 'PyPy')"}
pydantic = "^2.7.1"
pydantic-settings = "^2.2.1"
python-multipart = "*"
## The importlib-resources backport is required to use some
## functionality added in Python 3.10
## https://setuptools.pypa.io/en/latest/userguide/datafiles.html#accessing-data-files-at-runtime
importlib-resources = ">=5.12,<7.0"
opentelemetry-sdk = "^1.22.0"
opentelemetry-instrumentation-fastapi = ">=0.43b0"
opentelemetry-instrumentation-grpc = ">=0.43b0"
opentelemetry-exporter-otlp-proto-grpc = "^1.22.0"
[tool.poetry.group.test.dependencies]
tox = "4.16.0"
[tool.poetry.group.dev.dependencies]
datamodel-code-generator = "0.26.0"
grpcio-tools = "*"
pytest = "7.4.4"
pytest-asyncio = "0.21.1"
pytest-mock = "3.12.0"
pytest-cases = "3.8.5"
pytest-lazy-fixture = "^0.6.3"
tox = "4.16.0"
docker = "7.1.0"
aiohttp = "3.10.2"
aiohttp-retry = "2.8.3"
## Used for FastAPI Async testing
httpx = "0.27.0"
kafka-python = "2.0.2"
tenacity = "8.4.1"
pyyaml = "6.0.1"
conda-pack = "0.7.1"
flake8 = "7.0.0"
flake8-black = "0.3.6"
mypy = "1.11.2"
mypy-protobuf = "3.1.0"
types-protobuf = "5.26.0.20240422"
types-orjson = "3.6.2"
types-aiofiles = "23.2.0.20240106"
types-requests = "2.31.0.20240311"
black = "24.8.0"
pip-licenses = "4.4.0"
pytest-xdist = "3.6.1"
filelock = "^3.13.1"
httpx-sse = ">=0.3.1,<0.5.0"
[tool.poetry.group.docker.dependencies]
tensorflow = "<2.15"
[tool.poetry.group.all-runtimes]
optional = true
[tool.poetry.group.all-runtimes.dependencies]
mlserver-sklearn = {path = "./runtimes/sklearn", develop = true}
mlserver-xgboost = {path = "./runtimes/xgboost", develop = true}
mlserver-lightgbm = {path = "./runtimes/lightgbm", develop = true}
mlserver-mlflow = {path = "./runtimes/mlflow", develop = true}
mlserver-huggingface = {path = "./runtimes/huggingface", develop = true}
mlserver-alibi-explain = {path = "./runtimes/alibi-explain", develop = true}
mlserver-alibi-detect = {path = "./runtimes/alibi-detect", develop = true}
mlserver-catboost = {path = "./runtimes/catboost", develop = true}
[tool.poetry.group.all-runtimes-dev]
optional = true
[tool.poetry.group.all-runtimes-dev.dependencies]
## Dev dependencies from Alibi-Explain
requests-mock = "~1.11.0"
types-requests = ">=2.28.11.5,<2.32.0.0"
## Dev dependencies from MLflow
torch = "2.2.1"
pytorch-lightning = "2.4.0"
torchmetrics = "1.5.0"
torchvision = "0.17.1"
mlflow = "2.17.0"
## Dev dependencies from HuggingFace
transformers = ">=4.30,<5.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
Sphinx = "6.2.1"
sphinx_material = "0.0.36"
readthedocs-sphinx-search = "0.3.2"
myst-parser = "2.0.0"
sphinxcontrib-bibtex = "2.5.0"
autodoc_pydantic = "^2.2.0"
sphinx-click = "6.0.0"
sphinx_design = "0.4.1"
sphinx-autobuild = "2024.4.16"
sphinx-copybutton = "^0.5.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"