-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
76 lines (67 loc) · 2.52 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
#!/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
from setuptools.command.bdist_egg import bdist_egg
_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-papermill 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_papermill/_version.py') as version:
for line in version:
if line.startswith('__version__'):
__version__ = eval(line.split('=')[1])
break
# Get the long description from the README file
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-papermill",
version=__version__,
description='SoS extension for papermill',
long_description=get_long_description(),
long_description_content_type="text/markdown",
author='Bo Peng',
url='https://github.com/vatlab/sos-papermill',
author_email='bpeng@mdanderson.org',
maintainer='Bo Peng',
maintainer_email='bpeng@mdanderson.org',
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.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
packages=find_packages('src'),
package_dir={'': 'src'},
python_requires='>=3.6',
install_requires=[
'papermill>=2.0.0',
'sos>=0.20.2',
'sos-notebook>=0.20.4',
],
entry_points='''
[papermill.engine]
sos = sos_papermill.engine:SoSExecutorEngine
''')