-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (50 loc) · 1.59 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
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.egg_info import manifest_maker
if sys.version_info[:2] < (3, 6):
print("Python >= 3.6 is required.")
sys.exit(-1)
requires = ['notebook>=5.5.0', 'nbformat>=4.4']
def about(package):
ret = {}
filename = os.path.join(os.path.dirname(__file__), package, '__about__.py')
with open(filename, 'rb') as file:
exec(compile(file.read(), filename, 'exec'), ret)
return ret
def read(filename):
if not os.path.exists(filename):
return ''
with open(filename) as f:
return f.read()
info = about('nbkickoff')
manifest_maker.template = 'setup.manifest'
setup(
name=info['__title__'],
version=info['__version__'],
description=info['__summary__'],
long_description=read('README.md'),
long_description_content_type='text/markdown',
url=info['__url__'],
license=info['__license__'],
author=info['__author__'],
author_email=info['__email__'],
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Jupyter',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering',
],
entry_points={
'console_scripts': [
'nbkickoff=nbkickoff.nbkickoff:main',
],
},
python_requires='>=3',
install_requires=requires,
packages=find_packages(exclude=['test*']),
include_package_data=True
)