-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
63 lines (55 loc) · 1.6 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
from distutils import log
import os
from setuptools import find_packages, setup
def list_files_recursive(relpath):
for root, dirs, files in os.walk(relpath):
install_root = os.path.join('share', 'viime', root)
yield install_root, [os.path.join(root, file) for file in files]
if not os.path.exists(os.path.join('static', 'index.html')):
log.warn(
'Static assets are not built. Run "npm install && npm run build" '
'in the web directory prior to packaging viime.'
)
data_files = []
data_files.extend(list_files_recursive('migrations'))
data_files.extend(list_files_recursive('static'))
setup(
name='viime',
version='1.0.1',
author='Kitware, Inc.',
author_email='kitware@kitware.com',
packages=find_packages(include=['viime']),
include_package_data=True,
install_requires=[
'alembic',
'dogpile.cache',
'flask',
'flask-cors',
'flask-migrate',
'flask-sqlalchemy',
'marshmallow>=3.0.0',
'matplotlib',
'pandas>=0.25.0',
'python-dotenv',
'requests',
'scikit-learn',
'sqlalchemy-utils',
'webargs >=5.5.3, <6',
'Werkzeug>=0.15',
'openpyxl'
],
extras_require={
'memcached': ['pylibmc'],
'sentry': ['sentry-sdk[flask]>=0.13']
},
license='Apache Software License 2.0',
data_files=data_files,
entry_points={
'console_scripts': [
'viime-cli=viime.cli:cli'
],
'dogpile.cache': [
'flask_request_local = viime.cache:FlaskRequestLocalBackend'
]
}
)