-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
101 lines (91 loc) · 3.31 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
#!/usr/bin/env python
#
# Copyright (c) Bo Peng and the University of Texas MD Anderson Cancer Center
# Distributed under the terms of the 3-clause BSD License.
import os
import sys
from setuptools import find_packages, setup
_py_ver = sys.version_info
if _py_ver.major == 2 or (_py_ver.major == 3 and
(_py_ver.minor, _py_ver.micro) < (6, 0)):
raise SystemError(
'sos-notebook requires Python 3.6 or higher. Please upgrade your Python {}.{}.{}.'
.format(_py_ver.major, _py_ver.minor, _py_ver.micro))
# obtain version of SoS
with open('src/sos_notebook/_version.py') as version:
for line in version:
if line.startswith('__version__'):
__version__ = eval(line.split('=')[1])
break
kernel_json = {
"argv": ["python", "-m", "sos_notebook.kernel", "-f", "{connection_file}"],
"display_name": "SoS",
"language": "sos",
}
CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
def get_long_description():
with open(os.path.join(CURRENT_DIR, "README.md"), "r") as ld_file:
return ld_file.read()
setup(
name="sos-notebook",
version=__version__,
description='Script of Scripts (SoS): an interactive, cross-platform, and cross-language workflow system for reproducible data analysis',
long_description=get_long_description(),
long_description_content_type="text/markdown",
author='Bo Peng',
url='https://github.com/vatlab/SOS',
author_email='Bo.Peng@bcm.edu',
maintainer='Bo Peng',
maintainer_email='Bo.Peng@bcm.edu',
license='3-clause BSD',
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
],
zip_safe=False,
packages=find_packages('src'),
package_dir={'': 'src'},
python_requires='>=3.7',
install_requires=[
'jupyter_client>=8.0.0',
'jupyter_core',
'sos>=0.22.0',
'nbformat',
'nbconvert>=6.0.1',
'ipython',
# 6.18.0 and newer has a new comm manager interface
'ipykernel>=6.18.0',
# https://github.com/spatialaudio/nbsphinx/issues/563
'jinja2',
'notebook>=5.0.0',
'tabulate',
# 'markdown',
'pandas',
'numpy',
# 'selenium',
# 'requests',
# 'pytest',
'psutil',
],
entry_points='''
[sos_converters]
sos-ipynb = sos_notebook.converter:ScriptToNotebookConverter
ipynb-sos = sos_notebook.converter:NotebookToScriptConverter
ipynb-html = sos_notebook.converter:NotebookToHTMLConverter
ipynb-pdf = sos_notebook.converter:NotebookToPDFConverter
ipynb-md = sos_notebook.converter:NotebookToMarkdownConverter
ipynb-ipynb = sos_notebook.converter:NotebookToNotebookConverter
''')