-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
118 lines (102 loc) · 3.27 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
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
# This file is part of the Reproducible and Reusable Data Analysis Workflow
# Server (flowServ).
#
# Copyright (C) 2019-2021 NYU.
#
# flowServ is free software; you can redistribute it and/or modify it under the
# terms of the MIT License; see LICENSE file for more details.
import os
import re
from setuptools import setup, find_packages
"""Required packages for install, test, docs, and tests."""
install_requires = [
'future',
'appdirs>=1.4.4',
'gitpython',
'paramiko',
'passlib',
'python-dateutil',
'jsonschema',
'pyyaml>=5.1',
'requests',
'SQLAlchemy>=1.3.18',
'Click',
'pyyaml-include'
]
aws_requires = ['boto3']
docker_requires = ['docker']
gc_requires = ['google-cloud-storage']
gui_requires = ['streamlit']
notebooks_requires = ['jupyter', 'papermill']
postgres_requires = ['psycopg2-binary']
tests_require = [
'coverage>=5.0',
'pytest',
'pytest-cov'
]
dev_require = ['flake8', 'python-language-server']
extras_require = {
'docs': [
'Sphinx',
'sphinx-rtd-theme',
'sphinxcontrib-apidoc'
],
'tests': tests_require,
'dev': dev_require + aws_requires + docker_requires + gc_requires + notebooks_requires + tests_require,
'aws': aws_requires,
'docker': docker_requires,
'gc': gc_requires,
'notebooks': notebooks_requires,
'postgres': postgres_requires,
'gui': gui_requires,
'full': aws_requires + docker_requires + gc_requires + notebooks_requires + postgres_requires + gui_requires
}
# Get the version string from the version.py file in the flowserv package.
# Based on:
# https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
with open(os.path.join('flowserv', 'version.py'), 'rt') as f:
filecontent = f.read()
match = re.search(r"^__version__\s*=\s*['\"]([^'\"]*)['\"]", filecontent, re.M)
if match is not None:
version = match.group(1)
else:
raise RuntimeError('unable to find version string in %s.' % (filecontent,))
# Get long project description text from the README.rst file
with open('README.rst', 'rt') as f:
readme = f.read()
description = (
'Reproducible and Reusable Data Analysis Workflow Server '
'(Core Infrastructure)'
)
setup(
name='flowserv-core',
version=version,
description=description,
long_description=readme,
long_description_content_type='text/x-rst',
keywords='reproducibility workflows benchmarks data-analysis',
url='https://github.com/scailfin/flowserv-core',
author='Heiko Mueller',
author_email='heiko.muller@gmail.com',
license='MIT',
packages=find_packages(exclude=('tests',)),
include_package_data=True,
extras_require=extras_require,
tests_require=tests_require,
install_requires=install_requires,
entry_points={
'console_scripts': [
'flowserv = flowserv.client.cli.base:cli_flowserv',
'rob = flowserv.client.cli.base:cli_rob'
]
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python'
]
)