forked from jupyter-server/enterprise_gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
88 lines (81 loc) · 2.82 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
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import os
import sys
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
v = sys.version_info
if v[:2] < (3, 5):
error = "ERROR: Jupyter Enterprise Gateway requires Python version 3.5 or above."
print(error, file=sys.stderr)
sys.exit(1)
version_ns = {}
with open(os.path.join(here, 'enterprise_gateway', '_version.py')) as f:
exec(f.read(), {}, version_ns)
setup_args = dict(
name='jupyter_enterprise_gateway',
author='Jupyter Development Team',
author_email='jupyter@googlegroups.com',
url='http://github.com/jupyter-incubator/enterprise_gateway',
description='A web server for spawning and communicating with remote Jupyter kernels',
long_description='''\
A lightweight, multi-tenant, scalable and secure gateway that enables
Jupyter Notebooks to share resources across distributed clusters such as
Apache Spark, Kubernetes and others..
''',
version=version_ns['__version__'],
license='BSD',
platforms="Linux, Mac OS X, Windows",
keywords=['Interactive', 'Interpreter', 'Kernel', 'Web', 'Cloud'],
packages=[
'enterprise_gateway',
'enterprise_gateway.base',
'enterprise_gateway.client',
'enterprise_gateway.services',
'enterprise_gateway.services.api',
'enterprise_gateway.services.kernels',
'enterprise_gateway.services.kernelspecs',
'enterprise_gateway.services.processproxies',
'enterprise_gateway.services.sessions'
],
scripts=[
'scripts/jupyter-enterprisegateway'
],
install_requires=[
'docker>=3.5.0',
'jinja2>=2.10',
'jupyter_client>=5.2.0',
'jupyter_core>=4.4.0',
'kubernetes>=4.0.0',
'notebook>=5.7.6,<7.0',
'paramiko>=2.1.2',
'pexpect>=4.2.0',
'pycrypto>=2.6.1',
'pyzmq>=17.0.0',
'requests>=2.7,<3.0',
'tornado>=4.2.0',
'traitlets>=4.2.0',
'yarn-api-client>=0.3.6,<0.4.0',
],
python_requires='>=3.5',
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3'
],
include_package_data=True,
)
if 'setuptools' in sys.modules:
# setupstools turns entrypoint scripts into executables on windows
setup_args['entry_points'] = {
'console_scripts': [
'jupyter-enterprisegateway = enterprise_gateway:launch_instance'
]
}
# Don't bother installing the .py scripts if if we're using entrypoints
setup_args.pop('scripts', None)
if __name__ == '__main__':
setup(**setup_args)