forked from nteract/nteract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
34 lines (28 loc) · 993 Bytes
/
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import setuptools
import json
import os
name = "nteract_on_jupyter"
here = os.path.realpath(os.path.dirname(__file__))
with open(os.path.join(here, name, "package.json")) as f:
packageJSON = json.load(f)
version = packageJSON['version']
config_d_filepath = os.path.join(
'jupyter-config', 'jupyter_notebook_config.d', 'nteract_on_jupyter.json'
)
data_files = [('etc/jupyter/jupyter_notebook_config.d', [config_d_filepath])]
setuptools.setup(
name=name,
version=version,
url="https://github.com/nteract/nteract",
author="nteract contributors",
author_email="[email protected]",
description="Extension for the jupyter notebook server and nteract",
packages=setuptools.find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=['notebook'],
data_files=data_files,
entry_points={'console_scripts': ['jupyter-nteract = nteract_on_jupyter.nteractapp:main']},
)