-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
51 lines (42 loc) · 1.46 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
"""Set up the ImJoy-Engine imjoy package."""
import json
import os
import sys
from setuptools import setup, find_packages
DESCRIPTION = "Running ImJoy in Jupyter notebooks."
ROOT_DIR = os.path.dirname(__file__)
def read(name):
"""Read file name contents and return it."""
with open(os.path.join(ROOT_DIR, name)) as fil:
return fil.read()
with open(os.path.join(ROOT_DIR, "imjoy_jupyter_extension", "VERSION"), "r") as f:
VERSION = json.load(f)["version"]
if sys.version_info < (3, 5):
raise Exception("Python < 3.5 is not supported.")
setup(
name="imjoy-jupyter-extension",
version=VERSION,
description=DESCRIPTION,
long_description=read("README.md"),
long_description_content_type="text/markdown",
url="http://github.com/imjoy-team/imjoy-jupyter-extension",
author="ImJoy Team",
author_email="[email protected]",
license="MIT",
packages=find_packages(),
include_package_data=True,
data_files=[
(
"share/jupyter/nbextensions/imjoy_jupyter_extension",
[
"imjoy_jupyter_extension/static/index.js",
"imjoy_jupyter_extension/static/imjoy-icon.png",
"imjoy_jupyter_extension/static/imjoy_jupyter_extension.yaml",
],
),
("etc/jupyter/nbconfig/notebook.d", ["imjoy_jupyter_extension.json"]),
],
install_requires=["imjoy-rpc>=0.3.35", "notebook>=5.3"],
extras_require={},
zip_safe=False,
)