This repository was archived by the owner on Aug 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
62 lines (56 loc) · 1.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
"""Set up the ImJoy-Engine imjoy package."""
import os
from setuptools import setup, find_packages
import json
DESCRIPTION = (
"ImJoy Plugin Engine for running Python plugins locally "
"or remotely from ImJoy.io"
)
try:
# for Google Colab
import google.colab.output
REQUIREMENTS = [
"numpy",
"imjoy-rpc>=0.2.30",
'pathlib;python_version<"3.4"',
"imjoy-elfinder",
]
except:
REQUIREMENTS = [
"numpy",
"imjoy-rpc>=0.2.30",
'pathlib;python_version<"3.4"',
"jupyter>=1.0.0",
"imjoy-elfinder[jupyter]",
"ipykernel>=5.1.4",
"imjoy-jupyter-extension",
]
ROOT_DIR = os.path.dirname(__file__)
with open(os.path.join(ROOT_DIR, "README.md"), "r") as f:
README = f.read()
with open(os.path.join(ROOT_DIR, "imjoy", "VERSION"), "r") as f:
VERSION = json.load(f)["version"]
setup(
name="imjoy",
version=VERSION,
description=DESCRIPTION,
long_description=README,
long_description_content_type="text/markdown",
url="http://github.com/imjoy-team/ImJoy-Engine",
author="ImJoy Team",
author_email="[email protected]",
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=REQUIREMENTS,
extras_require={
"socketio": [
"python-socketio[asyncio_client]",
"pyyaml",
"aiohttp",
"aiohttp_cors",
]
},
zip_safe=False,
entry_points={"console_scripts": ["imjoy = imjoy.__main__:main"]},
)