forked from evidentlyai/evidently
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
90 lines (81 loc) · 2.39 KB
/
setup.py
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
#!/usr/bin/env python
# coding: utf-8
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import os
from os.path import join as pjoin
from setupbase import HERE
from setupbase import combine_commands
from setupbase import create_cmdclass
from setupbase import ensure_targets
from setupbase import install_npm
from setuptools import setup
nb_path = pjoin(HERE, "src", "evidently", "nbextension", "static")
# Representative files that should exist after a successful build
jstargets = [
pjoin(nb_path, "index.js"),
]
package_data_spec = {
"evidently": [
"nbextension/static/*.*js*",
"nbextension/static/*.*woff2*",
"ui/ui/*",
"ui/ui/static/css/*",
"ui/ui/static/js/*",
]
}
data_files_spec = [
("share/jupyter/nbextensions/evidently", nb_path, "*.js*"),
("share/jupyter/nbextensions/evidently", nb_path, "*.woff2"),
("etc/jupyter/nbconfig/notebook.d", HERE, "evidently.json"),
]
cmdclass = create_cmdclass("jsdeps", package_data_spec=package_data_spec, data_files_spec=data_files_spec)
cmdclass["jsdeps"] = combine_commands(
install_npm(os.path.join(HERE, "ui"), build_cmd="build"),
ensure_targets(jstargets),
)
setup_args = dict(
cmdclass=cmdclass,
author_email="[email protected]",
include_package_data=True,
install_requires=[
"plotly>=5.5.0",
"statsmodels>=0.12.2",
"scikit-learn>=0.24.0",
"pandas>=1.3.5",
"numpy>=1.19.5",
"nltk>=3.6.7",
"scipy>=1.5.4",
"requests>=2.19.0",
"PyYAML>=5.1",
"pydantic>=1.10,<2",
"fastapi>=0.98.0",
"uvicorn>=0.22.0",
"watchdog>=3",
"typer>=0.9",
"rich>=13",
"iterative-telemetry==0.0.5" # todo: until we support 3.7
],
extras_require={
"dev": [
"wheel==0.35.1",
"setuptools==50.3.2",
"flake8==4.0.1",
"jupyter==1.0.0",
"mypy==0.910",
"pytest==6.2.5",
"types-PyYAML==6.0.1",
"types-requests==2.26.0",
"types-dataclasses==0.6",
"types-python-dateutil==2.8.19",
"pillow==9.5.0",
"black==22.8.0",
"isort==5.10.1",
]
},
entry_points={
"console_scripts": ["evidently=evidently.cli:app"]
},
)
if __name__ == "__main__":
setup(**setup_args)