forked from SeldonIO/MLServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
140 lines (126 loc) · 3.46 KB
/
setup.cfg
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
[flake8]
max-line-length = 88
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,
exclude =
# Generated gRPC code
./mlserver/grpc/dataplane_pb2*
./mlserver/grpc/model_repository_pb2*
./mlserver.egg-info
./.tox
[mypy]
ignore_missing_imports = True
plugins = pydantic.mypy
[tool:pytest]
asyncio_mode = auto
[tox:tox]
basepython = py3
envlist =
py3
all
sklearn
xgboost
lightgbm
mlflow
alibiexplain
alibidetect
all-runtimes
[testenv]
deps = -r{toxinidir}/requirements/dev.txt
commands = pytest {posargs} {toxinidir}/tests
[testenv:all]
deps =
-e{toxinidir}[all]
-r{toxinidir}/requirements/dev.txt
commands = pytest {posargs} {toxinidir}/tests
[testenv:sklearn]
deps =
-e{toxinidir}
-e{toxinidir}/runtimes/sklearn
-r{toxinidir}/requirements/dev.txt
commands = pytest {posargs} {toxinidir}/runtimes/sklearn
[testenv:xgboost]
deps =
-e{toxinidir}
-e{toxinidir}/runtimes/xgboost
-r{toxinidir}/requirements/dev.txt
commands = pytest {posargs} {toxinidir}/runtimes/xgboost
[testenv:lightgbm]
deps =
-e{toxinidir}
-e{toxinidir}/runtimes/lightgbm
-r{toxinidir}/requirements/dev.txt
commands = pytest {posargs} {toxinidir}/runtimes/lightgbm
[testenv:mlflow]
deps =
-e{toxinidir}
-e{toxinidir}/runtimes/mlflow
-r{toxinidir}/requirements/dev.txt
-r{toxinidir}/runtimes/mlflow/requirements-dev.txt
commands = pytest {posargs} {toxinidir}/runtimes/mlflow
[testenv:huggingface]
deps =
-e{toxinidir}
-e{toxinidir}/runtimes/huggingface
-r{toxinidir}/requirements/dev.txt
commands = pytest {posargs} {toxinidir}/runtimes/huggingface
[testenv:alibiexplain]
deps =
-e{toxinidir}/runtimes/alibi-explain
-e{toxinidir}
-r{toxinidir}/requirements/dev.txt
-r{toxinidir}/runtimes/alibi-explain/requirements-dev.txt
commands = pytest {posargs} {toxinidir}/runtimes/alibi-explain
[testenv:alibidetect]
deps =
-e{toxinidir}/runtimes/alibi-detect
-e{toxinidir}
-r{toxinidir}/requirements/dev.txt
commands = pytest {posargs} {toxinidir}/runtimes/alibi-detect
[testenv:all-runtimes]
deps =
-e{toxinidir}[all]
# Removing from all-runtimes test, as they don't seem to fit in GH workers.
# -e{toxinidir}/runtimes/alibi-explain
# -e{toxinidir}/runtimes/alibi-detect
-e{toxinidir}/runtimes/sklearn
-e{toxinidir}/runtimes/xgboost
-e{toxinidir}/runtimes/mllib
-e{toxinidir}/runtimes/lightgbm
-e{toxinidir}/runtimes/mlflow
-r{toxinidir}/requirements/dev.txt
-r{toxinidir}/runtimes/mlflow/requirements-dev.txt
# -r{toxinidir}/runtimes/alibi-explain/requirements-dev.txt
commands = pytest {posargs} \
{toxinidir}/tests \
{toxinidir}/runtimes/sklearn \
{toxinidir}/runtimes/xgboost \
{toxinidir}/runtimes/mllib \
{toxinidir}/runtimes/lightgbm \
{toxinidir}/runtimes/mlflow
[testenv:licenses]
deps =
-e{toxinidir}[all]
-e{toxinidir}/runtimes/sklearn
-e{toxinidir}/runtimes/xgboost
-e{toxinidir}/runtimes/mllib
-e{toxinidir}/runtimes/lightgbm
-e{toxinidir}/runtimes/mlflow
-e{toxinidir}/runtimes/alibi-explain
-e{toxinidir}/runtimes/alibi-detect
-r{toxinidir}/runtimes/mlflow/requirements-dev.txt
-r{toxinidir}/runtimes/alibi-explain/requirements-dev.txt
-r{toxinidir}/requirements/dev.txt
-r{toxinidir}/requirements/docker.txt
commands =
pip-licenses \
--from=mixed \
--format=csv \
--output-file=./licenses/license_info.csv
pip-licenses \
--from=mixed \
--format=plain-vertical \
--with-license-file \
--no-license-path \
--output-file=./licenses/license.txt