forked from jupyter/nbclassic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
74 lines (65 loc) · 2.14 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
import os
from setuptools import setup, find_packages
from setupbase import create_cmdclass
NAME = 'nbclassic'
about = {}
here = os.path.abspath(os.path.dirname(__file__))
project_slug = NAME.lower().replace("-", "_").replace(" ", "_")
with open(os.path.join(here, project_slug, '__version__.py')) as f:
exec(f.read(), about)
with open("README.md", "r") as fh:
long_description = fh.read()
here = os.path.abspath(os.path.dirname(__file__))
# Handle datafiles
cmdclass = create_cmdclass(
data_files_spec=[(
'etc/jupyter/jupyter_server_config.d',
'jupyter_server_config.d',
'*.json'
)]
)
setup_args = dict(
name = NAME,
description = 'Jupyter Notebook as a Jupyter Server Extension.',
long_description = long_description,
long_description_content_type="text/markdown",
version = about['__version__'],
packages = find_packages(exclude=['tests*']),
author = 'Jupyter Development Team',
author_email = '[email protected]',
url = 'http://jupyter.org',
license = 'BSD',
platforms = "Linux, Mac OS X, Windows",
keywords = ['ipython', 'jupyter'],
classifiers = [
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
cmdclass = cmdclass,
zip_safe=False,
python_requires='>=3.6',
include_package_data=True,
install_requires = [
'jupyter_server~=1.5',
'notebook<7',
],
entry_points = {
'console_scripts': [
'jupyter-nbclassic = nbclassic.notebookapp:main'
]
},
extras_require = {
'test': [
'pytest', 'pytest-tornasync', 'pytest-console-scripts'
],
},
)
if __name__ == '__main__':
setup(**setup_args)