forked from SeldonIO/MLServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
113 lines (102 loc) · 2.72 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
[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
[tox:tox]
basepython = py3
envlist =
py3
all
sklearn
xgboost
lightgbm
mlflow
alibiexplain
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:alibiexplain]
deps =
-e{toxinidir}
-e{toxinidir}/runtimes/alibi-explain
-r{toxinidir}/requirements/dev.txt
-r{toxinidir}/runtimes/alibi-explain/requirements-dev.txt
commands = pytest {posargs} {toxinidir}/runtimes/alibi-explain
[testenv:all-runtimes]
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
-r{toxinidir}/requirements/dev.txt
-r{toxinidir}/runtimes/mlflow/requirements-dev.txt
-r{toxinidir}/runtimes/alibi-explain/requirements-dev.txt
commands = pytest {posargs}
[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
-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